# scope

Rule `jsx-a11y/scope`. Enforce `scope` prop is only used on `<th>` elements.

- Source: jsx-a11y
- Technologies: Accessibility, React
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 103.1M weekly downloads of presets that enable it
- Trend: +52.4% last quarter
- Rank: #155 by reach, #772 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsx-a11y/scope` | yes | no | package `eslint-plugin-jsx-a11y` | [docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/scope.md) |
| Oxlint | `jsx-a11y/scope` | no | safe | plugin `jsx-a11y`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/scope.html) |
| Biome | `a11y/noHeaderScope` | yes | unsafe | group a11y, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-header-scope/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<div scope />
```

### Correct: the rule accepts this

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

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsxA11y from "eslint-plugin-jsx-a11y";

export default [
  {
    plugins: { "jsx-a11y": jsxA11y },
    rules: {
      "jsx-a11y/scope": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsx-a11y"
  ],
  "rules": {
    "jsx-a11y/scope": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "a11y": {
        "noHeaderScope": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [jsx-a11y recommended](https://lintradar.dev/presets/jsx-a11y-recommended.md) | ESLint | `eslint-plugin-jsx-a11y` | 31 | 65.1M | +42.0% |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [jsx-a11y strict](https://lintradar.dev/presets/jsx-a11y-strict.md) | ESLint | `eslint-plugin-jsx-a11y` | 31 | 65.1M | +42.0% |
| [Create React App](https://lintradar.dev/presets/react-app.md) | ESLint | `eslint-config-react-app` | 109 | 4.1M | +4.3% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [jsx-a11y/no-redundant-roles](https://lintradar.dev/rules/jsx-a11y/no-redundant-roles.md): Enforce explicit role property is not the same as implicit/default role property on element.
- [jsx-a11y/no-distracting-elements](https://lintradar.dev/rules/jsx-a11y/no-distracting-elements.md): Enforce distracting elements are not used.
- [jsx-a11y/no-access-key](https://lintradar.dev/rules/jsx-a11y/no-access-key.md): Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.
- [jsx-a11y/img-redundant-alt](https://lintradar.dev/rules/jsx-a11y/img-redundant-alt.md): Enforce `<img>` alt prop does not contain the word "image", "picture", or "photo".
- [jsx-a11y/iframe-has-title](https://lintradar.dev/rules/jsx-a11y/iframe-has-title.md): Enforce iframe elements have a title attribute.
- [jsx-a11y/heading-has-content](https://lintradar.dev/rules/jsx-a11y/heading-has-content.md): Enforce heading (`h1`, `h2`, etc) elements contain accessible content.

---

Web page: https://lintradar.dev/rules/jsx-a11y/scope. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
