vue/valid-v-cloak
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-cloak": "error",
},
},
]; <div v-cloak:aaa />
<div v-cloak.bbb />
<div v-cloak="ccc" />
</template><div v-cloak />Examples from the ESLint documentation.
vue/valid-v-cloak
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-cloak": "error",
},
},
];Oxlint does not have this rule.
correctness/useVueValidVCloak
correctness · since 2.3.11
{
"linter": {
"rules": {
"correctness": {
"useVueValidVCloak": "error"
}
}
}
}