SpaceCities / jsconfig.json
Claude
Tier 1, step 2: make the type layer real (D1, D2, D4)
6db3533 unverified
Raw History Blame
1.07 kB
{
"//": "Editor + `npm run typecheck` config. NOT a build step — nothing is emitted (noEmit) and the shipped code stays plain ES modules. checkJs is off, so ONLY files that opt in with a `// @ts-check` pragma are error-checked; this lets type coverage grow file-by-file. The shared shapes live in engine/types.js. NOTE: the pragma alone buys nothing while strict/noImplicitAny are off — an un-annotated param is `any`, so a file must annotate its exports with the shared typedefs to actually be checked (test/types-contract.test.js enforces that). tools/ is in the program so the ailab/selfplay benches can opt in too.",
"compilerOptions": {
"checkJs": false,
"allowJs": true,
"noEmit": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": false,
"noImplicitAny": false,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"]
},
"include": ["*.js", "engine/**/*.js", "tools/**/*.js"],
"exclude": ["node_modules", "test"]
}