How to enable ts-check in es6
问题 Recently I have found Visual Code has a nice feature for type checking in JavaScript files. All I have to do is to type on top of file // @ts-check , it is great benefit for me, so I want to use it globally on every JavaScript file, how could I could I do it without writing that line every time on top of a file? 回答1: As per Aleksey L. comment I added to root directory tsconfig.json with this configuration and it works: { "compilerOptions": { "module": "system", "noImplicitAny": false,