Skip to main content
Checks for valid ARIA attribute names
Rule IDa11y/aria-valid-attr
CategoryAccessibility
ScopePer-page
Severityerror
Weight8/10

Solution

Use only valid ARIA attribute names as defined in the WAI-ARIA specification. Common typos include ‘aria-labeledby’ (should be ‘aria-labelledby’), ‘aria-role’ (should be ‘role’), and ‘aria-description’ vs ‘aria-describedby’. Consult MDN or the WAI-ARIA spec for the complete list of valid attributes.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/aria-valid-attr"]

Disable all Accessibility rules

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

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/aria-valid-attr"]
disable = ["*"]