generated from coulomb/repo-seed
T01: shared engine types (Document, Selector union, Annotation, EvidenceItem, branded IDs with newId factory) per wiki/SharedContracts.md §1-§3. T02: react-pdf-highlighter-plus v1.1.4 spike behind the §5 DocumentViewerAdapter contract in src/anchor/. Pure round-trip math extracted to pdf-selector-math.ts with 11 unit tests proving lossless capture → selectors → JSON → restored-rects. ADR-0004 accepted; full user-flow Playwright verification deferred to T09. Adds Vite app shell (index.html, src/app/SpikeApp.tsx) so the spike is exercisable via pnpm dev. tsconfig --noEmit prevents tsc -b from littering src/ with stray .js outputs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"jsx": "react-jsx",
|
|
|
|
"strict": true,
|
|
"noImplicitOverride": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
|
|
"noEmit": true,
|
|
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"isolatedModules": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"verbatimModuleSyntax": true,
|
|
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@shared/*": ["src/shared/*"],
|
|
"@engine/*": ["src/engine/*"],
|
|
"@anchor/*": ["src/anchor/*"],
|
|
"@source/*": ["src/source/*"],
|
|
"@work/*": ["src/work/*"],
|
|
"@binder/*": ["src/binder/*"],
|
|
"@app/*": ["src/app/*"]
|
|
}
|
|
},
|
|
"include": ["src", "vite.config.ts", "vitest.config.ts"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|