Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Latest commit

 

History

History
History
28 lines (18 loc) · 690 Bytes

File metadata and controls

28 lines (18 loc) · 690 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

disallow key attribute on <template> (vue/no-template-key)

  • ⚙️ 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.

📖 Rule Details

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>

🔧 Options

Nothing.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.