allegro / typescript-strict-plugin

Typescript plugin that allows turning on strict mode in specific files or directories.
MIT License
335 stars 29 forks source link

files as an option of tsc-strict #15

Closed xiluo58 closed 2 years ago

xiluo58 commented 2 years ago

Is it possible to add an option to pass a list of files?

My use case is only check changed files. The easiest way to achieve this is passing the files as an argument to tsc-strict

kamkry commented 2 years ago

Hi, the tool is built to allow adding strict mode incrementally, so you should add @ts-strict comment only to files, where you want to have strict errors in and you're able to fix them.

Besides, our CLI uses tsc under the hood, and I don't think there's a way to list files there outside of tsconfig.json. But if you have an idea how to do it, feel free to propose it or do it yourself 😄 (but just a heads up, we plan to release a big update to our internals soon, so I'd do it afterwards)