- Consolidate 5 notification-system-* files into doc/notification-system.md - Add web-push cleanup guide and Start-on-Login glossary entry - Configure markdownlint for consistent formatting - Remove web-push references, focus on native OS scheduling Reduces maintenance overhead while preserving all essential information in a single, well-formatted reference document.
34 lines
880 B
Bash
Executable File
34 lines
880 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Husky Pre-commit Hook
|
|
# Runs lint-fix and Build Architecture Guard on staged files
|
|
#
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
echo "🔍 Running pre-commit hooks..."
|
|
|
|
# Run lint-fix first
|
|
echo "📝 Running lint-fix..."
|
|
npm run lint-fix || {
|
|
echo
|
|
echo "❌ Linting failed. Please fix the issues and try again."
|
|
echo "💡 To bypass this check for emergency commits, use:"
|
|
echo " git commit --no-verify"
|
|
echo
|
|
exit 1
|
|
}
|
|
|
|
# Build Architecture Guard - DISABLED
|
|
# echo "🏗️ Running Build Architecture Guard..."
|
|
# bash ./scripts/build-arch-guard.sh --staged || {
|
|
# echo
|
|
# echo "❌ Build Architecture Guard failed. Please fix the issues and try again."
|
|
# echo "💡 To bypass this check for emergency commits, use:"
|
|
# echo " git commit --no-verify"
|
|
# echo
|
|
# exit 1
|
|
# }
|
|
|
|
echo "✅ All pre-commit checks passed!"
|
|
|