Skip to content

Commit

Permalink
chore: add eslint jsx a11y package (#4118)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
FatumaA and nickytonline authored Sep 24, 2024
1 parent 25c0b76 commit 6124086
Show file tree
Hide file tree
Showing 3 changed files with 422 additions and 253 deletions.
16 changes: 15 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{
"extends": ["next/core-web-vitals", "plugin:storybook/recommended"],
"extends": ["next/core-web-vitals", "plugin:storybook/recommended", "plugin:jsx-a11y/recommended"],
"plugins": ["unused-imports", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"rules": {
"jsx-a11y/label-has-associated-control": "warn",
"jsx-a11y/anchor-has-content":"warn",
"jsx-a11y/role-supports-aria-props":"warn",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "warn",
"jsx-a11y/click-events-have-key-events": "Warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/no-autofocus": "warn",
"jsx-a11y/img-redundant-alt":"warn",
"jsx-a11y/mouse-events-have-key-events": "warn",
"jsx-a11y/iframe-has-title": "warn",
"jsx-a11y/no-noninteractive-tabindex": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/interactive-supports-focus": "warn",
"jsx-quotes": "error",
"unused-imports/no-unused-imports": "error",
"import/order": [
Expand Down
Loading

0 comments on commit 6124086

Please sign in to comment.