# noDeprecatedMediaType

Rule `biome/noDeprecatedMediaType`. Disallow deprecated media types.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noDeprecatedMediaType` | yes | no | group suspicious, since 2.3.14 | [docs](https://biomejs.dev/linter/rules/no-deprecated-media-type/) |

## Code examples

### Incorrect: the rule reports this

```css
@media tv {}
```

```css
@media handheld and (min-width: 480px) {}
```

### Correct: the rule accepts this

```css
@media screen {}
```

```css
@media print and (min-resolution: 300dpi) {}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noDeprecatedMediaType": "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/noConvexTopOfHourCrons](https://lintradar.dev/rules/biome/noConvexTopOfHourCrons.md): Disallow scheduling Convex cron jobs at the start of the hour.
- [biome/noDescendingSpecificity](https://lintradar.dev/rules/biome/noDescendingSpecificity.md): Disallow lower-specificity selectors after higher-specificity selectors.
- [biome/noConvexTimeOrRandomInQueries](https://lintradar.dev/rules/biome/noConvexTimeOrRandomInQueries.md): Disallow reading the current time or generating random values in Convex queries.
- [biome/noDrizzleDeleteWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleDeleteWithoutWhere.md): Require `.where()` to be called when using `.delete()` with Drizzle ORM.
- [biome/noConvexQueryFilter](https://lintradar.dev/rules/biome/noConvexQueryFilter.md): Disallow calling `.filter()` on a Convex database query.
- [biome/noDrizzleUpdateWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleUpdateWithoutWhere.md): Require `.where()` to be called when using `.update()` with Drizzle ORM.

---

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