ts-ratchet
v0.0.1
Published
TypeScript Ratchet Codemods to add @ts-expect-error above tsc reported issues.
Downloads
67
Readme
Typescript Ratchet (beta)
CLI tool to "ratchet" your typescript codebase.
npx typescript-ratchet
Features
- Runs Typescript to find all problems in your codebase.
- Uses JSCodeshift first to transform your ts/tsx codebase. Adds
@ts-expect-error
comments to AST nodes in error. - Uses ts-morph as a fallback for unsupported Typescript keywords (e.g.
satisfies
) with a simple insert comment line strategy.
Warnings
- Make sure to backup your code to your VCS of choice before running this tool.
- This tool is in beta and may not work as expected, feel free to open an issue with steps to reproduce.
- Formatting may be necessary after running these codemods (
prettier
,eslint --fix
).
License
MIT