chore: remove test file
This commit is contained in:
parent
4afd39bd85
commit
92cb800d32
14
.husky/pre-commit
Executable file
14
.husky/pre-commit
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/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
|
||||||
1520
pnpm-lock.yaml
generated
1520
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -25,7 +25,7 @@ fi
|
|||||||
echo "🐶 Running pre-commit hooks for common platform..."
|
echo "🐶 Running pre-commit hooks for common platform..."
|
||||||
|
|
||||||
# Run lint-staged on staged files
|
# Run lint-staged on staged files
|
||||||
npx lint-staged
|
pnpm dlx lint-staged
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Make the hook executable
|
# Make the hook executable
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user