- 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
23 lines
525 B
JSON
23 lines
525 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
"types": ["node"],
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
|
|
/* Strict */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true
|
|
},
|
|
"include": ["vite.config.ts", "vitest.config.ts", "playwright.config.ts", "eslint.config.js"]
|
|
}
|