Перейти до вмісту

useVueValidVBind

Цей контент ще не доступний вашою мовою.

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

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

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

  • The directive does not have an argument. E.g. <div v-bind></div>
  • 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" />