- ⚙️ This rule is included in all of
"plugin:vue/essential","plugin:vue/strongly-recommended"and"plugin:vue/recommended".
Vue.js disallows key attribute on <template> elements.
This rule reports the <template> elements which have key attribute.
👎 Examples of incorrect code for this rule:
<template key="foo"> ... </template>
<template v-bind:key="bar"> ... </template>
<template :key="baz"> ... </template>👍 Examples of correct code for this rule:
<div key="foo"> ... </div>
<template> ... </template>Nothing.