Skip to content

Commit efc7fb7

Browse files
committed
Added strict option + lib esnext prop.
1 parent 0efcfe1 commit efc7fb7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tsconfig.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
{
2+
"extends": "expo/tsconfig.base",
23
"compilerOptions": {
4+
// --- FORCEFUL FIX: ADD THE 'lib' OPTION ---
5+
// This tells TypeScript to ONLY use the modern JavaScript language features
6+
// and to EXPLICITLY EXCLUDE the 'dom' library for web browsers.
7+
// This should resolve the 'Alert' vs 'alert' conflict.
8+
"lib": [
9+
"esnext"
10+
],
11+
// --- STRONGLY RECOMMENDED ---
12+
// Enabling strict mode is a best practice that helps catch bugs early.
13+
"strict": true,
314
"moduleResolution": "node",
415
"module": "esnext",
516
"target": "esnext",
617
"jsx": "react-jsx",
718
"esModuleInterop": true,
819
"skipLibCheck": true,
920
"forceConsistentCasingInFileNames": true,
10-
"strict": false,
1121
"baseUrl": ".",
1222
"paths": {
1323
"@/*": [
@@ -25,9 +35,5 @@
2535
"node_modules",
2636
"babel.config.cjs",
2737
"metro.config.js"
28-
],
29-
"types": [
30-
"@types/expo__camera"
31-
],
32-
"extends": "expo/tsconfig.base"
38+
]
3339
}

0 commit comments

Comments
 (0)