astro/jsx-a11y/anchor-ambiguous-text
apply
jsx-a11y/anchor-ambiguous-text
rule to Astro components
This rule is the same rule as jsx-a11y/anchor-ambiguous-text rule but it applies to the Astro components.
You must have eslint-plugin-jsx-a11y >=v6.7.0 installed to use this rule.
The following is a partial excerpt from the jsx-a11y/anchor-ambiguous-text rule documentation. See original documentation for more details.
Enforces
<a>
values are not exact matches for the phrases βclick hereβ, βhereβ, βlinkβ, βa linkβ, or βlearn moreβ. Screenreaders announce tags as links/interactive, but rely on values for context. Ambiguous anchor descriptions do not provide sufficient context for users.
π Further Reading
π Version
This rule was introduced in eslint-plugin-astro v0.22.0
π Implementation
Taken with β€οΈ from eslint-plugin-jsx-a11yEdit this page
Back
β astro/jsx-a11y/alt-text Next Page
astro/jsx-a11y/anchor-has-content β
β astro/jsx-a11y/alt-text Next Page
astro/jsx-a11y/anchor-has-content β