Then you can "yarn test-types" quickly. I use (husky)[https://www.npmjs.com/package/husky] to run that command as a git pre-commit hook. My team cannot commit Typescript errors. Additionally I have a strict tsconfig and a strict eslint config (with these plugins:sonarjs, @typescript-eslint, simple-import-sort) which prevents "any" types and bad typescript hygiene. Results in faster code reviews.
Let's say you have a tsconfig.json. Create a tsconfig-test.json like this:
Add a script to your package.json (I use "test-types") Then you can "yarn test-types" quickly. I use (husky)[https://www.npmjs.com/package/husky] to run that command as a git pre-commit hook. My team cannot commit Typescript errors. Additionally I have a strict tsconfig and a strict eslint config (with these plugins:sonarjs, @typescript-eslint, simple-import-sort) which prevents "any" types and bad typescript hygiene. Results in faster code reviews.