src/content/docs/linter/rules/use-vue-valid-v-cloak.mdx
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs> <TabItem label="HTML" icon="seti:html"> :::caution This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time. ::: ## Summary - Rule available since: `v2.3.11` - Diagnostic Category: [`lint/nursery/useVueValidVCloak`](/reference/diagnostics#diagnostic-category) - This rule has an [**unsafe**](/linter/#unsafe-fixes) fix. - The default severity of this rule is [**information**](/reference/diagnostics#information). - This rule belongs to the following domains: - [`vue`](/linter/domains#vue) - Sources: - Same as [`vue/valid-v-cloak`](https://eslint.vuejs.org/rules/valid-v-cloak){
"linter": {
"rules": {
"nursery": {
"useVueValidVCloak": "error"
}
}
}
}
Enforce valid v-cloak Vue directives.
This rule reports v-cloak directives in the following cases:
<div v-cloak:aaa></div><div v-cloak.bbb></div><div v-cloak="foo"></div><div v-cloak:arg></div>
<div v-cloak.mod></div>
<div v-cloak="value"></div>
<div v-cloak></div>