settings.json 400 B

1234567891011121314151617181920
  1. {
  2. "env": {
  3. "CLAUDE_CODE_NEW_INIT": 1
  4. },
  5. "hooks": {
  6. "PostToolUse": [
  7. {
  8. "matcher": "Write|Edit",
  9. "hooks": [
  10. {
  11. "type": "command",
  12. "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/check_syntax.py\"",
  13. "timeout": 15,
  14. "statusMessage": "检查编辑文件的语法"
  15. }
  16. ]
  17. }
  18. ]
  19. }
  20. }