-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
40 lines (36 loc) · 1.26 KB
/
Copy pathtsconfig.json
File metadata and controls
40 lines (36 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"jsxImportSource": "@opentui/react",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"allowUnreachableCode": false,
// Stricter flags — enabled; the codebase is verified clean against
// these, so `bun run typecheck` now guards against unused
// imports/locals/params, missing returns, and unreachable code.
// Prefix a deliberately-unused param with `_` to satisfy
// noUnusedParameters.
"noUnusedLocals": true,
"noUnusedParameters": true,
// Left off intentionally: noisy or stylistic for this codebase.
// exactOptionalPropertyTypes — 39 hits, optional-vs-undefined footgun
// noPropertyAccessFromIndexSignature — 185 hits, forces bracket access
"noPropertyAccessFromIndexSignature": false
}
}