Stay Updated!

Get the latest posts and insights delivered directly to your inbox

Skip to content
← Back to Claude Prompts

Lint: Auto-fix and Resolve Linting Issues

Instruction Claude Claude 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.