BREAKING CHANGES
-
--auto-update
will no longer add new file paths to the registryWhen there were errors that could be ignored because the error code is already ignored in other files,
--auto-update
used to add these new file paths to the registry. This allowed regressions to sneak in, since a file that was already conforming to the stricter config could re-appear in the registry of ignored files.In situations like this one, these file paths will be no longer added to the registry, and the program will fail when there are errors in files that could be ignored.
If you need to start ignoring these errors, use the
--init
flag to regenerate the registries.See #16 for more information.
Engineering:
- Include TypeScript 5.0 in integration tests.
Features:
-
Wildcard support in
loosely-type-checked-files.json
Paths in
loosely-type-checked-files.json
support wildcards now (e.g.src/**/*
ornode_modules/**/*
orsrc/{a,b,c}/*.ts
).Matching is done using minimatch.
Engineering:
-
Maintenance work (update npm packages, use newer Node versions in CI).
-
Add integration tests
They give more confidence that the tool is working as expected.
Features:
- Display a list of all errors that cannot be ignored.
Features:
-
Detect which ignored error codes specified in the config that did not occur.
If
--auto-update
is passed in, those error codes are automatically removed from the config.
Engineering:
- Refactor the code for easier maintenance
- Add unit tests for the CLI and individual functions
Bugfix release
-
Wait till the input ends before closing the input stream.
This prevents displaying errors when piping output from a long-running TSC process when the
loose-ts-check
tool quits early due a config error.
Initial release of the tool.
Features:
- Parse TSC errors from standard input (stdin)
--init
CLI option to initialize the configuration files (ignored errors and loosely type-checked files)- CLI options to customize the paths to configuration files
--auto-update
CLI option to automatically update the list of loosely type-checked files when some file from no longer needs errors to be ignored
Engineering:
- Some unit tests using jest
- CI using GitHub Actions
- Compilation using TypeScript
- Formatting using prettier