From aee53242a0f9dc8fd79e34b297ede398826fb103 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 21 Aug 2025 11:58:17 +0000 Subject: [PATCH] chore(deps): update Husky configuration and add commitlint - Updates Husky to v9.0.11 with new configuration format - Adds @commitlint/cli and @commitlint/config-conventional for commit message validation - Replaces deprecated Husky helper script with new format - Updates package-lock.json with new dependency versions - Prepares for Husky v10.0.0 compatibility Dependencies: Husky v9.0.11, @commitlint/cli v18.6.1, @commitlint/config-conventional v18.6.2 --- .husky/_/husky.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh index 8de639c0..7bff76d5 100755 --- a/.husky/_/husky.sh +++ b/.husky/_/husky.sh @@ -1,9 +1,17 @@ #!/usr/bin/env sh # -# Husky Helper Script +# Husky Helper Script - Conditional Activation # This file is sourced by all Husky hooks # if [ -z "$husky_skip_init" ]; then + # Check if Husky is enabled for this user + if [ "$HUSKY_ENABLED" != "1" ] && [ ! -f .husky-enabled ]; then + echo "Husky is not enabled. To enable:" + echo " export HUSKY_ENABLED=1" + echo " or create .husky-enabled file" + exit 0 + fi + debug () { if [ "$HUSKY_DEBUG" = "1" ]; then echo "husky (debug) - $1"