Lint and Typecheck Fix已精选
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.
基本信息
分类
测试
目标
lint and typecheck are clean
最大迭代次数
8
检查命令
npm run lint && npx tsc --noEmit
退出条件
both commands exit 0
支持的智能体
Cursor
启动提示词
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.步骤
- 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.
Format Until Clean
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.
Pre-Commit Guard
Hook that runs tests before git commit commands to block commits when the suite is red.
Autoloop TDD
Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.
评论