# noTailwindLegacyUtilities

Rule `biome/noTailwindLegacyUtilities`. Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.

- Source: biome
- Technologies: Tailwind CSS, React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #559 by reach, #194 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noTailwindLegacyUtilities` | yes | safe | group nursery, since 2.6.0 | [docs](https://biomejs.dev/linter/rules/no-tailwind-legacy-utilities/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<div className="flex-grow" />;
```

```jsx
<div className="hover:bg-gradient-to-r" />;
```

### Correct: the rule accepts this

```jsx
<div className="grow hover:bg-linear-to-r text-ellipsis inset-s-4" />;
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noTailwindLegacyUtilities": "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/noTailwindLegacyImportant](https://lintradar.dev/rules/biome/noTailwindLegacyImportant.md): Disallow the leading `!` important modifier in Tailwind CSS classes.
- [biome/noTanstackQueryRestDestructuring](https://lintradar.dev/rules/biome/noTanstackQueryRestDestructuring.md): Disallow rest destructuring and object spread on TanStack Query results.
- [biome/noTailwindConflictingClasses](https://lintradar.dev/rules/biome/noTailwindConflictingClasses.md): Disallow Tailwind CSS classes that set the same CSS properties on an element.
- [biome/noTanstackQueryUnstableDeps](https://lintradar.dev/rules/biome/noTanstackQueryUnstableDeps.md): Disallow using the result of a TanStack Query hook as a React hook dependency.
- [biome/noSvgWithoutTitle](https://lintradar.dev/rules/biome/noSvgWithoutTitle.md): Enforces the usage of the `title` element for the `svg` element.
- [biome/noTanstackQueryVoidQueryFn](https://lintradar.dev/rules/biome/noTanstackQueryVoidQueryFn.md): Disallow TanStack Query functions that don't return any data.

---

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