From 86a813887db9ed7b796b9394e96a6c7ea4d00a8e Mon Sep 17 00:00:00 2001 From: Wayne Zhang Date: Wed, 27 Nov 2024 13:53:43 +0800 Subject: [PATCH] feat(no-duplicate-attr-inheritance): ignore multi root (#2598) Co-authored-by: Flo Edelmann --- docs/rules/no-duplicate-attr-inheritance.md | 38 +++++- lib/rules/no-duplicate-attr-inheritance.js | 76 ++++++++++-- .../rules/no-duplicate-attr-inheritance.js | 112 ++++++++++++++++++ 3 files changed, 214 insertions(+), 12 deletions(-) diff --git a/docs/rules/no-duplicate-attr-inheritance.md b/docs/rules/no-duplicate-attr-inheritance.md index 0f1b60340..fe3cd37bf 100644 --- a/docs/rules/no-duplicate-attr-inheritance.md +++ b/docs/rules/no-duplicate-attr-inheritance.md @@ -13,9 +13,9 @@ since: v7.0.0 ## :book: Rule Details This rule aims to prevent duplicate attribute inheritance. -This rule to warn to apply `inheritAttrs: false` when it detects `v-bind="$attrs"` being used. +This rule suggests applying `inheritAttrs: false` when it detects `v-bind="$attrs"` being used. - + ```vue