Skip to content

useVueValidVCloak

biome.json
{
"linter": {
"rules": {
"nursery": {
"useVueValidVCloak": "error"
}
}
}
}

Enforce valid v-cloak Vue directives.

This rule reports v-cloak directives in the following cases:

  • The directive has an argument. E.g. <div v-cloak:aaa></div>
  • The directive has any modifiers. E.g. <div v-cloak.bbb></div>
  • The directive has an attribute value. E.g. <div v-cloak="foo"></div>
<div v-cloak:arg></div>
<div v-cloak.mod></div>
<div v-cloak="value"></div>
<div v-cloak></div>