Skip to content

feat: Add vue-prefer-dollar-scopedslots rule

Mark Florian requested to merge 54-lint-against-vue-2-bug-11084 into main

feat: Add vue-prefer-dollar-scopedslots rule

Scoped slots are more flexible and powerful, ease migration to Vue 3.x, and also work around https://github.com/vuejs/vue/issues/11084.

This rule should not be used with Vue 3.x, since $scopedSlots was removed. Instead, use vue/no-deprecated-dollar-scopedslots-api. It includes a fixer that will migrate $scopedSlots usage back to $slots, which is trivial since the API for Vue 2.x's $scopedSlots is identical to Vue 3.x's $slots.

Addresses #54 (closed).

Edited by Mark Florian

Merge request reports