You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution.
I have tried restarting my IDE and the issue persists.
I have updated to the latest version of the packages.
What version of ESLint are you using?
8.28.0
What version of eslint-plugin-vue and vue-eslint-parser are you using?
I read from the FAQ that the no-unused-vars is fixed in vue-eslint-parser>9. It seems that types used in slot declaration is still unfixed while the Vue component and interpolation are fixed.
The text was updated successfully, but these errors were encountered:
<template>
<foo>
<template #bar>
<baz />
</template>
</foo>
</template>
<scriptsetuplang="ts">importFoofrom'@/components/Foo.vue';// warning 'Baz' is defined but never used @typescript-eslint/no-unused-varsimportBazfrom'@/components/Baz.vue';</script>
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.28.0
What version of
eslint-plugin-vue
andvue-eslint-parser
are you using?What did you do?
Configuration
App.vue
types.ts
What did you expect to happen?
Foo
is used in template likeHelloWorld
andBar
which should be a used var.What actually happened?
npm run lint
C:\projects\vue-eslint-unused-vars-repro\src\App.vue
5:15 warning 'Foo' is defined but never used @typescript-eslint/no-unused-vars
✖ 1 problem (0 errors, 1 warning)
Link to Minimal Reproducible Example
https://github.com/Tanimodori/vue-eslint-unused-vars-repro
Additional comments
I read from the FAQ that the
no-unused-vars
is fixed invue-eslint-parser>9
. It seems that types used in slot declaration is still unfixed while the Vue component and interpolation are fixed.The text was updated successfully, but these errors were encountered: