diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..33958e3 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/claude-code-settings.json", + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit", + "hooks": [ + { + "type": "command", + "command": "jq -r \"(.tool_response.filePath // .tool_input.file_path) // empty\" | { read -r f || exit 0; case \"$f\" in */dotfiles/*) exit 0 ;; *.sh|*/bootstrap.sh) ;; *) exit 0 ;; esac; command -v shellcheck >/dev/null || exit 0; shellcheck -S warning -x \"$f\" >&2 || exit 2; }", + "timeout": 30, + "statusMessage": "shellcheck" + } + ] + } + ] + } +}