vue/multi-word-component-names
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/multi-word-component-names": "error",
},
},
];<script setup>
// ...
</script><script setup>
// ...
</script><script setup>
// ...
</script>
<script>
export default {
name: 'TodoItem'
}
</script><script setup>
// ...
</script>Examples from the ESLint documentation.
vue/multi-word-component-names
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/multi-word-component-names": "error",
},
},
];Oxlint does not have this rule.
style/useVueMultiWordComponentNames
style · since 2.2.3
{
"linter": {
"rules": {
"style": {
"useVueMultiWordComponentNames": "error"
}
}
}
}Require static class names in template to be in a separate class attribute
Enforce Promise or callback style in nextTick
Disallow importing Vue compiler macros
Enforce or forbid the use of the scoped and module attributes in SFC top level style tags