# noImportantStyles

Rule `biome/noImportantStyles`. Disallow `!important` declarations.

- Source: biome
- Technologies: CSS
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 28.5M weekly downloads of presets that enable it
- Trend: +106.8% last quarter
- Rank: #619 by reach, #256 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/noImportantStyles` | yes | unsafe | group complexity, since 2.0.0 | [docs](https://biomejs.dev/linter/rules/no-important-styles/) |

## Code examples

### Incorrect: the rule reports this

```css
.style {
    color: red !important;
}
```

### Correct: the rule accepts this

```css
.style {
    color: red;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noImportantStyles": "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% |

## Related rules

- [biome/useTanstackQueryStableQueryClient](https://lintradar.dev/rules/biome/useTanstackQueryStableQueryClient.md): Require the TanStack Query `QueryClient` to be created once, not on every render.
- [biome/noPrivateImports](https://lintradar.dev/rules/biome/noPrivateImports.md): Restrict imports of private exports.
- [biome/useTanstackQueryQueryOptions](https://lintradar.dev/rules/biome/useTanstackQueryQueryOptions.md): Require TanStack Query options to be created with `queryOptions()`.
- [biome/noUndeclaredEnvVars](https://lintradar.dev/rules/biome/noUndeclaredEnvVars.md): Disallow the use of undeclared environment variables.
- [biome/useTanstackQueryMutationPropertyOrder](https://lintradar.dev/rules/biome/useTanstackQueryMutationPropertyOrder.md): Enforce that `onMutate` comes before `onError` and `onSettled` in the options of TanStack Query mutations.
- [biome/useTanstackQueryInfiniteQueryPropertyOrder](https://lintradar.dev/rules/biome/useTanstackQueryInfiniteQueryPropertyOrder.md): Enforce a consistent property order in the options of TanStack Query infinite query functions.

---

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