-
Notifications
You must be signed in to change notification settings - Fork 513
Expand file tree
/
Copy pathsettings.json
More file actions
41 lines (41 loc) · 1.08 KB
/
settings.json
File metadata and controls
41 lines (41 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(pnpm typecheck:*)",
"Bash(pnpm test:*)",
"Bash(pnpm build:*)",
"Bash(pnpm lint:*)",
"Bash(find:*)",
"Bash(ls:*)",
"Bash(pnpm codegen)",
"Bash(pnpm vitest run:*)",
"Bash(pnpm eslint:*)"
],
"deny": []
},
"includeCoAuthoredBy": false,
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|MultiEdit|Write",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if [[ \"$file_path\" =~ \\.(js|jsx|ts|tsx)$ ]]; then cd \"$(dirname \"$file_path\")\" && pnpm run lint --fix \"$file_path\" || true; fi }"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "if jq -e '.stop_hook_active == true' >/dev/null 2>&1; then exit 0; fi && (pnpm run typecheck 1>&2 || exit 2) && (pnpm run lint 1>&2 || exit 2)"
}
]
}
]
}
}