GitHub

Redundant Image Alt

Checks that image alt text is not redundant with surrounding text

Checks that image alt text is not redundant with surrounding text

Rule IDa11y/image-redundant-alt
CategoryAccessibility
ScopePer-page
Severitywarning
Weight4/10

Solution

Image alt text should not start with ‘image of’, ‘photo of’, ‘picture of’, etc. Screen readers already announce that it’s an image. Alt text should describe the content or function, not state the obvious. Also avoid duplicating adjacent text in the alt.

Enable / Disable

Disable this rule

squirrel.toml
toml
[rules]
disable = ["a11y/image-redundant-alt"]

Disable all Accessibility rules

squirrel.toml
toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
toml
[rules]
enable = ["a11y/image-redundant-alt"]
disable = ["*"]

Type to search…

↑↓ navigate ↵ open esc close