useVueValidVText
¥Summary
-
规则生效日期:
v2.3.7¥Rule available since:
v2.3.7 -
诊断类别:
lint/nursery/useVueValidVText¥Diagnostic Category:
lint/nursery/useVueValidVText -
此规则没有修复方案。
¥This rule doesn’t have a fix.
-
此规则的默认严重级别为 information。
¥The default severity of this rule is information.
-
此规则属于以下域:
¥This rule belongs to the following domains:
-
来源:
¥Sources:
-
与
vue/valid-v-text相同¥Same as
vue/valid-v-text
-
¥How to configure
{ "linter": { "rules": { "nursery": { "useVueValidVText": "error" } } }}¥Description
强制使用有效的 Vue v-text 指令。
¥Enforce valid v-text Vue directives.
此规则会在以下情况下报告 v-text 指令:
¥This rule reports v-text directives in the following cases:
-
该指令包含一个参数。例如
<div v-text:aaa></div>¥The directive has an argument. E.g.
<div v-text:aaa></div> -
该指令包含修饰符。例如
<div v-text.bbb></div>¥The directive has any modifiers. E.g.
<div v-text.bbb></div> -
该指令没有值。例如
<div v-text></div>¥The directive does not have a value. E.g.
<div v-text></div>
¥Examples
¥Invalid
<div v-text /><div v-text:aaa="foo"></div><div v-text.bbb="foo"></div>¥Valid
<div v-text="foo" />¥Related links
Biome v2.1 中文网 - 粤ICP备13048890号