useVueValidVOnce
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/useVueValidVOnce - This rule has an unsafe fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/valid-v-once
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVOnce": "error" } } }}Description
Section titled “Description”Enforce valid v-once Vue directives.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”This rule reports v-once directives in the following cases:
The directive has an argument so it is invalid.
<div v-once:arg></div>The directive has a modifier so it is invalid.
<div v-once.mod></div>The directive has a value so it is invalid.
<div v-once="value"></div><div v-once></div>Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.