Skip to content

Commit 3a1b6df

Browse files
committed
update react.js config
1 parent 7556b0b commit 3a1b6df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/configs/react.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ module.exports = {
88
plugins: ['github', 'jsx-a11y'],
99
extends: ['plugin:jsx-a11y/recommended'],
1010
rules: {
11-
'github/a11y-no-generic-link-text': 'off',
11+
'jsx-a11y/role-supports-aria-props': 'off', // Override with github/role-supports-aria-props until https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/910 is resolved
1212
'github/role-supports-aria-props': 'error',
13-
'jsx-a11y/role-supports-aria-props': 'off',
13+
'jsx-a11y/no-aria-hidden-on-focusable': 'error',
14+
'jsx-a11y/anchor-ambiguous-text': [
15+
'error',
16+
{
17+
words: ['this', 'more', 'read here', 'read more'],
18+
},
19+
],
1420
},
1521
}

0 commit comments

Comments
 (0)