From: Tiago Melo Date: Mon, 28 May 2018 13:19:26 +0000 (+0100) Subject: mgr/dashboard: Improve max-line-length tslint rule X-Git-Tag: v13.2.1~98^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d408dffaf1dd1be5e47bd7673f74b2e3a7b581c7;p=ceph.git mgr/dashboard: Improve max-line-length tslint rule Prettier is not breaking strings if they are bigger then the defined max line length. With this rule we can make sure lines are not exceeding it, with the exception of import/export lines. Signed-off-by: Tiago Melo (cherry picked from commit fc67af05b67cb2bbb76fcbea35cf10b1284d25de) Conflicts: src/pybind/mgr/dashboard/frontend/tslint.json --- diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index d2486f1bbca..8a462673dcd 100644 --- a/src/pybind/mgr/dashboard/frontend/tslint.json +++ b/src/pybind/mgr/dashboard/frontend/tslint.json @@ -29,10 +29,7 @@ ], "interface-over-type-literal": true, "label-position": true, - "max-line-length": [ - true, - 100 - ], + "max-line-length": [true, {"limit": 100, "ignore-pattern": "^import |^export {(.*?)}"}], "member-access": false, "member-ordering": [ true,