-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(no-duplicate-attr-inheritance): ignore multi root #2598
Conversation
I think it would make sense to add a new
How does Vue itself behave here? |
When
Vue treats a group of v-if / v-else-if/v-else as a single node. I've added an |
Sorry, my suggestion was not clear enough. I'd say the rule should stop reporting errors for components with multiple root nodes by default. But the old behavior should still be available (for users who want to explicitly define the behavior for multi-root components) via an option. Is |
Then the name and setting the default to |
Co-authored-by: Flo Edelmann <[email protected]>
@@ -26,11 +26,12 @@ export default { | |||
/* ✓ GOOD */ | |||
inheritAttrs: false | |||
} | |||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now. Thanks for your work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
resolve #2596.
v-if
/v-else
/v-else
nodes. Should we consider treating it as a "single" root?