Skip to content

Commit 849e969

Browse files
Improve warning wording in vue/no-v-for-template-key docs (vuejs#1858)
Co-authored-by: Flo Edelmann <[email protected]>
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

+2-2
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)