You can do it with ESLint, the ESLint import plugin and the ESLint extension for VSCode. Alternately, if you're using Deno, you can use the Deno extension for VSCode