@@ -13,7 +13,7 @@ module.exports = {
13
13
rules : {
14
14
// Enforce that anchors have content
15
15
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md
16
- 'jsx-a11y/anchor-has-content' : [ 'error' , { components : [ '' ] } ] ,
16
+ 'jsx-a11y/anchor-has-content' : [ 'error' , { components : [ ] } ] ,
17
17
18
18
// Require ARIA roles to be valid and non-abstract
19
19
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md
@@ -32,10 +32,6 @@ module.exports = {
32
32
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md
33
33
'jsx-a11y/aria-unsupported-elements' : 'error' ,
34
34
35
- // disallow href "#"
36
- // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
37
- 'jsx-a11y/href-no-hash' : [ 'error' , { components : [ 'a' ] } ] ,
38
-
39
35
// Enforce that all elements that require alternative text have meaningful information
40
36
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md
41
37
'jsx-a11y/alt-text' : [ 'error' , {
@@ -55,9 +51,8 @@ module.exports = {
55
51
'jsx-a11y/label-has-for' : [ 'error' , { components : [ 'label' ] } ] ,
56
52
57
53
// require that mouseover/out come with focus/blur, for keyboard-only users
58
- // TODO: evaluate
59
54
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
60
- 'jsx-a11y/mouse-events-have-key-events' : 'off ' ,
55
+ 'jsx-a11y/mouse-events-have-key-events' : 'error ' ,
61
56
62
57
// Prevent use of `accessKey`
63
58
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md
@@ -109,8 +104,7 @@ module.exports = {
109
104
110
105
// require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress
111
106
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md
112
- // TODO: enable?
113
- 'jsx-a11y/click-events-have-key-events' : 'off' ,
107
+ 'jsx-a11y/click-events-have-key-events' : 'error' ,
114
108
115
109
// Enforce that DOM elements without semantic behavior not have interaction handlers
116
110
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
@@ -191,8 +185,7 @@ module.exports = {
191
185
192
186
// ensure <a> tags are valid
193
187
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md
194
- // TODO: enable, semver-major
195
- 'jsx-a11y/anchor-is-valid' : [ 'off' , {
188
+ 'jsx-a11y/anchor-is-valid' : [ 'error' , {
196
189
components : [ 'Link' ] ,
197
190
specialLink : [ ] ,
198
191
aspects : [ 'noHref' , 'invalidHref' , 'preferButton' ] ,
0 commit comments