Auto-format every file Claude Code edits with a PostToolUse hook
Claude Code writes decent code, but it doesn't always match your formatter. You can keep asking it to "run prettier", or you can make formatting automatic with a PostToolUse hook. What a PostToolUse hook does Hooks are shell commands Claude Code runs at fixed points. A PostToolUse hook runs right a…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-02 01:12 · DEV Community — AI
Auto-format every file Claude Code edits with a PostToolUse hook