Skip to content
On this page

vue/no-use-v-else-with-v-for โ€‹

disallow using v-else-if/v-else on the same element as v-for

๐Ÿ“– Rule Details โ€‹

This rule reports elements that have both v-else-if/v-else and v-for directives. That is valid in Vue (v-else-if/v-else will take precedence), but is confusing to read.

Now loading...

๐Ÿ”ง Options โ€‹

Nothing.

๐Ÿ”‡ When Not To Use It โ€‹

If you don't find using v-else-if/v-else together with v-for confusing to read, you can safely disable this rule.

๐Ÿš€ Version โ€‹

This rule was introduced in eslint-plugin-vue v9.16.0

๐Ÿ” Implementation โ€‹