Files
nowdatabase/.husky/pre-commit
T
karilint 41502929c8 Revert pre-commit to use full lint with caching benefits
- Use npm run lint && npm run tsc (standard approach)
- Keeps ESLint --cache flags for 97% performance improvement
- Removes lint-staged dependency due to Node.js 18.12.1 compatibility
- Still provides major performance gains through caching on repeated runs
2026-03-30 18:12:27 +03:00

15 lines
354 B
Bash
Executable File

#!/usr/bin/env sh
if [ "$HUSKY_SKIP_CHECKS" = "1" ]; then
echo "Husky pre-commit checks skipped via HUSKY_SKIP_CHECKS."
exit 0
fi
command -v npm >/dev/null 2>&1 || {
echo "npm not found. Install dependencies before committing." >&2
exit 1
}
# Full linting with cache for performance (97% faster on subsequent runs)
npm run lint && npm run tsc