useVueValidVBind
Ta treść nie jest jeszcze dostępna w Twoim języku.
Summary
Section titled “Summary”- Rule available since:
v2.3.6 - Diagnostic Category:
lint/nursery/useVueValidVBind - This rule doesn’t have a fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/valid-v-bind
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVBind": "error" } } }}Description
Section titled “Description”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>
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<Foo v-bind /><div v-bind></div><Foo v-bind:foo="foo" />Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.