# noDuplicateFontNames

Rule `biome/noDuplicateFontNames`. Disallow duplicate names in font-family lists.

- 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: #509 by reach, #144 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noDuplicateFontNames` | yes | no | group suspicious, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-duplicate-font-names/) |

## Code examples

### Incorrect: the rule reports this

```css
a { font-family: "Lucida Grande", 'Arial', sans-serif, sans-serif; }
```

```css
a { font-family: 'Arial', "Lucida Grande", Arial, sans-serif; }
```

```css
a { FONT: italic 300 16px/30px Arial, " Arial", serif; }
```

### Correct: the rule accepts this

```css
a { font-family: "Lucida Grande", "Arial", sans-serif; }
b { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif; }
c { font-family: SF Mono, Liberation Mono, sans-serif; }
d { font: 1em SF Mono, Liberation Mono, sans-serif; }
e { font-family: monospace, monospace; }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noDuplicateFontNames": "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/noDuplicateFields](https://lintradar.dev/rules/biome/noDuplicateFields.md): Disallow duplicate names inside GraphQL operations.
- [biome/noDuplicateInputFieldNames](https://lintradar.dev/rules/biome/noDuplicateInputFieldNames.md): Require fields within an input object to be unique.
- [biome/noDuplicateFieldDefinitionNames](https://lintradar.dev/rules/biome/noDuplicateFieldDefinitionNames.md): Require all fields of a type to be unique.
- [biome/noDuplicateProperties](https://lintradar.dev/rules/biome/noDuplicateProperties.md): Disallow duplicate properties within declaration blocks.
- [biome/noDuplicateEnumValueNames](https://lintradar.dev/rules/biome/noDuplicateEnumValueNames.md): Disallow duplicate names in GraphQL enums.
- [biome/noDuplicateSelectorsKeyframeBlock](https://lintradar.dev/rules/biome/noDuplicateSelectorsKeyframeBlock.md): Disallow duplicate selectors within keyframe blocks.

---

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