Remove [ts] errors from JS files. VSCode on my Windows machine has this…

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.

  1. Disable this extension: Go to packages and search for “@builtin” and disable it.
  2. Install eslint extension and in your settings paste this:
“eslint.validate”: [
“vue”,
“html”,
“javascript”,
“typescript”,
“javascriptreact”,
“typescriptreact”
]

3. Restart, you are done.

Leave a Reply