]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Improve max-line-length tslint rule 22849/head
authorTiago Melo <tmelo@suse.com>
Mon, 28 May 2018 13:19:26 +0000 (14:19 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 5 Jul 2018 11:14:27 +0000 (13:14 +0200)
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 <tmelo@suse.com>
(cherry picked from commit fc67af05b67cb2bbb76fcbea35cf10b1284d25de)

Conflicts:
src/pybind/mgr/dashboard/frontend/tslint.json

src/pybind/mgr/dashboard/frontend/tslint.json

index d2486f1bbcaa00e07c41d82e71dcdd4202084aa1..8a462673dcda96e9d9d438513a89e41358d3f6ea 100644 (file)
     ],
     "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,