-
-
Notifications
You must be signed in to change notification settings - Fork 680
Rule proposal: no-mutating-props
#256
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
Comments
This sounds great. 🙂 @michalsnik Anything I can provide to make developing this easier? |
Alright, so these are the scenarios I think we might cover: 1.
|
Nothing more is coming to me at the moment. 🙂 |
@michalsnik i can take this one |
this rule replaces `name-property-casing` fix issue: vuejs#251
Style guide:
https://vuejs.org/v2/style-guide/#Implicit-parent-child-communication-use-with-caution
Description:
This rule would disallow mutating props. It's yet to be defined as there are many cases to handle, and I'm not yet sure it's 100% doable. Of course we should forbid both template-related mutations (as
v-model
) as well as direct mutations inscript
(asthis.someProp.filter(...)
).The text was updated successfully, but these errors were encountered: