# no-restricted-component-names

Rule `vue/no-restricted-component-names`. Disallow specific component names

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2068 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-restricted-component-names` | no | suggestion | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-restricted-component-names.html) |

## Code examples

### Incorrect: the rule reports this

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

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

### Correct: the rule accepts this

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

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-restricted-component-names": "error",
    },
  },
];
```

## Related rules

- [vue/no-restricted-class](https://lintradar.dev/rules/vue/no-restricted-class.md): Disallow specific classes in Vue components
- [vue/no-restricted-custom-event](https://lintradar.dev/rules/vue/no-restricted-custom-event.md): Disallow specific custom event
- [vue/no-restricted-block](https://lintradar.dev/rules/vue/no-restricted-block.md): Disallow specific block
- [vue/no-restricted-props](https://lintradar.dev/rules/vue/no-restricted-props.md): Disallow specific props
- [vue/no-props-shadow](https://lintradar.dev/rules/vue/no-props-shadow.md): Disallow declarations that shadow props in `<script setup>`
- [vue/no-restricted-static-attribute](https://lintradar.dev/rules/vue/no-restricted-static-attribute.md): Disallow specific attribute

---

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