Skip to content

Commit

Permalink
test(lint): Added eslint-plugin-jsx-a11y plugin in warning mode (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
fracmak authored and levithomason committed Nov 20, 2016
1 parent 28c7122 commit 7a75960
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"plugins": [
"jsx-a11y"
],
"extends": [
"plugin:jsx-a11y/recommended",
"ta",
"ta/frontend"
],
Expand All @@ -10,6 +14,12 @@
"react/sort-comp": 0,
"valid-jsdoc": 0,
"react/jsx-curly-spacing": 0,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/href-no-hash": 1,
"jsx-a11y/img-has-alt": 1,
"jsx-a11y/label-has-for": 1,
"jsx-a11y/onclick-has-focus": 1,
"jsx-a11y/onclick-has-role": 1,
"padded-blocks": [2, {
"blocks": "never",
"switches": "never",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"empty": "^0.10.1",
"enzyme": "^2.6.0",
"eslint-config-ta": "^5.2.0",
"eslint-plugin-jsx-a11y": "^3.0.1",
"express": "^4.13.4",
"faker": "^3.0.1",
"file-loader": "^0.9.0",
Expand Down
23 changes: 23 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,29 @@
"mount": false
},
"rules": {
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/aria-props": 0,
"jsx-a11y/aria-proptypes": 0,
"jsx-a11y/aria-role": 0,
"jsx-a11y/aria-unsupported-elements": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/heading-has-content": 0,
"jsx-a11y/href-no-hash": 0,
"jsx-a11y/html-has-lang": 0,
"jsx-a11y/img-has-alt": 0,
"jsx-a11y/img-redundant-alt": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/mouse-events-have-key-events": 0,
"jsx-a11y/no-access-key": 0,
"jsx-a11y/no-marquee": 0,
"jsx-a11y/no-onchange": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/onclick-has-focus": 0,
"jsx-a11y/onclick-has-role": 0,
"jsx-a11y/role-has-required-aria-props": 0,
"jsx-a11y/role-supports-aria-props": 0,
"jsx-a11y/scope": 0,
"jsx-a11y/tabindex-no-positive": 0,
"react/jsx-curly-spacing": 0
}
}

0 comments on commit 7a75960

Please sign in to comment.