-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtsconfig.json
More file actions
20 lines (20 loc) · 1.15 KB
/
Copy pathtsconfig.json
File metadata and controls
20 lines (20 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"// note": "Type-CHECK only (noEmit). This is a plain-ESM JS package — no transpile. checkJs + @types/node catches real bugs via inference without requiring the source to be TypeScript. Kept non-strict on purpose: the value is catching genuine mistakes (wrong property, bad arg count), not annotating every value.",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true,
"module": "esnext",
"target": "es2022",
"moduleResolution": "bundler",
"skipLibCheck": true,
"types": ["node"],
"strict": false,
"noImplicitAny": false,
"forceConsistentCasingInFileNames": true
},
"// scope": "Shipped code + scripts. Tests are fixture-heavy (dynamic shapes) — typechecking them yields inference noise, not bugs; they're covered by `pnpm test`.",
"include": ["src/**/*.mjs", "bin/**/*.mjs", "scripts/**/*.mjs"],
"// exclude": "admin-view.mjs is BROWSER code (DOM globals, no node types) — never node-imported, only read as text and embedded into the served admin page (ADR-0007 §5). Typechecking it against node lib yields only 'Cannot find name document' noise.",
"exclude": ["src/lib/admin-view.mjs"]
}