astro/jsx-a11y/alt-text
apply
jsx-a11y/alt-text
rule to Astro components
This rule is the same rule as jsx-a11y/alt-text 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/alt-text rule documentation. See original documentation for more details.
Enforce that all elements that require alternative text have meaningful information to relay back to the end user. This is a critical component of accessibility for screen reader users in order for them to understand the contentβs purpose on the page. By default, this rule checks for alternative text on the following elements:
<img>
,<area>
,<input type="image">
, and<object>
.
π Further Reading
π Version
This rule was introduced in eslint-plugin-astro v0.11.0
π Implementation
Taken with β€οΈ from eslint-plugin-jsx-a11yEdit this page
β astro/prefer-split-class-list Next Page
astro/jsx-a11y/anchor-ambiguous-text β