vue/prop-name-casing
enforce specific casing for the Prop name in Vue components
- ⚙️ This rule is included in all of
"plugin:vue/vue3-strongly-recommended",*.configs["flat/strongly-recommended"],"plugin:vue/strongly-recommended",*.configs["flat/vue2-strongly-recommended"],"plugin:vue/vue3-recommended",*.configs["flat/recommended"],"plugin:vue/recommended"and*.configs["flat/vue2-recommended"].
📖 Rule Details
This rule enforce proper casing of props in vue components(camelCase).
🔧 Options
json
{
"vue/prop-name-casing": ["error", "camelCase" | "snake_case"]
}"camelCase"(default) ... Enforce property names inpropsto camel case."snake_case"... Enforce property names inpropsto snake case.
"snake_case"
👫 Related Rules
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v4.3.0