eslint-plugin-vue
eslint-plugin-vue copied to clipboard
feat(no-deprecated-slot-attribute): improve autofix to wrap `<template v-slot>`
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.