mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-07-25 11:40:52 +02:00
Fixed a configuration error in the hooks Chinese guide
This commit is contained in:
+23
-9
@@ -42,15 +42,29 @@ 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user