vue/prop-name-casing
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/prop-name-casing": "error",
},
},
];<script>
export default {
props: {
greeting_text: String,
}
}
</script><script>
export default {
props: {
greetingText: String,
}
}
</script>Examples from the Oxlint documentation.
vue/prop-name-casing
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/prop-name-casing": "error",
},
},
];vue/prop-name-casing
vue plugin · style
{
"plugins": [
"vue"
],
"rules": {
"vue/prop-name-casing": "error"
}
}nursery/useVueConsistentPropNameCasing
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"useVueConsistentPropNameCasing": "error"
}
}
}
}Enforce attribute naming style on custom components in template
Disallow variable declarations from shadowing variables declared in the outer scope
Enforce that each component should be in its own file