diff --git a/.eslintrc-base.json b/.eslintrc-base.json index e789c8863d..e1590fe8cf 100644 --- a/.eslintrc-base.json +++ b/.eslintrc-base.json @@ -35,40 +35,6 @@ "import/unambiguous": 2, "import/no-anonymous-default-export": 2, "jsx-quotes": [2, "prefer-single"], - "jsx-a11y/accessible-emoji": "error", - "jsx-a11y/alt-text": "error", - "jsx-a11y/anchor-has-content": "error", - "jsx-a11y/anchor-is-valid": "error", - "jsx-a11y/aria-activedescendant-has-tabindex": "error", - "jsx-a11y/aria-props": "error", - "jsx-a11y/aria-proptypes": "error", - "jsx-a11y/aria-role": "error", - "jsx-a11y/aria-unsupported-elements": "error", - "jsx-a11y/control-has-associated-label": "error", - "jsx-a11y/click-events-have-key-events": "error", - "jsx-a11y/heading-has-content": "error", - "jsx-a11y/html-has-lang": "error", - "jsx-a11y/iframe-has-title": "error", - "jsx-a11y/img-redundant-alt": "error", - "jsx-a11y/interactive-supports-focus": "error", - "jsx-a11y/label-has-associated-control": "error", - "jsx-a11y/lang": "error", - "jsx-a11y/media-has-caption": "error", - "jsx-a11y/mouse-events-have-key-events": "error", - "jsx-a11y/no-access-key": "error", - "jsx-a11y/no-autofocus": "error", - "jsx-a11y/no-distracting-elements": "error", - "jsx-a11y/no-interactive-element-to-noninteractive-role": "error", - "jsx-a11y/no-noninteractive-element-interactions": "error", - "jsx-a11y/no-noninteractive-element-to-interactive-role": "error", - "jsx-a11y/no-noninteractive-tabindex": "error", - "jsx-a11y/no-onchange": "error", - "jsx-a11y/no-redundant-roles": "error", - "jsx-a11y/no-static-element-interactions": "error", - "jsx-a11y/role-has-required-aria-props": "error", - "jsx-a11y/role-supports-aria-props": "error", - "jsx-a11y/scope": "error", - "jsx-a11y/tabindex-no-positive": "error", "key-spacing": [2, { "beforeColon": false, "afterColon": true }], "keyword-spacing": [2], "max-depth": 0, diff --git a/.eslintrc.json b/.eslintrc.json index 6f566f3beb..387135f7fe 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,7 +11,8 @@ "extends": [ "./.eslintrc-base.json", "plugin:prettier/recommended", - "plugin:import/typescript" + "plugin:import/typescript", + "plugin:jsx-a11y/recommended" ], "plugins": [ "react", @@ -39,20 +40,25 @@ }, "import/ignore": ["node_modules"] }, - "overrides": [{ - "files": ["**/*.ts?(x)"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": ["./client/tsconfig.json", "./tools/challenge-helper-scripts/tsconfig.json"] - }, - "extends": [ - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking" - ], - "plugins": ["@typescript-eslint"] - }, - { - "files": ["./tools/ui-components/**/*.test.[jt]s?(x)"], - "extends": ["plugin:testing-library/react", "plugin:jest-dom/recommended"] - }] + "overrides": [ + { + "files": ["**/*.ts?(x)"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": [ + "./client/tsconfig.json", + "./tools/challenge-helper-scripts/tsconfig.json" + ] + }, + "extends": [ + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking" + ], + "plugins": ["@typescript-eslint"] + }, + { + "files": ["./tools/ui-components/**/*.test.[jt]s?(x)"], + "extends": ["plugin:testing-library/react", "plugin:jest-dom/recommended"] + } + ] }