@@ -9,7 +9,7 @@ module.exports = {
99 rules : {
1010 // Enforce that anchors have content
1111 // 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 : [ '' ] } ] ,
1313
1414 // Require ARIA roles to be valid and non-abstract
1515 // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md
@@ -30,7 +30,7 @@ module.exports = {
3030
3131 // disallow href "#"
3232 // 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' ] } ] ,
3434
3535 // Require <img> to have a non-empty `alt` prop, or role="presentation"
3636 // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-has-alt.md
@@ -42,7 +42,7 @@ module.exports = {
4242
4343 // require that JSX labels use "htmlFor"
4444 // 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' ] } ] ,
4646
4747 // require that mouseover/out come with focus/blur, for keyboard-only users
4848 // TODO: evaluate
@@ -82,7 +82,7 @@ module.exports = {
8282
8383 // ensure <hX> tags have content and are not aria-hidden
8484 // 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 : [ '' ] } ] ,
8686
8787 // require HTML elements to have a "lang" prop
8888 // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md
0 commit comments