|
| 1 | +{ |
| 2 | + "$schema": "https://json.schemastore.org/claude-code-settings.json", |
| 3 | + "permissions": { |
| 4 | + "allow": [ |
| 5 | + "Bash(pnpm test:*)", |
| 6 | + "Bash(pnpm run test:*)", |
| 7 | + "Bash(pnpm typecheck:*)", |
| 8 | + "Bash(pnpm run typecheck:*)", |
| 9 | + "Bash(pnpm lint:*)", |
| 10 | + "Bash(pnpm run lint:*)", |
| 11 | + "Bash(pnpm format:*)", |
| 12 | + "Bash(pnpm run format:*)", |
| 13 | + "Bash(pnpm build:*)", |
| 14 | + "Bash(pnpm run build:*)", |
| 15 | + "Bash(pnpm size:*)", |
| 16 | + "Bash(pnpm knip:*)", |
| 17 | + "Bash(pnpm changeset:*)", |
| 18 | + "Bash(pnpm --filter:*)", |
| 19 | + "Bash(pnpm exec vitest:*)", |
| 20 | + "Bash(pnpm exec tsc:*)", |
| 21 | + "Bash(pnpm exec eslint:*)", |
| 22 | + "Bash(pnpm exec oxlint:*)", |
| 23 | + "Bash(pnpm exec prettier:*)", |
| 24 | + "Bash(pnpm exec playwright:*)", |
| 25 | + "Bash(turbo run:*)", |
| 26 | + "Bash(git status:*)", |
| 27 | + "Bash(git diff:*)", |
| 28 | + "Bash(git log:*)", |
| 29 | + "Bash(git show:*)", |
| 30 | + "Bash(git branch:*)", |
| 31 | + "Bash(git stash list:*)", |
| 32 | + "Bash(gh pr view:*)", |
| 33 | + "Bash(gh pr diff:*)", |
| 34 | + "Bash(gh pr list:*)", |
| 35 | + "Bash(gh issue view:*)", |
| 36 | + "Bash(gh issue list:*)", |
| 37 | + "Bash(gh run list:*)", |
| 38 | + "Bash(gh run view:*)", |
| 39 | + "Bash(ls:*)", |
| 40 | + "Bash(rg:*)", |
| 41 | + "Bash(find:*)", |
| 42 | + "Bash(node:*)" |
| 43 | + ], |
| 44 | + "deny": [ |
| 45 | + "Read(./.env)", |
| 46 | + "Read(./.env.*)", |
| 47 | + "Read(./**/.env)", |
| 48 | + "Read(./**/.env.*)", |
| 49 | + "Write(./pnpm-lock.yaml)", |
| 50 | + "Edit(./pnpm-lock.yaml)", |
| 51 | + "Write(./package-lock.json)", |
| 52 | + "Edit(./package-lock.json)", |
| 53 | + "Write(./**/dist/**)", |
| 54 | + "Edit(./**/dist/**)", |
| 55 | + "Bash(npm install:*)", |
| 56 | + "Bash(npm i:*)", |
| 57 | + "Bash(yarn add:*)", |
| 58 | + "Bash(yarn install:*)" |
| 59 | + ], |
| 60 | + "ask": [ |
| 61 | + "Bash(git push:*)", |
| 62 | + "Bash(pnpm publish:*)", |
| 63 | + "Bash(pnpm release:*)", |
| 64 | + "Bash(npm publish:*)", |
| 65 | + "Bash(changeset publish:*)" |
| 66 | + ] |
| 67 | + }, |
| 68 | + "hooks": { |
| 69 | + "PostToolUse": [ |
| 70 | + { |
| 71 | + "matcher": "Write|Edit|MultiEdit", |
| 72 | + "hooks": [ |
| 73 | + { |
| 74 | + "type": "command", |
| 75 | + "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/format.sh\"" |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + ], |
| 80 | + "PreToolUse": [ |
| 81 | + { |
| 82 | + "matcher": "Bash", |
| 83 | + "hooks": [ |
| 84 | + { |
| 85 | + "type": "command", |
| 86 | + "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash.sh\"" |
| 87 | + } |
| 88 | + ] |
| 89 | + }, |
| 90 | + { |
| 91 | + "matcher": "Write|Edit|MultiEdit", |
| 92 | + "hooks": [ |
| 93 | + { |
| 94 | + "type": "command", |
| 95 | + "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-write.sh\"" |
| 96 | + } |
| 97 | + ] |
| 98 | + } |
| 99 | + ] |
| 100 | + } |
| 101 | +} |
0 commit comments