-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
42 lines (42 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
38
39
40
41
42
{
"extends": "expo/tsconfig.base", // Remove it if not using expo. It's not very useful but expo would re-add it automatically
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react-native",
"lib": ["esnext"],
"moduleResolution": "Bundler",
"module": "ES2020", // allow dynamic import but not top-level await, this is the closest match to what metro supports
"noEmit": true,
"strict": true,
"target": "esnext",
"incremental": true,
"tsBuildInfoFile": ".cache/tsconfig.tsbuildinfo",
"noImplicitReturns": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"noUncheckedIndexedAccess": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": true,
},
"exclude": [
"node_modules",
".yarn", // yarn 3
"android", // react-native
"ios", // react-native
".cache", // tsc/eslint/metro cache
"coverage", // jest
"dist", // expo updates
".expo-shared",
".expo",
],
}