| name | lint |
| description | Run ESLint across the project and fix reported errors and warnings. Use when the user asks to "lint", "fix lint errors", "run eslint", or before committing/shipping to ensure a clean lint pass. |
| allowed-tools | Bash(pnpm lint:*), Bash(pnpm eslint:*), Read, Edit, Glob |
Lint and Fix
I have run ESLint on your codebase. Here are the results:
<eslint_output>
!pnpm lint:eslint 2>&1
</eslint_output>
Instructions
Step 1: Analyze the output
- Review the ESLint output above to identify all errors and warnings.
- Group issues by file to fix them efficiently.
- Prioritize errors over warnings - errors must be fixed first.
Step 2: Fix the issues
For each file with issues:
- Read the file to understand the context around the error.
- Apply the fix using the Edit tool.
- Follow the project's TypeScript Style Guide when making fixes:
- Use
type over interface
- Use
unknown instead of any
- Prefer inference over explicit types
- Use discriminated unions for complex state
Step 3: Verify fixes
After fixing all issues, run ESLint again to confirm all issues are resolved:
pnpm lint:eslint
If new issues appear, repeat the fix process until the linter passes cleanly.