Skip to content

useVueValidVBind

  • Rule available since: v2.3.6
  • Diagnostic Category: lint/correctness/useVueValidVBind
  • 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": {
"useVueValidVBind": "error"
}
}
}
}

Forbids v-bind directives with missing values or invalid modifiers.

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

  • The directive does not have a value. E.g. <div v-bind:aaa></div>
  • The directive has invalid modifiers. E.g. <div v-bind:aaa.bbb="ccc"></div>
<Foo v-bind />
<div v-bind></div>
<Foo v-bind:foo="foo" />