Skip to content

Commit

Permalink
Fix jsx-a11y label-has-associated-control configuration. (#42671)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored Jul 26, 2022
1 parent 885f949 commit 570230d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eslint-plugin/configs/jsx-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ module.exports = {
extends: [ 'plugin:jsx-a11y/recommended' ],
plugins: [ 'jsx-a11y' ],
rules: {
'jsx-a11y/label-has-associated-control': [
'error',
{
assert: 'htmlFor',
},
],
'jsx-a11y/media-has-caption': 'off',
'jsx-a11y/no-noninteractive-tabindex': 'off',
'jsx-a11y/role-has-required-aria-props': 'off',
Expand Down

0 comments on commit 570230d

Please sign in to comment.