# noEmptyObjectKeys

Rule `biome/noEmptyObjectKeys`. Disallow empty keys in JSON objects.

- Source: biome
- Technologies: JSON
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1540 by reach, #44 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noEmptyObjectKeys` | no | no | group suspicious, since 2.4.7 | [docs](https://biomejs.dev/linter/rules/no-empty-object-keys/) |

## Code examples

### Incorrect: the rule reports this

```json
{
  "": "value"
}
```

```json
{
  "validKey": "value",
  "": "another value"
}
```

```json
{
  " ": "space as key"
}
```

### Correct: the rule accepts this

```json
{
  "key": "value"
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noEmptyObjectKeys": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noDuplicateSelectors](https://lintradar.dev/rules/biome/noDuplicateSelectors.md): Disallow duplicate selectors.
- [biome/noEnum](https://lintradar.dev/rules/biome/noEnum.md): Disallow TypeScript enum.
- [biome/noDuplicateGraphqlOperationName](https://lintradar.dev/rules/biome/noDuplicateGraphqlOperationName.md): Require unique operation names within a GraphQL document.
- [biome/noEvolvingTypes](https://lintradar.dev/rules/biome/noEvolvingTypes.md): Disallow variables from evolving into `any` type through reassignments.
- [biome/noDuplicateDependencies](https://lintradar.dev/rules/biome/noDuplicateDependencies.md): Disallow duplicate dependencies in `package.json`.
- [biome/noExportedImports](https://lintradar.dev/rules/biome/noExportedImports.md): Disallow exporting an imported variable.

---

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