Replies: 4 comments 4 replies
-
not very familiar with the vue+ts integration, but it's mostly a configure issue. converting to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi @yf339339, please checkout whether installed an example within use // .eslintrc.js
module.exports = {
// .....
parser: "vue-eslint-parser",
extends: ["plugin:vue/vue3-recommended"],
} I hope this will resolve your problem. |
Beta Was this translation helpful? Give feedback.
-
to use ts-eslint, can you try the https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser and were you using |
Beta Was this translation helpful? Give feedback.
-
I was able to repro it as followings: I think you can just change reorder the extends: extends: ["standard-with-typescript", "plugin:vue/vue3-essential"] and remove the thanks for the report, will make a fix later. :) |
Beta Was this translation helpful? Give feedback.
-
Environment
Node version: 16.20.0
npm version: 8.19.4
Local ESLint version: 8.41.0
Global ESLint version: no
Operating System: win 10
What parser are you using?
Default (Espree)
What did you do?
vue3 default file HelloWorld.vue error
What did you expect to happen?
defineProps<{ msg: string }>() no error
What actually happened?
vue3 default file HelloWorld.vue error
Link to Minimal Reproducible Example
no
Participation
Additional comments
No response
Beta Was this translation helpful? Give feedback.
All reactions