- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
Define a style for component definition name casing for consistency purposes.
👍 Examples of correct code for PascalCase
:
export default {
name: 'MyComponent'
}
Vue.component('MyComponent', {
})
👍 Examples of correct code for kebab-case
:
export default {
name: 'my-component'
}
Vue.component('my-component', {
})
Default casing is set to PascalCase
.
{
"vue/component-definition-name-casing": ["error", "PascalCase|kebab-case"]
}