Skip to content

Commit

Permalink
eslint: Introduce jsx-a11y plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
marusak authored and KKoukiou committed Oct 10, 2019
1 parent 4fde944 commit 3fe6dfe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "standard", "standard-react"],
"extends": ["eslint:recommended", "standard", "standard-react", "plugin:jsx-a11y/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": "7",
Expand All @@ -13,7 +13,7 @@
},
"sourceType": "module"
},
"plugins": ["flowtype", "react", "cockpit"],
"plugins": ["flowtype", "react", "cockpit", "jsx-a11y"],
"rules": {
"indent": ["error", 4,
{
Expand Down Expand Up @@ -47,6 +47,17 @@
"space-before-function-paren": "off",
"standard/no-callback-literal": "off",

"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-interactive-element-to-noninteractive-role": "off",
"jsx-a11y/no-onchange": "off",

"eqeqeq": "off",
"import/no-webpack-loader-syntax": "off",
"object-property-newline": "off",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.15.1",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"html-webpack-plugin": "^3.2.0",
"htmlparser": "^1.7.7",
"imports-loader": "^0.6.5",
Expand Down

0 comments on commit 3fe6dfe

Please sign in to comment.