useVueValidVElseIf
Цей контент ще не доступний вашою мовою.
Summary
Section titled “Summary”- Rule available since:
v2.3.6 - Diagnostic Category:
lint/nursery/useVueValidVElseIf - 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-else-if
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVElseIf": "error" } } }}Description
Section titled “Description”Enforce valid v-else-if directives.
Biome flags these cases:
- Has an argument:
<div v-else-if:arg="b"></div>. - Has modifiers:
<div v-else-if.mod="b"></div>. - Missing value:
<div v-else-if></div>. - Not preceded by a sibling with
v-if/v-else-if. - On the same element as
v-iforv-else.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<div v-if="a"></div><div v-else-if:arg="b"></div><div v-if="a"></div><div v-else-if.mod="b"></div><div v-if="a"></div><div v-else-if></div><div v-else-if="b"></div><div v-if="a" v-else-if="b"></div><div v-if="a"></div><div v-else-if="b"></div><div v-else></div>Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.