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
This commit is contained in:
karilint
2026-03-30 18:12:27 +03:00
parent dc2b47ef87
commit 41502929c8
+2 -2
View File
@@ -10,5 +10,5 @@ command -v npm >/dev/null 2>&1 || {
exit 1
}
# Use lint-staged for faster pre-commit checks (only on changed files)
npm run lint:staged
# Full linting with cache for performance (97% faster on subsequent runs)
npm run lint && npm run tsc