@@ -25,9 +25,8 @@ module.exports = {
25
25
'jsx-a11y/aria-unsupported-elements' : 2 ,
26
26
27
27
// disallow href "#"
28
- // TODO: enable
29
28
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
30
- 'jsx-a11y/href-no-hash' : [ 0 , [ 'a' ] ] ,
29
+ 'jsx-a11y/href-no-hash' : [ 2 , [ 'a' ] ] ,
31
30
32
31
// Require <img> to have a non-empty `alt` prop, or role="presentation"
33
32
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-has-alt.md
@@ -38,12 +37,11 @@ module.exports = {
38
37
'jsx-a11y/img-redundant-alt' : 2 ,
39
38
40
39
// require that JSX labels use "htmlFor"
41
- // TODO: enable
42
40
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
43
- 'jsx-a11y/label-has-for' : [ 0 , [ 'label' ] ] ,
41
+ 'jsx-a11y/label-has-for' : [ 2 , [ 'label' ] ] ,
44
42
45
43
// require that mouseover/out come with focus/blur, for keyboard-only users
46
- // TODO: enable?
44
+ // TODO: evaluate
47
45
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
48
46
'jsx-a11y/mouse-events-have-key-events' : 0 ,
49
47
@@ -81,27 +79,22 @@ module.exports = {
81
79
82
80
// ensure <hX> tags have content and are not aria-hidden
83
81
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md
84
- // TODO: enable
85
- 'jsx-a11y/heading-has-content' : [ 0 , [ '' ] ] ,
82
+ 'jsx-a11y/heading-has-content' : [ 2 , [ '' ] ] ,
86
83
87
84
// require HTML elements to have a "lang" prop
88
85
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md
89
- // TODO: enable
90
- 'jsx-a11y/html-has-lang' : 0 ,
86
+ 'jsx-a11y/html-has-lang' : 2 ,
91
87
92
88
// require HTML element's lang prop to be valid
93
89
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md
94
- // TODO: enable
95
- 'jsx-a11y/lang' : 0 ,
90
+ 'jsx-a11y/lang' : 2 ,
96
91
97
92
// prevent marquee elements
98
93
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-marquee.md
99
- // TODO: enable, pardner
100
- 'jsx-a11y/no-marquee' : 0 ,
94
+ 'jsx-a11y/no-marquee' : 2 ,
101
95
102
96
// only allow <th> to have the "scope" attr
103
97
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md
104
- // TODO: enable
105
- 'jsx-a11y/scope' : 0 ,
98
+ 'jsx-a11y/scope' : 2 ,
106
99
} ,
107
100
} ;
0 commit comments