vue/valid-v-show
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-show": "error",
},
},
]; <div v-show />
<div v-show:aaa="foo" />
<div v-show.bbb="foo" />
<template v-show="condition" />
</template><div v-show="foo" />Examples from the ESLint documentation.
vue/valid-v-show
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-show": "error",
},
},
];Oxlint does not have this rule.
nursery/useVueValidVShow
nursery · since 2.6.4
{
"linter": {
"rules": {
"nursery": {
"useVueValidVShow": "error"
}
}
}
}Enforce specific casing for the Prop name in Vue components