src/content/docs/linter/rules/use-vue-valid-v-text.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.7` - Diagnostic Category: [`lint/nursery/useVueValidVText`](/reference/diagnostics#diagnostic-category) - This rule doesn't have a 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-text`](https://eslint.vuejs.org/rules/valid-v-text){
"linter": {
"rules": {
"nursery": {
"useVueValidVText": "error"
}
}
}
}
Enforce valid v-text Vue directives.
This rule reports v-text directives in the following cases:
<div v-text:aaa></div><div v-text.bbb></div><div v-text></div><div v-text />
<div v-text:aaa="foo"></div>
<div v-text.bbb="foo"></div>
<div v-text="foo" />