- ⚙️ This rule is included in all of
"plugin:vue/essential"
,"plugin:vue/strongly-recommended"
and"plugin:vue/recommended"
.
This rule report variable definitions of v-for directives or scope attributes if those are not used.
👎 Examples of incorrect code for this rule:
<template>
<ol v-for="i in 5"><!-- "i" is defined but never used. -->
<li>item</li>
</ol>
</template>
👍 Examples of correct code for this rule:
<template>
<ol v-for="i in 5">
<li>{{i}}</li><!-- "i" is defined and used. -->
</ol>
</template>
Nothing.