Merge pull request #77 from ytche/main

Fixed a configuration error in the hooks Chinese guide
This commit is contained in:
Luong NGUYEN
2026-07-22 22:18:15 +07:00
committed by GitHub
+22 -8
View File
@@ -42,14 +42,28 @@ chmod +x ~/.claude/hooks/*.sh
```json
{
"hooks": {
"PreToolUse": [{
"matcher": "Write",
"hooks": ["~/.claude/hooks/format-code.sh"]
}],
"PostToolUse": [{
"matcher": "Write",
"hooks": ["~/.claude/hooks/security-scan.sh"]
}]
"PreToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/format-code.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/security-scan.sh"
}
]
}
]
}
}
```