Skip to content

scopeProps

Reports scope props on non-th elements.

✅ This rule is included in the jsx logical preset.

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.

<div scope />
<div scope="col" />
<td scope="row" />

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

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.