Skip to content

Commit 2b2b250

Browse files
committed
fix: prevent the jsx-a11y/control-has-associated-label rule from throwing errors on table elements
see jsx-eslint/eslint-plugin-jsx-a11y#959
1 parent 42d16db commit 2b2b250

File tree

1 file changed

+4
-1
lines changed
  • packages/eslint-config/src/config/mixin

1 file changed

+4
-1
lines changed

packages/eslint-config/src/config/mixin/react.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,15 @@ const config: TSESLint.FlatConfig.ConfigArray = [
108108
controlComponents: [],
109109
ignoreElements: [
110110
'audio',
111+
'video',
111112
'canvas',
112113
'embed',
113114
'input',
114115
'textarea',
115116
'tr',
116-
'video',
117+
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/959
118+
'th',
119+
'td',
117120
],
118121
ignoreRoles: [
119122
'grid',

0 commit comments

Comments
 (0)