Skip to content

ariaProps

Reports invalid ARIA properties.

✅ This rule is included in the jsx logical and logicalStrict presets.

If a DOM property begins with aria-, it can only be valid if it’s listed in the WAI-ARIA States and Properties specification. Any other property beginning with aria- is considered invalid and will not be handled propertly by a browser.

Common mistakes include misspelling property names, such as aria-labeledby instead of aria-labelledby.

This is required for WCAG 4.1.2 compliance.

<
any
input
aria-labeledby: string
aria-labeledby
="address_label" />
<
any
div
aria-invalid-prop: string
aria-invalid-prop
="true" />
<
any
button
aria-labelled: string
aria-labelled
="Submit" />

You should always use this rule to ensure ARIA properties are valid.

Made with ❤️‍🔥 around the world by the Flint team and contributors.