You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe what the rule should do:
This rule should enforce the use of arrow functions for dependencies in the watch function in Vue 3. Instead of directly passing a ref or variable, the rule should ensure that developers use a function returning the reactive value. This will help avoid potential issues with reactive tracking and align with best practices.
What category should the rule belong to?
[ ] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[X] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Please describe what the rule should do:
This rule should enforce the use of arrow functions for dependencies in the
watch
function in Vue 3. Instead of directly passing a ref or variable, the rule should ensure that developers use a function returning the reactive value. This will help avoid potential issues with reactive tracking and align with best practices.What category should the rule belong to?
[ ] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[X] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Additional context
This rule would provide clear guidance for writing more consistent and reliable watch expressions in Vue 3.
The text was updated successfully, but these errors were encountered: