fabro/.claude/settings.json
Bryan Helmkamp 46d170468e Add PostToolUse hook to auto-format Rust files with cargo fmt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 12:03:09 -04:00

15 lines
302 B
JSON

{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "FILE=$(jq -r '.tool_input.file_path') && case \"$FILE\" in *.rs) cargo fmt -- \"$FILE\" ;; esac"
}
]
}
]
}
}