From a7d0803c0183b423055a6b03a804eadf09428eeb Mon Sep 17 00:00:00 2001 From: nickbrowne Date: Fri, 17 Jul 2020 18:07:15 +1000 Subject: [PATCH] Ignore non dom role attribute when checking aria usage 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. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 4b32cbe..d624881 100644 --- a/index.js +++ b/index.js @@ -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",