settings.json 965 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "hooks": {
  3. "SessionStart": [
  4. {
  5. "hooks": [
  6. {
  7. "type": "command",
  8. "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.sh"
  9. }
  10. ]
  11. }
  12. ],
  13. "PostToolUse": [
  14. {
  15. "matcher": "Write|Edit",
  16. "hooks": [
  17. {
  18. "type": "command",
  19. "command": "if [[ \"$FILE\" == */apps/* ]] || [[ \"$FILE\" == */packages/* ]]; then REPO_ROOT=$(echo \"$FILE\" | sed 's|/\\(apps\\|packages\\)/.*|/|'); cd \"$REPO_ROOT\" && pnpm biome check --write \"$FILE\" 2>/dev/null || true; fi",
  20. "timeout": 30,
  21. "description": "Auto-format edited files in apps/* and packages/* with Biome"
  22. }
  23. ]
  24. }
  25. ]
  26. },
  27. "enabledPlugins": {
  28. "context7@claude-plugins-official": true,
  29. "github@claude-plugins-official": true,
  30. "typescript-lsp@claude-plugins-official": true,
  31. "playwright@claude-plugins-official": true
  32. }
  33. }