Lint against slot wrapped in v-if for that slot's existence
There's a bug in Vue 2.6.11 that means that, under certain circumstances, a construct like:
<div v-if="$slots.other">
<slot name="other"></slot>
</div>
will work correctly on the first render, but breaks on re-rendering.
The workaround is to use $scopedSlots
instead.
We should lint against this pattern, as there's no bug fix imminent, and it leads to very surprising and hard-to-debug behaviour.
-
Implement rule !85 (merged) -
Enable by default !88 (merged) -
Bump dependency in GitLab gitlab-org/gitlab!93850 (merged) -
Remove gitlab/.eslintrc.yml#L56 gitlab-org/gitlab!95386 (merged) -
Bump dependency in GitLab UI gitlab-org/gitlab-ui!2957 (merged) -
Remove gitlab-ui/.eslintrc.yml#L15 gitlab-org/gitlab-ui!2957 (merged)
Edited by Mark Florian