Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97313

Running only files containing `ts-check` comment on `tsc` cli command

$
0
0

I'm using Typescript type checking from VSCode thru the ts-check comment on those file which I want to check. It works perfectly!

tscheck

Now I'd like to use the tsc cli command to check the same files I added ts-check comment.

Is that possible using only tsc?

If I use the following command all files are validated and I'm not willing to add only those which must be validated on jsconfig/tsconfig.

npx tsc --allowJs --checkJs --noEmit --target ES5 src/**/*.js

Which are my options?


Viewing all articles
Browse latest Browse all 97313

Trending Articles