Lint and Typecheck Fix
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.
起動プロンプト
Start the "Lint and Typecheck Fix" loop.
Goal: lint and typecheck are clean
Max iterations: 8
Between iterations run: npm run lint && npx tsc --noEmit
Exit when: both commands exit 0
Step 1: Run lint and typecheck. Fix reported issues with minimal diffs, then repeat.
Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.基本情報
カテゴリ
テスト
目標
lint and typecheck are clean
最大反復回数
8
検査コマンド
npm run lint && npx tsc --noEmit
退出条件
both commands exit 0
対応エージェント
Cursor
手順
- 1
Run lint and typecheck
Run lint and TypeScript checks.
npm run lint && npx tsc --noEmit - 2
Fix issues
Fix lint and type errors with minimal changes. Do not disable rules unless necessary.
他のテストのループ
Build Until Green
Run the production build, fix compile and bundling errors, and loop until the build succeeds.
Coverage Until Threshold
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.
Pre-Commit Guard
Hook that runs tests before git commit commands to block commits when the suite is red.
Format Until Clean
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Post-Edit Test Guard
Hook-based loop that runs related tests after file edits to catch regressions early.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.