# noUnknownPseudoClass

Rule `biome/noUnknownPseudoClass`. Disallow unrecognized pseudo-class selectors.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noUnknownPseudoClass` | yes | no | group correctness, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-unknown-pseudo-class/) |

## Code examples

### Incorrect: the rule reports this

```css
a:unknown {}
```

```css
a:UNKNOWN {}
```

```css
a:hoverr {}
```

### Correct: the rule accepts this

```css
a:hover {}
```

```css
a:focus {}
```

```css
:not(p) {}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noUnknownPseudoClass": "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/noUnknownProperty](https://lintradar.dev/rules/biome/noUnknownProperty.md): Disallow unrecognized CSS properties.
- [biome/noUnknownPseudoElement](https://lintradar.dev/rules/biome/noUnknownPseudoElement.md): Disallow unrecognized pseudo-element selectors.
- [biome/noUnknownMediaFeatureName](https://lintradar.dev/rules/biome/noUnknownMediaFeatureName.md): Disallow unrecognized feature names in media queries.
- [biome/noUnknownTypeSelector](https://lintradar.dev/rules/biome/noUnknownTypeSelector.md): Disallow unrecognized element names in type selectors.
- [biome/noUnknownFunction](https://lintradar.dev/rules/biome/noUnknownFunction.md): Disallow unrecognized CSS value functions.
- [biome/noUnknownUnit](https://lintradar.dev/rules/biome/noUnknownUnit.md): Disallow unrecognized CSS units.

---

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