Skip to content

scopeProps

Reports scope props on non-th elements.

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

The scope attribute defines whether a table header is a column header or row header. Using it on non-<th> elements has no semantic meaning and may confuse assistive technologies.

This is required for WCAG 1.3.1 and 4.1.1 compliance.

<
any
div
scope: true
scope
/>
<
any
div
scope: string
scope
="col" />
<
any
td
scope: string
scope
="row" />

If you’re not working with HTML tables, you can disable this rule.

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