Pattern: Missing v-bind:key
for v-for
directive
Issue: -
This rule reports the elements which have v-for
and do not have v-bind:key
with exception to custom components.
<template>
<!-- ✓ GOOD -->
<div
v-for="todo in todos"
:key="todo.id"
/>
<!-- ✗ BAD -->
<div v-for="todo in todos"/>
</template>