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
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
#
|
#
|
||||||
# Husky Helper Script
|
# Husky Helper Script - Conditional Activation
|
||||||
# This file is sourced by all Husky hooks
|
# This file is sourced by all Husky hooks
|
||||||
#
|
#
|
||||||
if [ -z "$husky_skip_init" ]; then
|
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 () {
|
debug () {
|
||||||
if [ "$HUSKY_DEBUG" = "1" ]; then
|
if [ "$HUSKY_DEBUG" = "1" ]; then
|
||||||
echo "husky (debug) - $1"
|
echo "husky (debug) - $1"
|
||||||
|
|||||||
Reference in New Issue
Block a user