-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
54 lines (42 loc) · 1.69 KB
/
tsconfig.base.json
File metadata and controls
54 lines (42 loc) · 1.69 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"compilerOptions": {
// Project root for module resolution.
"baseUrl": ".",
// Path mapping for monorepo packages.
"paths": {
"@nbw/*": ["packages/*"]
},
// ==============================
// Global type-safety invariant
// ==============================
// These rules define the minimum safety bar for the entire repo.
// Disabling any of its sub-rules should be rare and explicitly justified.
"strict": true,
// Disabled to allow compatibility with frameworks and libraries that
// initialize fields outside constructors (e.g. ORMs, DI containers).
"strictPropertyInitialization": false,
// Prevents subtle runtime bugs caused by switch fallthrough.
"noFallthroughCasesInSwitch": true,
// Enforces consistent file casing across platforms (Windows/macOS/Linux).
"forceConsistentCasingInFileNames": true,
// Improves build performance by skipping type-checking of .d.ts files.
// Safe as long as dependencies are trusted.
"skipLibCheck": true,
// ==============================
// Language & runtime model
// ==============================
// Target modern runtimes; downleveling is handled by bundlers if needed.
"target": "ESNext",
"lib": ["ESNext"],
// Forces explicit module boundaries.
// Prevents accidental global scripts and implicit module inference.
"moduleDetection": "force",
// ==============================
// Decorators (backend / ORM support)
// ==============================
// Required for libraries relying on legacy decorators and runtime metadata
// (e.g. class-validator).
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}