From: Đặng Minh Dũng Date: Wed, 4 Nov 2020 04:32:49 +0000 (+0700) Subject: mgr/dashboard: add tslint rule to prevent import with more than 1 parent e.g '..... X-Git-Tag: v16.1.0~629^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85402d6543ca0fe24c0ed42c523c973a59e627a2;p=ceph.git mgr/dashboard: add tslint rule to prevent import with more than 1 parent e.g '../../foobar' Signed-off-by: Đặng Minh Dũng --- diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index 6d647ef4980..2911ef2c536 100644 --- a/src/pybind/mgr/dashboard/frontend/tslint.json +++ b/src/pybind/mgr/dashboard/frontend/tslint.json @@ -12,7 +12,11 @@ }, "eofline": true, "forin": true, - "import-blacklist": [true, "rxjs/Rx", {"@angular/core/testing": ["async"]}], + "import-blacklist": [true, + "rxjs/Rx", + {"@angular/core/testing": ["async"]}, + ["(\\.{1,2}\/){2,}"] // e.g import ../../foobar + ], "import-spacing": true, "indent": [true, "spaces"], "interface-over-type-literal": true,