-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
vue/order-in-components
is not working with defineNuxtComponent()
#2057
Comments
What is defineNuxtComponent? Could you please explain? |
@ota-meshi defineNuxtComponent is a Nuxt 3 wrapper for defineComponent https://nuxt.com/docs/api/utils/define-nuxt-component#definenuxtcomponent, here is reproduction https://stackblitz.com/edit/github-amdjq7?file=pages/should-warning-but-doesnt.vue run |
The documentation doesn't mention |
@ota-meshi This import is optional, I prefer more explicit imports. |
actually, the problem maybe caused by
removed it and fix will work fine |
Will be fixed in v10. |
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
It should show warning on line
data: () => ({
It shows it if I replace
defineNuxtComponent
withdefineComponent
"ESLint: The "data" property should be above the "computed" property on line 22.(vue/order-in-components)"
What actually happened?
No warning.
Repository to reproduce this issue
Reproduction:
https://stackblitz.com/edit/github-amdjq7?file=pages/should-warning-but-doesnt.vue
run
yarn lint
in consoleThe text was updated successfully, but these errors were encountered: