From: nsedrickm Date: Fri, 22 Jul 2022 09:05:27 +0000 (+0100) Subject: mgr/dashboard: enable tslint a11y rules X-Git-Tag: v18.0.0~79^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f1d399173522451e408ccd212452eccc75e8f612;p=ceph-ci.git mgr/dashboard: enable tslint a11y rules enable tslint accessibility rules Signed-off-by: nsedrickm --- 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 } }