Skip to main content
Checks for valid values in ARIA attributes
Rule IDa11y/aria-valid-attr-value
CategoryAccessibility
ScopePer-page
Severityerror
Weight8/10

Solution

Ensure ARIA attribute values match the expected type. Boolean attributes should be ‘true’ or ‘false’. Enumerated attributes like aria-current have specific allowed values. Numeric attributes like aria-level must be numbers. Check the WAI-ARIA specification for valid values.

Enable / Disable

Disable this rule

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

Disable all Accessibility rules

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

Enable only this rule

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