Skip to content

Commit

Permalink
Ignore non dom role attribute when checking aria usage
Browse files Browse the repository at this point in the history
It's perfectly valid to use "role" as a prop for things like
React Components, but currently eslint is seeing those props
and treating it as an error.

We only really care about misused roles on actual DOM elements.
  • Loading branch information
nickbrowne committed Jul 17, 2020
1 parent a778e78 commit a7d0803
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"jsx-a11y/aria-role": ["warn", { ignoreNonDOM: true }],
"max-len": ["error", { "code": 120 }],
"no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false, "ignoreJSX": "multi-line" }],
"no-undef": "off",
Expand Down

0 comments on commit a7d0803

Please sign in to comment.