13 lines
288 B
Bash
Executable File
13 lines
288 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
echo "🔍 Running pre-commit checks..."
|
|
|
|
# Run lint-staged to check and format staged files
|
|
npm run lint-staged || {
|
|
echo "❌ Pre-commit checks failed. Please fix the issues above."
|
|
exit 1
|
|
}
|
|
|
|
echo "✅ Pre-commit checks passed!"
|