Skip to content

Commit 87c51ca

Browse files
Redmegacherihung
authored andcommitted
Update jsxa11y.js (#2)
1 parent e8d4bf9 commit 87c51ca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jsxa11y.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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', {

0 commit comments

Comments
 (0)