eslint-plugin-vue
eslint-plugin-vue copied to clipboard
Fix detect Nuxt3 defineNuxtComponent
- fixes #2191
- fixes #2057
Description
It's just a workaround like solution.
Add the defineNuxtComponent
alias for Nuxt3 projects, similar to https://github.com/vuejs/eslint-plugin-vue/pull/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
@FloEdelmann Thank you for your review! I fixed them.
Should we consider this a breaking change and keep this for v10?
Yeah. I think this should be included in v10.