https://github.com/capaj/ts-inquisition
A simple CLI util to mark all your current TS errors as expected. Useful when you wan to fail your builds on a new type error while expecting the old ones
https://github.com/capaj/ts-inquisition
cli js-to-ts typechecking typescript
Last synced: 10 months ago
JSON representation
A simple CLI util to mark all your current TS errors as expected. Useful when you wan to fail your builds on a new type error while expecting the old ones
- Host: GitHub
- URL: https://github.com/capaj/ts-inquisition
- Owner: capaj
- License: mit
- Created: 2020-11-09T02:59:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T19:16:51.000Z (over 1 year ago)
- Last Synced: 2025-03-28T17:01:46.120Z (11 months ago)
- Topics: cli, js-to-ts, typechecking, typescript
- Language: TypeScript
- Homepage:
- Size: 130 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-inquisition
expect all the type errors. A simple CLI util to mark all your current TS errors as expected. Useful when
- you wan to start failing your builds on a new type error while keeping the old ones as is.
- you are converting JS project into TS. With ts-inquisition you can basically do a project of any size in like 10 minutes if you are ok with having the current TS errors silenced.
Supports `ts` and `tsx` files.
## Usage
> **Warning**
> Note that it is only tested on code bases formatted with prettier. It won't work correctly on code bases with any other formatting.
```
npx ts-inquisition "src/**"
```
# Errors that will not be expected
- import statement errors. You really should fix those, does not make much sense to silence them.
- spanish inquisition. Nobody expects spanish inquisition.
all other TS errors will be expected and silenced.
## Why is it called ts-inquisition
It's a reference to https://www.youtube.com/watch?v=Cj8n4MfhjUc