securityos/node_modules/eslint-plugin-jsx-a11y/docs/rules/scope.md

640 B

jsx-a11y/scope

💼 This rule is enabled in the following configs: ☑️ recommended, 🔒 strict.

The scope prop should be used only on <th> elements.

Rule details

This rule takes no arguments.

Succeed

<th scope="col" />
<th scope={scope} />

Fail

<div scope />

Accessibility guidelines

Resources