Chore: Enable remaining jsx-a11y rules (#70990)

enabling remaining a11y rules + ignore existing violations
This commit is contained in:
Ashley Harrison
2023-06-30 16:58:16 +01:00
committed by GitHub
parent f32f1859a0
commit 7a2a5dde8b
28 changed files with 63 additions and 5 deletions

View File

@@ -74,20 +74,18 @@
},
{
"extends": ["plugin:jsx-a11y/recommended"],
"files": ["**/*"],
"excludedFiles": ["**/*.{spec,test}.{ts,tsx}"],
"files": ["**/*.tsx"],
"excludedFiles": ["**/*.{spec,test}.tsx"],
"rules": {
// rules marked "off" are those left in the recommended preset we need to fix
// we should remove the corresponding line and fix them one by one
// any marked "error" contain specific overrides we'll need to keep
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-autofocus": [
"error",
{
"ignoreNonDOM": true
}
],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{