From d408dffaf1dd1be5e47bd7673f74b2e3a7b581c7 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 28 May 2018 14:19:26 +0100 Subject: [PATCH] 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 --- src/pybind/mgr/dashboard/frontend/tslint.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index d2486f1bbcaa..8a462673dcda 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, -- 2.47.3