mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
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
71 lines
2.2 KiB
JSON
71 lines
2.2 KiB
JSON
{
|
|
"name": "nowdatabase-frontend",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "[ -d node_modules ] && npx vite --host || npm ci && npx vite --host",
|
|
"test": "jest src/tests",
|
|
"build": "vite build",
|
|
"lint": "eslint --cache --report-unused-disable-directives --max-warnings 0",
|
|
"preview": "vite preview",
|
|
"clean": "rm -rf node_modules && rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.13.5",
|
|
"@emotion/styled": "^11.13.5",
|
|
"@mui/material": "^6.1.9",
|
|
"@reduxjs/toolkit": "^2.2.3",
|
|
"@svgdotjs/svg.js": "^3.2.4",
|
|
"export-to-csv": "^1.3.0",
|
|
"leaflet": "^1.9.4",
|
|
"lodash-es": "^4.17.21",
|
|
"material-react-table": "^3.0.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-hook-form": "^7.51.4",
|
|
"react-leaflet": "^4.2.1",
|
|
"react-redux": "^9.1.0",
|
|
"react-router-dom": "^6.22.3",
|
|
"styled-components": "^6.1.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "^1.2.2",
|
|
"@eslint/eslintrc": "^3.1.0",
|
|
"@eslint/js": "^9.13.0",
|
|
"@jest/globals": "^29.7.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.0.1",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/leaflet": "^1.9.21",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/node": "^20.12.7",
|
|
"@types/react": "^18.2.56",
|
|
"@types/react-dom": "^18.2.19",
|
|
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
"@typescript-eslint/parser": "^8.12.2",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"eslint": "^9.13.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"eslint-plugin-react": "^7.37.2",
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
"eslint-plugin-react-refresh": "^0.4.14",
|
|
"globals": "^15.11.0",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"lint-staged": "^16.4.0",
|
|
"prettier": "^3.2.5",
|
|
"ts-jest": "^29.2.5",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.2.2",
|
|
"typescript-eslint": "^8.12.2",
|
|
"vite": "^5.2.5",
|
|
"vite-plugin-istanbul": "^6.0.2"
|
|
}
|
|
}
|