# no-reserved-keys

Rule `vue/no-reserved-keys`. Disallow overwriting reserved keys

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #326 by reach, #318 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-reserved-keys` | yes | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-reserved-keys.html) |
| Oxlint | `vue/no-reserved-keys` | no | no | plugin `vue`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vue/no-reserved-keys.html) |
| Biome | `correctness/noVueReservedKeys` | yes | no | group correctness, since 2.1.3 | [docs](https://biomejs.dev/linter/rules/no-vue-reserved-keys/) |

## Code examples

### Incorrect: the rule reports this

```vue
<script>
export default {
  props: ['$data'],
  methods: {
    $emit() {}
  }
}
</script>
```

### Correct: the rule accepts this

```vue
<script>
export default {
  props: ['fooData'],
  methods: {
    send() {}
  }
}
</script>
```

Examples from the Oxlint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-reserved-keys": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vue"
  ],
  "rules": {
    "vue/no-reserved-keys": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noVueReservedKeys": "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% |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Vue essential](https://lintradar.dev/presets/vue-essential.md) | ESLint | `eslint-plugin-vue` | 85 | 9.5M | +46.6% |
| [Vue strongly recommended](https://lintradar.dev/presets/vue-strongly-recommended.md) | ESLint | `eslint-plugin-vue` | 110 | 9.5M | +46.6% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/no-lifecycle-after-await](https://lintradar.dev/rules/vue/no-lifecycle-after-await.md): Disallow asynchronously registered lifecycle hooks
- [vue/no-reserved-props](https://lintradar.dev/rules/vue/no-reserved-props.md): Disallow reserved names in props
- [vue/no-expose-after-await](https://lintradar.dev/rules/vue/no-expose-after-await.md): Disallow asynchronously registered `expose`
- [vue/no-side-effects-in-computed-properties](https://lintradar.dev/rules/vue/no-side-effects-in-computed-properties.md): Disallow side effects in computed properties
- [vue/no-export-in-script-setup](https://lintradar.dev/rules/vue/no-export-in-script-setup.md): Disallow `export` in `<script setup>`
- [vue/no-watch-after-await](https://lintradar.dev/rules/vue/no-watch-after-await.md): Disallow asynchronously registered `watch`

---

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