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-a11y

Edit this page