# noObsoleteAttributes

Rule `biome/noObsoleteAttributes`. Disallow obsolete attributes on HTML elements.

- Source: biome
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #531 by reach, #166 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noObsoleteAttributes` | yes | no | group nursery, since 2.6.3 | [docs](https://biomejs.dev/linter/rules/no-obsolete-attributes/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<table bgcolor="#ffffff"></table>;
```

```jsx
<table cellPadding="5"></table>;
```

```jsx
<a name="top">Back to top</a>;
```

### Correct: the rule accepts this

```jsx
<table style={{ backgroundColor: "#ffffff" }}></table>;
<a id="top">Back to top</a>;
<iframe src="/page.html" style={{ border: 0 }}></iframe>;
<input name="email" />;
<Table bgcolor="#ffffff" />;
<a name={undefined}>Back to top</a>;
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noObsoleteAttributes": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noMissingVarFunction](https://lintradar.dev/rules/biome/noMissingVarFunction.md): Require `var()` when using a declared CSS custom property.
- [biome/noPlaywrightMissingAwait](https://lintradar.dev/rules/biome/noPlaywrightMissingAwait.md): Enforce Playwright async APIs to be awaited or returned.
- [biome/noMisrefactoredShorthandAssign](https://lintradar.dev/rules/biome/noMisrefactoredShorthandAssign.md): Disallow shorthand assign when variable appears on both sides.
- [biome/noPlaywrightUnsafeReferences](https://lintradar.dev/rules/biome/noPlaywrightUnsafeReferences.md): Disallow using variables from outside the function passed to `page.evaluate()` and `page.addInitScript()`.
- [biome/noMisplacedListElements](https://lintradar.dev/rules/biome/noMisplacedListElements.md): Require `<li>` elements with an HTML element parent to be children of `<ul>`, `<ol>`, or `<menu>`.
- [biome/noQuickfixBiome](https://lintradar.dev/rules/biome/noQuickfixBiome.md): Disallow `quickfix.biome` in supported editor settings.

---

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