Skip to content
โ† Back to Claude Prompts

Lint: Auto-fix and Resolve Linting Issues

InstructionClaudeClaude Haiku

Runs linter with auto-fix enabled and resolves any remaining errors that require manual intervention

๐Ÿ’ก Use Case:
Cleaning up code style issues and ensuring code passes lint checks before commits
๐Ÿ“ค Expected Output:
Clean lint output with all issues resolved

Prompt Content


description: Auto-fix linting issues and resolve remaining errors allowed-tools: Bash(pnpm run lint), Bash(pnpm run lint:fix), Bash(eslint) model: haiku

#

Lint and Fix

I have already run the linter with the fix flag. Here are the results:

<lint_results> !pnpm run lint:fix || true </lint_results>

Instructions

#
  1. Analyze the <lint_results> above.
    • If the output shows โ€œNo errorsโ€ or is empty, respond with โ€œNo lint errors found.โ€ and stop - no further action needed.
    • If errors remain, they require manual intervention.
  2. Fix remaining errors by editing the referenced files.
  3. Verify by running the lint command one last time.