From 3d78b2f5f9838efb8f56218e77731288d7558022 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Thu, 21 Nov 2019 16:40:51 +0100 Subject: [PATCH] mgr/dashboard: Avoid escaped quotes using TSLint MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/pybind/mgr/dashboard/frontend/tslint.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index 509e26632b1..f3e62b3a92e 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"], -- 2.39.5