astro/jsx-a11y/anchor-has-content
apply
jsx-a11y/anchor-has-content
rule to Astro components
This rule is the same rule as jsx-a11y/anchor-has-content rule but it applies to the Astro components.
You must have eslint-plugin-jsx-a11y installed to use this rule.
The following is a partial excerpt from the jsx-a11y/anchor-has-content rule documentation. See original documentation for more details.
Enforce that anchors have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the
aria-hidden
prop.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-astro v0.11.0
🔍 Implementation
Taken with ❤️ from eslint-plugin-jsx-a11yEdit this page
Back
← astro/jsx-a11y/anchor-ambiguous-text Next Page
astro/jsx-a11y/anchor-is-valid →
← astro/jsx-a11y/anchor-ambiguous-text Next Page
astro/jsx-a11y/anchor-is-valid →