]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: enable tslint a11y rules
authornsedrickm <nsedrick101@gmail.com>
Fri, 22 Jul 2022 09:05:27 +0000 (10:05 +0100)
committerNizamudeen A <nia@redhat.com>
Thu, 12 Jan 2023 10:31:42 +0000 (16:01 +0530)
enable tslint accessibility rules

Signed-off-by: nsedrickm <nsedrick101@gmail.com>
(cherry picked from commit f1d399173522451e408ccd212452eccc75e8f612)

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

index 2911ef2c53610818d192ff88d588b67ce2633135..d82d25a936b9df944ed6ceaf9175adbdc12fcb46 100644 (file)
     },
     "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"],
           }
         ]
       }
-    ]
+    ],
+    "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 }
 }