From c3221b8806380aa6a23df48cb5864b6193ed9315 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Fri, 28 Aug 2020 18:51:19 +0900 Subject: [PATCH] Add `vue/no-v-for-template-key-on-child` rule (#1289) * Add `vue/no-v-for-template-key-on-child` rule * Add tests * update * Update docs --- docs/rules/README.md | 1 + docs/rules/no-v-for-template-key-on-child.md | 54 ++++++ docs/rules/no-v-for-template-key.md | 12 +- lib/configs/vue3-essential.js | 1 + lib/index.js | 1 + lib/rules/no-v-for-template-key-on-child.js | 95 ++++++++++ .../rules/no-v-for-template-key-on-child.js | 167 ++++++++++++++++++ 7 files changed, 329 insertions(+), 2 deletions(-) create mode 100644 docs/rules/no-v-for-template-key-on-child.md create mode 100644 lib/rules/no-v-for-template-key-on-child.js create mode 100644 tests/lib/rules/no-v-for-template-key-on-child.js diff --git a/docs/rules/README.md b/docs/rules/README.md index dfb0a2a47..9798e7778 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -73,6 +73,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-unused-components](./no-unused-components.md) | disallow registering components that are not used inside templates | | | [vue/no-unused-vars](./no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes | | | [vue/no-use-v-if-with-v-for](./no-use-v-if-with-v-for.md) | disallow use v-if on the same element as v-for | | +| [vue/no-v-for-template-key-on-child](./no-v-for-template-key-on-child.md) | disallow key of `