Skip to content

Commit b0e7706

Browse files
committed
Claude Code improvements
1 parent ae620bb commit b0e7706

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.claude/settings.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"allow": [
55
"Bash(pnpm typecheck:*)",
66
"Bash(pnpm test:*)",
7+
"Bash(pnpm build:*)",
78
"Bash(pnpm lint:*)",
89
"Bash(find:*)",
910
"Bash(ls:*)",
@@ -21,7 +22,17 @@
2122
"hooks": [
2223
{
2324
"type": "command",
24-
"command": "pnpm run lint --fix"
25+
"command": "jq -r '.tool_input.file_path' | { read file_path; if [[ \"$file_path\" =~ \\.(js|jsx|ts|tsx)$ ]]; then pnpm run lint --fix \"$file_path\" || true; fi }"
26+
}
27+
]
28+
}
29+
],
30+
"Stop": [
31+
{
32+
"hooks": [
33+
{
34+
"type": "command",
35+
"command": "(pnpm run typecheck 1>&2 || exit 2) && (pnpm run lint 1>&2 || exit 2)"
2536
}
2637
]
2738
}

0 commit comments

Comments
 (0)