-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (43 loc) · 1.09 KB
/
tsconfig.json
File metadata and controls
43 lines (43 loc) · 1.09 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
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
// --- FORCEFUL FIX: ADD THE 'lib' OPTION ---
// This tells TypeScript to ONLY use the modern JavaScript language features
// and to EXPLICITLY EXCLUDE the 'dom' library for web browsers.
// This should resolve the 'Alert' vs 'alert' conflict.
"lib": [
"esnext"
],
// --- STRONGLY RECOMMENDED ---
// Enabling strict mode is a best practice that helps catch bugs early.
"strict": true,
// ESM-aware resolution and output
"moduleResolution": "nodenext",
"module": "NodeNext",
"customConditions": [
"react-native"
],
"target": "es2020",
"allowSyntheticDefaultImports": true,
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
"ignoreDeprecations": "6.0",
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
},
"include": [
"**/*.ts",
"**/*.tsx",
".expo/types/**/*.ts",
"expo-env.d.ts"
],
"exclude": [
"node_modules",
"babel.config.cjs",
"metro.config.js"
]
}