eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

feat(no-deprecated-slot-attribute): improve autofix to wrap `<template v-slot>`

Open privatenumber opened this issue 1 year ago • 0 comments

Currently doing a Vue 2.7 migration in an old codebase...

I was thinking it should be possible to autofix cases of the deprecated slot attribute where the element is not <template>, by wrapping it in a <template v-slot>.

This PR demonstrates it, and the auto-fixes worked fine in my codebase. Want to get feedback to see if I'm missing any edge-cases.

privatenumber avatar Feb 02 '24 09:02 privatenumber