# no-reserved-component-names

Rule `vue/no-reserved-component-names`. Disallow the use of reserved names in component definitions

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
<script>
export default {
  name: 'div',
}
</script>
```

### Correct: the rule accepts this

```vue
<script>
export default {
  name: 'MyComponent',
}
</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-component-names": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [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% |
| [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-shared-component-data](https://lintradar.dev/rules/vue/no-shared-component-data.md): Enforce component's data property to be a function
- [vue/no-unused-vars](https://lintradar.dev/rules/vue/no-unused-vars.md): Disallow unused variable definitions of v-for directives or scope attributes
- [vue/comment-directive](https://lintradar.dev/rules/vue/comment-directive.md): Support comment-directives in `<template>`
- [vue/jsx-uses-vars](https://lintradar.dev/rules/vue/jsx-uses-vars.md): Prevent variables used in JSX to be marked as unused
- [vue/no-parsing-error](https://lintradar.dev/rules/vue/no-parsing-error.md): Disallow parsing errors in `<template>`
- [vue/no-unused-components](https://lintradar.dev/rules/vue/no-unused-components.md): Disallow registering components that are not used inside templates

---

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