vue/component-definition-name-casing
enforce specific casing for component definition name
- ⚙️ This rule is included in all of
"plugin:vue/strongly-recommended",*.configs["flat/strongly-recommended"],"plugin:vue/vue2-strongly-recommended",*.configs["flat/vue2-strongly-recommended"],"plugin:vue/recommended",*.configs["flat/recommended"],"plugin:vue/vue2-recommended"and*.configs["flat/vue2-recommended"]. - 🔧 The
--fixoption 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.
📖 Rule Details
This rule aims to warn the component definition names other than the configured casing.
🔧 Options
Default casing is set to PascalCase.
json
{
"vue/component-definition-name-casing": ["error", "PascalCase" | "kebab-case"]
}"PascalCase"(default) ... enforce component definition names to pascal case."kebab-case"... enforce component definition names to kebab case.
"PascalCase" (default)
"kebab-case"
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0