- ⚙️ This rule is included in
"plugin:vue/strongly-recommended"
and"plugin:vue/recommended"
. - 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
Define a style for the name
property casing for consistency purposes.
👍 Examples of correct code for PascalCase
:
export default {
name: 'MyComponent'
}
👍 Examples of correct code for kebab-case
:
export default {
name: 'my-component'
}
Default casing is set to PascalCase
.
"vue/name-property-casing": ["error", "PascalCase|kebab-case"]