- 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
35 lines
780 B
JSON
35 lines
780 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
/* Strict */
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
|
|
/* Paths */
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"]
|
|
},
|
|
"types": ["vitest/globals"]
|
|
},
|
|
"include": ["src", "tests"]
|
|
}
|