From: Stephan Müller Date: Thu, 21 Nov 2019 15:40:51 +0000 (+0100) Subject: mgr/dashboard: Avoid escaped quotes using TSLint X-Git-Tag: v15.1.0~488^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31811%2Fhead;p=ceph.git mgr/dashboard: Avoid escaped quotes using TSLint The problem was that the TSLint linting hasn't matched the linting of prettier regarding the quotes of a string. Explanation: '\'' will be converted to "'" with prettier, but TSLint thrown an error that it wanted the string to look like '\''. Now TSLint will not error if it sees an single quote inside a double quote to match the behavior of prettier. Fixes: https://tracker.ceph.com/issues/38287 Signed-off-by: Stephan Müller --- diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index 509e26632b15..f3e62b3a92e3 100644 --- a/src/pybind/mgr/dashboard/frontend/tslint.json +++ b/src/pybind/mgr/dashboard/frontend/tslint.json @@ -45,7 +45,7 @@ "object-literal-sort-keys": false, "one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace"], "prefer-const": true, - "quotemark": [true, "single"], + "quotemark": [true, "single", "avoid-escape"], "radix": true, "semicolon": [true, "always"], "triple-equals": [true, "allow-null-check"],