]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Avoid escaped quotes using TSLint 31811/head
authorStephan Müller <smueller@suse.com>
Thu, 21 Nov 2019 15:40:51 +0000 (16:40 +0100)
committerStephan Müller <smueller@suse.com>
Fri, 13 Dec 2019 14:43:45 +0000 (15:43 +0100)
commit3d78b2f5f9838efb8f56218e77731288d7558022
tree11f42b7faf6c7574d6365c4e41ffb2a9d4e2b7ad
parent5fcf525a46b3c440e6764902ae861079fee30d5f
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 <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/tslint.json