From 43bdeaf4dd01c0bc68b7e29a57b0ee9c178e9273 Mon Sep 17 00:00:00 2001 From: Kate Higa <16447748+khiga8@users.noreply.github.com> Date: Mon, 17 Jul 2023 09:25:11 -0400 Subject: [PATCH] Add override to avoid flagging false positives --- lib/configs/react.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/configs/react.js b/lib/configs/react.js index 4b2645db..024de613 100644 --- a/lib/configs/react.js +++ b/lib/configs/react.js @@ -22,5 +22,13 @@ module.exports = { words: ['this', 'more', 'read here', 'read more'], }, ], + 'jsx-a11y/no-interactive-element-to-noninteractive-role': [ + 'error', + { + tr: ['none', 'presentation'], + td: ['cell'], // TODO: Remove once https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/937#issuecomment-1638128318 is addressed. + canvas: ['img'], + }, + ], }, }