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

Sign up
Appearance settings

Commit 849e969

Browse files
yammyxingFloEdelmann
andauthored
Improve warning wording in vue/no-v-for-template-key docs (#1858)
Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
1 parent cdcf75e commit 849e969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎docs/rules/no-v-for-template-key.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This rule reports the `<template v-for>` elements which have `key` attribute.
1818
In Vue.js 2.x, disallows `key` attribute on `<template>` elements.
1919

2020
::: warning Note
21-
Do not use with the [vue/no-v-for-template-key-on-child] rule for Vue.js 3.x.
22-
This rule conflicts with the [vue/no-v-for-template-key-on-child] rule.
21+
This rule is targeted at Vue.js 2.x.
22+
If you are using Vue.js 3.x, enable the [vue/no-v-for-template-key-on-child] rule instead. Don't enable both rules together; they are conflicting.
2323
:::
2424

2525
<eslint-code-block :rules="{'vue/no-v-for-template-key': ['error']}">

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /