-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtsconfig.json
37 lines (37 loc) · 1.28 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
{
"compilerOptions": {
// Despite "allowJs": false being the default it gets added in packages/web/tsconfig.json
// set as true if this isn't set
"allowJs": false,
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
// React Native works with "react" not only "react-native"
// https://reactnative.dev/docs/typescript#adding-typescript-to-an-existing-project
"jsx": "react",
// Libs required by React Native and Node
"lib": ["DOM", "ES2020"],
"module": "CommonJS",
// Required by React Native. Node uses "CommonJS" which is overridden in child config
"moduleResolution": "Node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"paths": {
"packages/*": ["packages/*"]
},
// Preserve the watch output so when concurrently is run with multiple "tsc --watch"
// commands it doesn't continuously clear the screen
"preserveWatchOutput": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"declaration": true,
// Node ^12.9.0 tsconfig settings
// https://stackoverflow.com/a/59787575/709040
"target": "ES2019"
},
"exclude": ["**/build/"]
}