-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtsconfig.json
45 lines (43 loc) · 1.51 KB
/
tsconfig.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
45
{
"compilerOptions": {
"module": "ESNext",
"target": "ES2021",
"moduleResolution": "bundler",
"esModuleInterop": true,
"isolatedModules": true,
"preserveSymlinks": true,
"declaration": true,
"jsx": "preserve",
"skipLibCheck": true,
"strict": true,
"resolveJsonModule": true,
"noImplicitAny": false,
"lib": ["ES2022", "DOM"],
"noFallthroughCasesInSwitch": true, // Not enabled by default in `strict` mode.
"noImplicitOverride": true, // Not enabled by default in `strict` mode.
"noImplicitReturns": true, // Not enabled by default in `strict` mode.
"noUncheckedIndexedAccess": true,
"noUnusedLocals": false, // Not enabled by default in `strict` mode.
"noUnusedParameters": false, // Not enabled by default in `strict` mode.
"useDefineForClassFields": true, // Not enabled by default in `strict` mode unless we bump `target` to ES2022.
"useUnknownInCatchVariables": true,
// JavaScript support
"allowJs": false,
"checkJs": false,
// Interop constraints
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"noErrorTruncation": true,
"baseUrl": "."
},
"ts-node": {
// these options are overrides used only by ts-node
// same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs",
"verbatimModuleSyntax": false
}
},
"include": ["examples/*/src"],
"exclude": ["node_modules", "packages/*/node_modules"]
}