aria-props
Configuration
Enforce that every aria-* attribute on a JSX element is a recognized ARIA
state or property as defined by aria-query.
Catches typos (aria-labeledby for aria-labelledby) and made-up names
(aria-onclick, aria-tabindex).
Rule Details
The rule fires on a JSX attribute whose name literally begins with aria-
(lowercase, case-sensitive — ARIA-HIDDEN and Aria-Hidden are ignored)
but is not present in aria-query's ariaPropsMap.
When the offending name is within Damerau-Levenshtein distance 2 of one or
more canonical attributes (after upper-casing both sides), the diagnostic
appends up to two suggestions in the form
Did you mean to use <suggestion1>,<suggestion2>?.
JSXSpreadAttribute is not visited — the spread payload is not inspected,
matching upstream's listener.
Examples of incorrect code for this rule:
Examples of correct code for this rule: