# useSimpleNumberKeys

Rule `biome/useSimpleNumberKeys`. Disallow number literal object member names which are not base 10 or use underscore as separator.

- Source: biome
- Technologies: JavaScript
- 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: #606 by reach, #241 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/useSimpleNumberKeys` | yes | safe | group complexity, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/use-simple-number-keys/) |

## Code examples

### Incorrect: the rule reports this

```js
({ 0x1: 1 });
```

```js
({ 11_1.11: "ee" });
```

```js
({ 0o1: 1 });
```

### Correct: the rule accepts this

```js
({ 0: "zero" });
({ 122: "integer" });
({ 1.22: "floating point" });
({ 3.1e12: "floating point with e" });
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "useSimpleNumberKeys": "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/useReactNativeValidPlatformColors](https://lintradar.dev/rules/biome/useReactNativeValidPlatformColors.md): Require `PlatformColor()` and `DynamicColorIOS()` calls to use values written directly in the call.
- [biome/useSvelteEventDispatcherTypes](https://lintradar.dev/rules/biome/useSvelteEventDispatcherTypes.md): Require `createEventDispatcher` calls to declare the types of their events.
- [biome/useReactNativePlatformComponents](https://lintradar.dev/rules/biome/useReactNativePlatformComponents.md): Ensure that platform-specific React Native components are only imported in files named for that platform.
- [biome/useSvelteKitResolve](https://lintradar.dev/rules/biome/useSvelteKitResolve.md): Require internal navigation in SvelteKit apps to use paths built with `resolve()`.
- [biome/useReactAsyncServerFunction](https://lintradar.dev/rules/biome/useReactAsyncServerFunction.md): Require functions with the "use server" directive to be async.
- [biome/useSvelteKitRuneImports](https://lintradar.dev/rules/biome/useSvelteKitRuneImports.md): Require importing SvelteKit's app state from `$app/state` instead of `$app/stores`.

---

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