Skip to content

Commit baa4a50

Browse files
authored
Override rule config temporarily to address false positive (#476)
* Override config temporarily * Run prettier
1 parent 379041a commit baa4a50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/configs/react.js

+12
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,17 @@ module.exports = {
3030
canvas: ['img'],
3131
},
3232
],
33+
// Remove once https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/950 is shipped.
34+
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
35+
'error',
36+
{
37+
ul: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
38+
ol: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'],
39+
li: ['menuitem', 'menuitemradio', 'menuitemcheckbox', 'option', 'row', 'tab', 'treeitem'],
40+
table: ['grid'],
41+
td: ['gridcell'],
42+
fieldset: ['radiogroup', 'presentation'],
43+
},
44+
],
3345
},
3446
}

0 commit comments

Comments
 (0)