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.