This PR addresses three places where file paths are checked. Please take a look if I haven't missed anything. Addressed places are:
IDE check and cli tsc-strict use isFileStrict.ts to decide which files to check
cli update-strict-comments checks files at few different stages. This implementation checks them during first search for the files (index.ts -> findStrictFiles). So files that are excluded will not later go through the process of adding/removing comments.
The priority of checks according to new isFileStrict.ts will be:
ts strict ignore comment
ts strict comment
exclude
include
To give an example, if file is both in include and exclude, it will be excluded. If it has @ts-strict and exclude, it will be included.
This PR partially solves issue https://github.com/allegro/typescript-strict-plugin/issues/39 by adding option to exclude files. To fully resolve that issue, option to create paths with globs is needed.
This PR addresses three places where file paths are checked. Please take a look if I haven't missed anything. Addressed places are:
The priority of checks according to new isFileStrict.ts will be: