@@ -9,7 +9,7 @@ module.exports = {
9
9
rules : {
10
10
// Enforce that anchors have content
11
11
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md
12
- 'jsx-a11y/anchor-has-content' : [ 'error' , [ '' ] ] ,
12
+ 'jsx-a11y/anchor-has-content' : [ 'error' , { components : [ '' ] } ] ,
13
13
14
14
// Require ARIA roles to be valid and non-abstract
15
15
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md
@@ -30,7 +30,7 @@ module.exports = {
30
30
31
31
// disallow href "#"
32
32
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
33
- 'jsx-a11y/href-no-hash' : [ 'error' , [ 'a' ] ] ,
33
+ 'jsx-a11y/href-no-hash' : [ 'error' , { components : [ 'a' ] } ] ,
34
34
35
35
// Require <img> to have a non-empty `alt` prop, or role="presentation"
36
36
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-has-alt.md
@@ -42,7 +42,7 @@ module.exports = {
42
42
43
43
// require that JSX labels use "htmlFor"
44
44
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
45
- 'jsx-a11y/label-has-for' : [ 'error' , [ 'label' ] ] ,
45
+ 'jsx-a11y/label-has-for' : [ 'error' , { components : [ 'label' ] } ] ,
46
46
47
47
// require that mouseover/out come with focus/blur, for keyboard-only users
48
48
// TODO: evaluate
@@ -82,7 +82,7 @@ module.exports = {
82
82
83
83
// ensure <hX> tags have content and are not aria-hidden
84
84
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md
85
- 'jsx-a11y/heading-has-content' : [ 'error' , [ '' ] ] ,
85
+ 'jsx-a11y/heading-has-content' : [ 'error' , { components : [ '' ] } ] ,
86
86
87
87
// require HTML elements to have a "lang" prop
88
88
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md
0 commit comments