Fix TypeScript Errors
Finds every TypeScript error in your project and fixes them file by file.
Anyone with a codebase where the type checker throws a wall of red text after a big AI-written change.
The problem
You run the TypeScript compiler and get errors across dozens of files at once. You fix one, save, and three more scroll into view. Holding the whole error list in your head while chasing each one down is slow and easy to mess up.
1. Work list
The command that lists every item. No AI involved.
npx tsc --noEmit --pretty false | grep -oE '^[^ (]+' | sort -u2. Unit of work
One item is one file that has at least one TypeScript error.
3. The check
The checker runs npx tsc --noEmit again and checks whether that file's path still shows up in the output. Exit code 0 means the file is clean. Exit code 1 means it still has errors, and the checker prints the exact error lines for that file back to the AI.
4. Stopping rule
Each file gets up to 3 fix attempts; after 3 failures it goes into a quarantine file and the loop moves to the next file, ending when the work list is empty.
What this cannot catch
tsc only catches type mismatches. It says nothing about whether the code does the right thing.
Build it
Install justloopit, then describe this task in your AI coding tool. It will ask about your project, then write the checker, the runner, and the spec.