File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ module.exports = {
3030 // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md
3131 'jsx-a11y/aria-unsupported-elements' : 'error' ,
3232
33- // disallow href "#"
34- // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
35- 'jsx-a11y/href-no-hash' : [ 'error' , { components : [ 'a' ] } ] ,
36-
33+ // Enforce that anchors have valid targets
34+ // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md
35+ // Note that 'a' tag is checked by default.
36+ 'anchor-is-valid' : [ 'error' , { components : [ 'Link' ] } ] ,
37+
3738 // Enforce that all elements that require alternative text have meaningful information
3839 // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md
3940 'jsx-a11y/alt-text' : [ 'error' , {
You can’t perform that action at this time.
0 commit comments