chore: scaffold fixes — React 19 JSX, vitest v3, @types/node, lint scoping

- React 19 dropped global JSX namespace; stub return types removed (TS infer)
- vitest 2 pulled vite 5 alongside project vite 6 → upgrade vitest to 3 (dedupes)
- Add @types/node to devDeps so vite/vitest configs compile
- ESLint flat config: scope strictTypeChecked to src/ + tests/, ignore config files
- tsconfig.app.json: include tests/, add vitest/globals to types
- vite.config.ts + vitest.config.ts: use import.meta.dirname instead of __dirname
- pdf/export + pdf/import: stub returns Promise.reject so require-await rule clears
- tests/unit/smoke.test.ts: keep vitest run from exiting 1 with no tests
This commit is contained in:
ZenQuality committed 2026-05-17 06:47:52 +02:00
1 parent a115e785a7
commit 3fb77c3530
26 files changed
+827 -1150

No files matched your search

+3 -1
View File
@@ -43,9 +43,11 @@
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.19.19",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^3.2.4",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import-x": "^4.5.0",
@@ -60,7 +62,7 @@
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5",
"vite-plugin-svgr": "^4.3.0",
"vitest": "^2.1.8"
"vitest": "^3.2.4"
},
"lint-staged": {
"*.{ts,tsx}": [