vue/restricted-component-names
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/restricted-component-names": "error",
},
},
]; <custom-component />
</template> <my-component />
</template><button/>
<keep-alive></keep-alive><custom-component />Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vue/restricted-component-names
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/restricted-component-names": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce sort-keys in a manner that is compatible with order-in-components