mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
- 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
15 lines
354 B
Bash
Executable File
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
|