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

+1 -1
View File
@@ -5,7 +5,7 @@ import { HomeRoute } from './routes/HomeRoute';
import { NewReportRoute } from './routes/NewReportRoute';
import { NotFoundRoute } from './routes/NotFoundRoute';
export function App(): JSX.Element {
export function App() {
return (
<BrowserRouter>
<Routes>
+1 -1
View File
@@ -1,3 +1,3 @@
export function Brand(): JSX.Element | null {
export function Brand() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function Footer(): JSX.Element | null {
export function Footer() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function Header(): JSX.Element | null {
export function Header() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function AnatomyCanvas(): JSX.Element | null {
export function AnatomyCanvas() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function AnatomyView(): JSX.Element | null {
export function AnatomyView() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function ConclusionPanel(): JSX.Element | null {
export function ConclusionPanel() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function ExportButton(): JSX.Element | null {
export function ExportButton() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function FindingEditor(): JSX.Element | null {
export function FindingEditor() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function FindingPanel(): JSX.Element | null {
export function FindingPanel() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function ZoneSelection(): JSX.Element | null {
export function ZoneSelection() {
return null;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function ZoomOverlay(): JSX.Element | null {
export function ZoomOverlay() {
return null;
}
+2 -2
View File
@@ -4,6 +4,6 @@ export interface AnatomyAssets {
svg: Record<string, string>;
}
export async function exportReport(_report: Report, _assets: AnatomyAssets): Promise<Blob> {
throw new Error('exportReport not implemented');
export function exportReport(_report: Report, _assets: AnatomyAssets): Promise<Blob> {
return Promise.reject(new Error('exportReport not implemented'));
}
+2 -2
View File
@@ -8,6 +8,6 @@ export type ImportFailure =
export type ImportResult = { ok: true; report: Report } | ImportFailure;
export async function importReport(_file: File): Promise<ImportResult> {
throw new Error('importReport not implemented');
export function importReport(_file: File): Promise<ImportResult> {
return Promise.reject(new Error('importReport not implemented'));
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function EditorRoute(): JSX.Element {
export function EditorRoute() {
return <div data-route="editor" />;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function HomeRoute(): JSX.Element {
export function HomeRoute() {
return <div data-route="home" />;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function NewReportRoute(): JSX.Element {
export function NewReportRoute() {
return <div data-route="new" />;
}
+1 -1
View File
@@ -1,3 +1,3 @@
export function NotFoundRoute(): JSX.Element {
export function NotFoundRoute() {
return <div data-route="not-found" />;
}