From b0e7706afcdbbf33e73504838744d3fbcd089eba Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Tue, 19 Aug 2025 23:07:34 -0700 Subject: [PATCH] Claude Code improvements --- .claude/settings.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index ee52ce43b..4923235d0 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -4,6 +4,7 @@ "allow": [ "Bash(pnpm typecheck:*)", "Bash(pnpm test:*)", + "Bash(pnpm build:*)", "Bash(pnpm lint:*)", "Bash(find:*)", "Bash(ls:*)", @@ -21,7 +22,17 @@ "hooks": [ { "type": "command", - "command": "pnpm run lint --fix" + "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 }" + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "(pnpm run typecheck 1>&2 || exit 2) && (pnpm run lint 1>&2 || exit 2)" } ] }