From f1d399173522451e408ccd212452eccc75e8f612 Mon Sep 17 00:00:00 2001 From: nsedrickm Date: Fri, 22 Jul 2022 10:05:27 +0100 Subject: [PATCH] mgr/dashboard: enable tslint a11y rules enable tslint accessibility rules Signed-off-by: nsedrickm --- src/pybind/mgr/dashboard/frontend/tslint.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/tslint.json b/src/pybind/mgr/dashboard/frontend/tslint.json index 2911ef2c536..d82d25a936b 100644 --- a/src/pybind/mgr/dashboard/frontend/tslint.json +++ b/src/pybind/mgr/dashboard/frontend/tslint.json @@ -12,10 +12,11 @@ }, "eofline": true, "forin": true, - "import-blacklist": [true, + "import-blacklist": [ + true, "rxjs/Rx", - {"@angular/core/testing": ["async"]}, - ["(\\.{1,2}\/){2,}"] // e.g import ../../foobar + { "@angular/core/testing": ["async"] }, + ["(\\.{1,2}/){2,}"] // e.g import ../../foobar ], "import-spacing": true, "indent": [true, "spaces"], @@ -112,7 +113,12 @@ } ] } - ] + ], + "template-accessibility-alt-text": true, + "template-accessibility-tabindex-no-positive": true, + "template-accessibility-table-scope": true, + "template-accessibility-valid-aria": true, + "template-no-distracting-elements": true }, "jsRules": { "no-empty": true } } -- 2.39.5