From baa4a509bbaae91df680602e7c4dc3bdf522e09b Mon Sep 17 00:00:00 2001 From: Kate Higa <16447748+khiga8@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:29:43 -0700 Subject: [PATCH] Override rule config temporarily to address false positive (#476) * Override config temporarily * Run prettier --- lib/configs/react.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/configs/react.js b/lib/configs/react.js index 8299f44b..a63c80ff 100644 --- a/lib/configs/react.js +++ b/lib/configs/react.js @@ -30,5 +30,17 @@ module.exports = { canvas: ['img'], }, ], + // Remove once https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/950 is shipped. + 'jsx-a11y/no-noninteractive-element-to-interactive-role': [ + 'error', + { + ul: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'], + ol: ['listbox', 'menu', 'menubar', 'radiogroup', 'tablist', 'tree', 'treegrid'], + li: ['menuitem', 'menuitemradio', 'menuitemcheckbox', 'option', 'row', 'tab', 'treeitem'], + table: ['grid'], + td: ['gridcell'], + fieldset: ['radiogroup', 'presentation'], + }, + ], }, }