Remove [ts] errors from JS files
Published in
1 min readJun 8, 2020
VSCode on my Windows machine has this annoying feature of reporting typescript issues such as type validations in my js files. I was perplexed because I had no extensions installed.
Turns out it is VSCode’s inbuilt extension called Typescript and Javascript features.
So this is what you do.
- Disable this extension: Go to packages and search for “@builtin” and disable it.
- Install eslint extension and in your settings paste this:
“eslint.validate”: [
“vue”,
“html”,
“javascript”,
“typescript”,
“javascriptreact”,
“typescriptreact”
]
3. Restart, you are done.