astro/jsx-a11y/img-redundant-alt

apply jsx-a11y/img-redundant-alt rule to Astro components

This rule is the same rule as jsx-a11y/img-redundant-alt 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/img-redundant-alt rule documentation. See original documentation for more details.

Enforce img alt attribute does not contain the word image, picture, or photo. Screenreaders already announce img elements as an image. There is no need to use words such as image, photo, and/or picture.

📚 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