Skip to content

Commit 7556b0b

Browse files
committed
mark existing rule as deprecated
1 parent ccc2c38 commit 7556b0b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,8 @@ This config will be interpreted in the following way:
9393

9494
#### Accessibility-focused rules (prefixed with a11y)
9595

96-
- [No Generic Link Text](./docs/rules/a11y-no-generic-link-text.md)
9796
- [Role Supports ARIA Props](./docs/rules/role-supports-aria-props.md)
97+
98+
##### Deprecated
99+
100+
- [No Generic Link Text](./docs/rules/a11y-no-generic-link-text.md)

docs/rules/a11y-no-generic-link-text.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# No Generic Link Text
1+
# No Generic Link Text [Deprecated]
2+
3+
_This rule has been deprecated in favor of `anchor-ambiguous-text` in `eslint-plugin-jsx-a11y`._
24

35
## Rule Details
46

lib/configs/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
plugins: ['github', 'jsx-a11y'],
99
extends: ['plugin:jsx-a11y/recommended'],
1010
rules: {
11-
'github/a11y-no-generic-link-text': 'error',
11+
'github/a11y-no-generic-link-text': 'off',
1212
'github/role-supports-aria-props': 'error',
1313
'jsx-a11y/role-supports-aria-props': 'off',
1414
},

0 commit comments

Comments
 (0)