-
-
Notifications
You must be signed in to change notification settings - Fork 697
⭐️New: Add rule no-duplicate-attr-inheritance
#627
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
⭐️New: Add rule no-duplicate-attr-inheritance
#627
Conversation
|
ticket: #626 |
armano2
left a comment
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.
What we should do with mixins and extend? property can be set inside them.
Co-Authored-By: hirokiosame <hiroki.osame@gmail.com>
|
@armano2
|
|
Thanks for working on it @hirokiosame , however I'm going to close this PR for the moment, until we decide whether it's something we want to consider. Let's continue discussion in the relevant issue: #626 |
* Added no-duplicate-attr-inheritence rule * New rule no-duplicate-attr-inheritance * New rule no-duplicate-attr-inheritance * Code to work with Node v6.14.4 * Remove category Co-Authored-By: hirokiosame <hiroki.osame@gmail.com> * Update Co-authored-by: Hiroki Osame <hiroki@weebly.com> Co-authored-by: Armano <armano2@users.noreply.github.com> Co-authored-by: hirokiosame <hiroki.osame@gmail.com>
This rule makes sure you're setting
inheritAttrstofalsewhen it detectsv-bind="$attrs".This rule is to prevent duplicated attribute inheritance: http://jsfiddle.net/hirokiosame/h0j3qrbm/
Can update the docs if there's consensus on the rule proposal.