useVueValidVText
Summary
Section titled “Summary”- Rule available since:
v2.3.7 - Diagnostic Category:
lint/nursery/useVueValidVText - 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-text
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVText": "error" } } }}Description
Section titled “Description”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>
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<div v-text /><div v-text:aaa="foo"></div><div v-text.bbb="foo"></div><div v-text="foo" />Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.