diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..6b51f82 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,53 @@ +{ + "permissions": { + "allow": [ + "Bash(npm run build)", + "Bash(npm run build:*)", + "Bash(npm test)", + "Bash(npm run test:*)", + "Bash(npm run lint)", + "Bash(npm run lint:fix)", + "Bash(npm run typecheck)", + "Bash(npm run format)", + "Bash(npm run format:check)", + "Bash(git status)", + "Bash(git diff*)", + "Bash(git log*)", + "Bash(git add*)", + "Bash(git commit*)", + "Bash(git branch*)", + "Bash(git checkout*)", + "Bash(git stash*)", + "Bash(npx tsc --noEmit*)", + "Bash(npx prettier*)", + "Bash(gh pr*)", + "Bash(gh issue*)", + "Bash(gh run*)", + "Bash(gh api*)" + ] + }, + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-ts.sh" + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash.sh" + } + ] + } + ] + } +}