vue/no-reserved-component-names
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-reserved-component-names": "error",
},
},
];Disallow the use of reserved names in component definitions
<script>
export default {
name: 'div',
}
</script><script>
export default {
name: 'MyComponent',
}
</script>Examples from the Oxlint documentation.
vue/no-reserved-component-names
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-reserved-component-names": "error",
},
},
];vue/no-reserved-component-names
vue plugin · correctness
{
"plugins": [
"vue"
],
"rules": {
"vue/no-reserved-component-names": "error"
}
}Biome does not have this rule.
Enforce component's data property to be a function
Disallow unused variable definitions of v-for directives or scope attributes
Disallow registering components that are not used inside templates