Hook

Post-Edit Lint Hook

Auto-run lint/typecheck after every file write.

Install

manual
add to ~/.claude/settings.json hooks.PostToolUse

Add this to your Claude Code MCP settings or run via the CLI.

About

PostToolUse hook on Edit/Write. Auto-detects file type (TS / Vue / Dart / PHP / Java) and runs the matching linter. Returns blocking diagnostics if errors > 0.

Common use cases

  • Catch type errors before commit
  • Stop forgotten unused imports
  • Enforce per-stack lint rules

Tags

lintqualityautomation