Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

privatenumber
Copy link
Contributor

@privatenumber privatenumber commented Feb 2, 2024

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.

Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🙂

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi merged commit 7bdefb2 into vuejs:master Feb 18, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants