Skip to content

useVueValidVText

  • Rule available since: v2.3.7
  • Diagnostic Category: lint/correctness/useVueValidVText
  • This rule is recommended, meaning it is enabled by default.
  • This rule doesn’t have a fix.
  • The default severity of this rule is error.
  • This rule belongs to the following domains:
  • Sources:
biome.json
{
"linter": {
"rules": {
"correctness": {
"useVueValidVText": "error"
}
}
}
}

Enforce valid v-text Vue directives.

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

  • The directive has an argument. E.g. <div v-text:aaa></div>
  • The directive has any modifiers. E.g. <div v-text.bbb></div>
  • The directive does not have a value. E.g. <div v-text></div>
<div v-text />
<div v-text:aaa="foo"></div>
<div v-text.bbb="foo"></div>
<div v-text="foo" />