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

Fix detect Nuxt3 defineNuxtComponent #2311

Merged
merged 7 commits into from
Nov 27, 2024

Conversation

sugitata
Copy link

@sugitata sugitata commented Nov 13, 2023

Description

It's just a workaround like solution.
Add the defineNuxtComponent alias for Nuxt3 projects, similar to #1088.

About defineNuxtComponent

The difference between defineNuxtComponent and defineComponent is only asyncData and head options are added on defineNuxtComponent.
These options are not essential to check in vue-eslint-plugin, so it should be fine to treat it as defineComponent.

https://nuxt.com/docs/api/utils/define-nuxt-component

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.

Thanks for your contribution!

lib/utils/index.js Outdated Show resolved Hide resolved
@sugitata
Copy link
Author

@FloEdelmann
Thank you for your review!
I fixed them.

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.

LGTM 🙂

@ota-meshi Should we consider this a breaking change and keep this for v10? (see #2166)

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! Sorry for the late review.

@ota-meshi
Copy link
Member

Should we consider this a breaking change and keep this for v10?

Yeah. I think this should be included in v10.

@FloEdelmann FloEdelmann merged commit d27c7e6 into vuejs:v10 Nov 27, 2024
6 checks passed
@FloEdelmann FloEdelmann mentioned this pull request Nov 27, 2024
ota-meshi pushed a commit that referenced this pull request Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants