Skip to content

Commit d1072d5

Browse files
Improve warning wording in vue/no-v-for-template-key-on-child docs (vuejs#1859)
Co-authored-by: Flo Edelmann <[email protected]>
1 parent 849e969 commit d1072d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/no-v-for-template-key-on-child.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ In Vue.js 3.x, with the support for fragments, the `<template v-for>` key can be
2020
See [Migration Guide - `key` attribute > With `<template v-for>`](https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#with-template-v-for) for more details.
2121

2222
::: warning Note
23-
Do not use with the [vue/no-v-for-template-key] rule for Vue.js 2.x.
24-
This rule conflicts with the [vue/no-v-for-template-key] rule.
23+
This rule is targeted at Vue.js 3.x.
24+
If you are using Vue.js 2.x, enable the [vue/no-v-for-template-key] rule instead. Don't enable both rules together; they are conflicting.
2525
:::
2626

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

0 commit comments

Comments
 (0)