vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

remove type check when not use typescript #1241

Open shixin-guo opened 5 years ago

shixin-guo commented 5 years ago

Info

Problem

I use vue and only js not typescript so I don't want some type linter but vetur show so much wrong alert when I code image image

so how to close these errors and this case not happen yesterday so.......

Reproducible Case

cch6 commented 5 years ago

props没有Array格式的时候,不会报错,你可以试试。 感觉是个bug

zggit commented 5 years ago

Same issues here, change back to the last version and fixed it.

shixin-guo commented 5 years ago

Same issues here, change back to the last version and fixed it.

yes last version(0.18.1) no this question

lian-xiao-xi commented 5 years ago

I have encountered the same problem

StriveTeam commented 5 years ago

version 0.18.1 is ok

octref commented 5 years ago

Please file new issue with a repro case.

residualmind commented 3 years ago

I had the same problem. This took my a while to figure out but I think I have it. To disable type-checking for JavaScript files, add checkJs: false to the compilerOptions section of your jsconfig.json.

This is my jsconfig.json:

{
    "include": ["./src/**/*"],
    "compilerOptions": {
        "checkJs": false
    }
}
yoyo930021 commented 3 years ago

Will fix when https://github.com/vuejs/vetur/pull/1824 merged

solidevolution commented 2 years ago

Hello?