learning_ai_common_plat/.husky/pre-commit
2026-02-12 16:17:29 -08:00

15 lines
404 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Check if Husky is disabled via environment variable
if [ "$HUSKY_ENABLED" = "false" ]; then
echo "⚠️ Husky disabled via HUSKY_ENABLED=false"
echo "💡 To re-enable: unset HUSKY_ENABLED or export HUSKY_ENABLED=true"
exit 0
fi
echo "🐶 Running pre-commit hooks for common platform..."
# Run lint-staged on staged files
npx lint-staged