-
Notifications
You must be signed in to change notification settings - Fork 9
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
Computed Side Effects false positives #431
Comments
Thanks for reporting. Do you want to send a PR with a failing test or a fix? |
This regex The rule "Computed Side Effects" is quite complicated to check: ref, reactive, direct assignment, assignment calling a method, etc. For example, how do you find a mutation made by calling a method? Even checking the mutation of a property in a reactive object is complicated. How do you differentiate between a local object (scoped in the computed body) and a reactive object? Maybe it's better to narrow the scope and call it "Mutate ref in computed" and check only for |
What do you think? @rrd108 |
I think we should keep the rule and we can incremently add suportfor all the different use cases. Defining a varibale inside a computed property is not really a good practice, but I can understand why it is there. |
The "Computed Side Effects" rule produces false positives.
The problem is
const inner = 'def';
.Node v20.10.0
vue-mess-detector v0.63.1
Thanks, great job!
The text was updated successfully, but these errors were encountered: