Open
Description
Please describe what the rule should do:
Warn if a computed property references non-reactive VM properties, such as $slots
or $refs
.
What category should the rule belong to?
- Enforces code style
- Warns about a potential error
- Suggests an alternate way of doing something
- Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
I see this mistake frequently, but doesn't actually work because slots aren't reactive.
computed: {
hasContentSlot() {
return !!this.$slots.content;
}
}
Additional context