[ ] Enforces code style (layout)
[X] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
This rule is based on no-watch-after-await. According to the documentation, watch and computed must be called synchronously in order for them to be properly cleaned up. There is currently the no-watch-after-await rule to catch asynchronous calls of watch, but no comparable rule for computed.
Please describe what the rule should do:
Disallow asynchronously registered
watch
What category should the rule belong to?
[ ] Enforces code style (layout) [X] Warns about a potential error (problem) [ ] Suggests an alternate way of doing something (suggestion) [ ] Other (please specify:)
Additional context
This rule is based on
no-watch-after-await
. According to the documentation,watch
andcomputed
must be called synchronously in order for them to be properly cleaned up. There is currently theno-watch-after-await
rule to catch asynchronous calls ofwatch
, but no comparable rule forcomputed
.