-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsconfig.package.json
More file actions
49 lines (39 loc) · 1.47 KB
/
tsconfig.package.json
File metadata and controls
49 lines (39 loc) · 1.47 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
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
// ==============================
// Project reference participation
// ==============================
// Required for tsc --build and incremental compilation.
"composite": true,
// Packages emit types only; JS output is handled by bundlers.
"noEmit": false,
"emitDeclarationOnly": true,
"declaration": true,
// ==============================
// Module system (bundler-friendly)
// ==============================
// Preserve native ESM syntax and let the bundler handle resolution.
"module": "ESNext",
"moduleResolution": "bundler",
// Do not rewrite imports/exports.
// Ensures the emitted .d.ts matches source semantics exactly.
"verbatimModuleSyntax": true,
// ==============================
// Extra safety for library code
// ==============================
// Prevents unsafe indexed access (e.g. obj[key] returning undefined).
"noUncheckedIndexedAccess": true,
// Requires `override` keyword when overriding class methods.
// Helps prevent accidental API mismatches.
"noImplicitOverride": true,
// ==============================
// Linting rules
// ==============================
// Disabled since they are covered by ESLint rules.
// Can be enabled in individual packages if desired.
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}