Skip to content

Commit e7ca137

Browse files
committed
bring back deprecated to keep the replacedBy for now
1 parent 53685b9 commit e7ca137

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Disallow generic link text (`github/a11y-no-generic-link-text`)
22

3-
❌ This rule is deprecated.
3+
❌ This rule is deprecated. It was replaced by `jsx-a11y/anchor-ambiguous-text`.
44

55
<!-- end auto-generated rule header -->
66

lib/rules/a11y-no-generic-link-text.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export default {
3232
},
3333
],
3434
},
35+
// TODO: once https://github.com/bmish/eslint-doc-generator/issues/512 is supported, remove replacedBy
36+
// eslint-disable-next-line eslint-plugin/no-meta-replaced-by
37+
replacedBy: ['jsx-a11y/anchor-ambiguous-text'],
3538
schema: [],
3639
messages: {
3740
avoidGenericLinkText:

0 commit comments

Comments
 (0)