Pattern: Inconsistent v-for
delimiter style
Issue: -
This rule enforces which delimiter (in
or of
) should be used in v-for
directives.
<template>
<!-- ✓ GOOD -->
<div v-for="x in xs" />
<!-- ✗ BAD -->
<div v-for="x of xs" />
</template>
Default is set to in
.
{
"vue/v-for-delimiter-style": ["error", "in" | "of"]
}
"in"
(default) ... requires usingin
."of"
... requires usingof
.
<template>
<!-- ✓ GOOD -->
<div v-for="x of xs" />
<!-- ✗ BAD -->
<div v-for="x in xs" />
</template>