generated from InverterNetwork/npm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.base.json
executable file
·44 lines (38 loc) · 1.59 KB
/
tsconfig.base.json
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
{
"include": [],
"exclude": ["**/bak/*"],
"compilerOptions": {
// Type checking
"strict": true,
"useDefineForClassFields": true, // Not enabled by default in `strict` mode unless we bump `target` to ES2022.
"noImplicitReturns": true, // Not enabled by default in `strict` mode.
"useUnknownInCatchVariables": true, // TODO: This would normally be enabled in `strict` mode but would require some adjustments to the codebase.
"noImplicitOverride": true, // Not enabled by default in `strict` mode.
"noUnusedLocals": true, // Not enabled by default in `strict` mode.
// "noUnusedParameters": false, For JSX // Not enabled by default in `strict` mode.
// "noFallthroughCasesInSwitch": true, // Not enabled by default in `strict` mode.
// TODO: The following options are also not enabled by default in `strict` mode and would be nice to have but would require some adjustments to the codebase.
// "exactOptionalPropertyTypes": true,
// "noUncheckedIndexedAccess": true,
// JavaScript support
"allowJs": false,
"checkJs": false,
// "jsx": "react" For JSX,
// Interop constraints
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
// Language and environment
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ESNext",
"lib": ["ESNext", "DOM" /* , "DOM.Iterable" For JSX */],
// Skip type checking for node modules
"skipLibCheck": true,
// Type aliasing
"paths": {
"@/*": ["./src/*"]
}
}
}