Closed DamianGlowala closed 2 years ago
You should disable type checking in vue-cli. see https://github.com/antfu/unplugin-vue2-script-setup/blob/main/examples/vue-cli/vue.config.mjs#L15-L16
Also, I think you can disable rule import/first
temporary and create a PR on eslint-plugin-vue.
Thanks for the pointer, it did work for Nuxt by adding typeCheck: false
, as per the below:
https://typescript.nuxtjs.org/guide/setup/#typecheck
Given the following two script blocks in the same component:
a TypeScript error is thrown, even though the
PageLayout
enum is present in the second block:Is the above issue fitting within the scope of this library? If it is, is there a way to remove the TS error (keeping the imports in the first block) rather than disabling ESLint import/first rule, as shown below?