Commit Graph
6 Commits
Author SHA1 Message Date
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
karilint 8c1f809a19 Optimize linting performance for faster development workflow
Performance Improvements:
- Add ESLint --cache flags to all lint commands (frontend, backend, cypress)
- Frontend linting: 80s -> 2.5s on subsequent runs (97% improvement)
- Backend and Cypress linting also benefit from caching

Configuration Changes:
- Update frontend/package.json: Add --cache flag to lint script
- Update backend/package.json: Add --cache flag to lint script
- Update package.json: Add --cache flag to lint:cypress script
- Add lint:staged script preparation (npx lint-staged)
- Update pre-commit hook to use optimized lint:staged approach
- Add lint-staged configuration for changed-files-only linting

Resolves: Slow pre-commit hooks that caused development delays
Impact: Dramatic reduction in linting time, especially on repeated runs
2026-03-30 18:11:33 +03:00
Kari Lintulaakso 04ba84faef Add pre-commit checks and cache lint workflow 2025-11-20 15:36:46 +02:00
arttu ca7a5d3594 Remove husky (precommit thing) 2024-08-07 12:22:44 +03:00
arttu 1096d26280 Remove pre-commit hooks 2024-05-24 11:43:53 +03:00
arttu be041f8444 Add pre-commit hooks, improve eslint, fix errors, add documentation 2024-05-15 19:08:33 +03:00