# useConsistentObjectKeys

Rule `biome/useConsistentObjectKeys`. Enforce JSON keys with consistent Unicode representation.

- Source: biome
- Technologies: JSON
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #586 by reach, #221 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/useConsistentObjectKeys` | yes | unsafe | group nursery, since 2.5.14 | [docs](https://biomejs.dev/linter/rules/use-consistent-object-keys/) |

## Code examples

### Incorrect: the rule reports this

```json
{
    "caf\u0065\u0301": "espresso"
}
```

### Correct: the rule accepts this

```json
{
    "caf\u00e9": "espresso"
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useConsistentObjectKeys": "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/useBiomeTopLevelTypes](https://lintradar.dev/rules/biome/useBiomeTopLevelTypes.md): Require kind sets in Biome JS plugins to be created at the top level of the module.
- [biome/useConvexAccessControl](https://lintradar.dev/rules/biome/useConvexAccessControl.md): Require public Convex functions to call an access control function.
- [biome/useBiomeKindSets](https://lintradar.dev/rules/biome/useBiomeKindSets.md): Require kind sets instead of comparing kind names one by one in Biome JS plugins.
- [biome/useConvexArgsValidator](https://lintradar.dev/rules/biome/useConvexArgsValidator.md): Require an `args` validator in Convex queries, mutations, and actions.
- [biome/useBiomeIgnoreFolder](https://lintradar.dev/rules/biome/useBiomeIgnoreFolder.md): Prefer folder exclusions that prevent Biome from scanning the folder.
- [biome/useConvexExplicitTableIds](https://lintradar.dev/rules/biome/useConvexExplicitTableIds.md): Require the table name as the first argument of Convex database calls.

---

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