Wpisz sprawdzanie JS vscode

//type checking all js files (vscode)  

//in settings.json:
 "javascript.implicitProjectConfig.checkJs": true

//also gives you ability to enable TypeScript features like auto-import on save
Ivan Fenchyn