When using VS Code, I've noticed that when I make a mistake in Typescript it highlights the error as "Cannot find name" / any, while in Javascript it simply assigns "any" without highlighting. Here's an image for reference: https://i.sstatic.net/k9NRb.png
Is there any way to highlight errors in JavaScript just like in Typescript? The JSlint extension didn't seem to help much. It would be frustrating to only see errors during the build process.