File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/eslint-config-airbnb/rules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ module.exports = {
48
48
49
49
// require that JSX labels use "htmlFor"
50
50
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
51
- 'jsx-a11y/label-has-for' : [ 'error' , {
51
+ // deprecated: replaced by `label-has-associated-control` rule
52
+ 'jsx-a11y/label-has-for' : [ 'off' , {
52
53
components : [ ] ,
53
54
required : {
54
55
every : [ 'nesting' , 'id' ] ,
@@ -68,8 +69,7 @@ module.exports = {
68
69
69
70
// Enforce that a control (an interactive element) has a text label.
70
71
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md
71
- // TODO, semver-major: enable
72
- 'jsx-a11y/control-has-associated-label' : [ 'off' , {
72
+ 'jsx-a11y/control-has-associated-label' : [ 'error' , {
73
73
labelAttributes : [ 'label' ] ,
74
74
controlComponents : [ ] ,
75
75
ignoreElements : [
You can’t perform that action at this time.
0 commit comments