# prefer-media-feature-range-syntax

Rule `unicorn/prefer-media-feature-range-syntax`. Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.

- Source: unicorn
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Deprecated: yes
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2035 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `unicorn/prefer-media-feature-range-syntax` | no | no | package `eslint-plugin-unicorn` | [docs](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax) |

## Enable it

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

```js
import unicorn from "eslint-plugin-unicorn";

export default [
  {
    plugins: { unicorn },
    rules: {
      "unicorn/prefer-media-feature-range-syntax": "error",
    },
  },
];
```

## Related rules

- [unicorn/prefer-regexp-escape](https://lintradar.dev/rules/unicorn/prefer-regexp-escape.md): Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
- [unicorn/prefer-json-import](https://lintradar.dev/rules/unicorn/prefer-json-import.md): Prefer JSON imports over reading and parsing JSON files.
- [unicorn/prefer-short-arrow-method](https://lintradar.dev/rules/unicorn/prefer-short-arrow-method.md): Prefer arrow function properties over methods with a single return.
- [unicorn/prefer-iterator-concat](https://lintradar.dev/rules/unicorn/prefer-iterator-concat.md): Prefer `Iterator.concat(…)` over temporary spread arrays.
- [unicorn/prefer-temporal](https://lintradar.dev/rules/unicorn/prefer-temporal.md): Prefer `Temporal` over `Date`.
- [unicorn/prefer-uint8array-base64](https://lintradar.dev/rules/unicorn/prefer-uint8array-base64.md): Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.

---

Web page: https://lintradar.dev/rules/unicorn/prefer-media-feature-range-syntax. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
