In Visual Studio Code, I keep getting errors on my JavaScript files from 'ts' attached. tsError on js files
Currently, I have two solutions:
- Putting
// @ts-nocheckat the top of each .js file - Putting
"javascript.validate.enable": falsein my user settings.json in VSC.
I don't like any of them, because the underlying problem is VSC associate my js files incorrectly as TypeScript files. How to tell VSC to change this behavior? Thanks!
I uninstalled the typescript packages that I installed before as well by running
npm uninstall -g ts-node typescript. It did not help.