# noDuplicateCustomProperties

Rule `biome/noDuplicateCustomProperties`. Disallow duplicate custom properties within declaration blocks.

- 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: #505 by reach, #140 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noDuplicateCustomProperties` | yes | no | group suspicious, since 1.9.0 | [docs](https://biomejs.dev/linter/rules/no-duplicate-custom-properties/) |

## Code examples

### Incorrect: the rule reports this

```css
a { --custom-property: pink; --custom-property: orange;  }
```

```css
a { --custom-property: pink; background: orange; --custom-property: orange }
```

### Correct: the rule accepts this

```css
a { --custom-property: pink; }
```

```css
a { --custom-property: pink; --cUstOm-prOpErtY: orange; }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noDuplicateCustomProperties": "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/noDuplicateAtImportRules](https://lintradar.dev/rules/biome/noDuplicateAtImportRules.md): Disallow duplicate `@import` rules.
- [biome/noDuplicateEnumValueNames](https://lintradar.dev/rules/biome/noDuplicateEnumValueNames.md): Disallow duplicate names in GraphQL enums.
- [biome/noDuplicateArgumentNames](https://lintradar.dev/rules/biome/noDuplicateArgumentNames.md): Require unique argument names for fields and directives.
- [biome/noDuplicateFieldDefinitionNames](https://lintradar.dev/rules/biome/noDuplicateFieldDefinitionNames.md): Require all fields of a type to be unique.
- [biome/noDrizzleUpdateWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleUpdateWithoutWhere.md): Require `.where()` to be called when using `.update()` with Drizzle ORM.
- [biome/noDuplicateFields](https://lintradar.dev/rules/biome/noDuplicateFields.md): Disallow duplicate names inside GraphQL operations.

---

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