Skip to content

Commit 7670ee0

Browse files
FE: Configure typescript to warn on undefined index access
microsoft/TypeScript#13778
1 parent f4aeccf commit 7670ee0

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

packages/client/tsconfig.json

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
2-
"compilerOptions": {
3-
"baseUrl": "./",
4-
"target": "es5",
5-
"lib": ["dom", "dom.iterable", "esnext"],
6-
"allowJs": true,
7-
"skipLibCheck": true,
8-
"esModuleInterop": true,
9-
"allowSyntheticDefaultImports": true,
10-
"strict": true,
11-
"forceConsistentCasingInFileNames": true,
12-
"noFallthroughCasesInSwitch": true,
13-
"module": "esnext",
14-
"moduleResolution": "node",
15-
"resolveJsonModule": true,
16-
"isolatedModules": true,
17-
"noEmit": false,
18-
"jsx": "react-jsx"
19-
},
20-
"include": ["src"]
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"target": "es5",
5+
"lib": ["dom", "dom.iterable", "esnext"],
6+
"allowJs": true,
7+
"skipLibCheck": true,
8+
"esModuleInterop": true,
9+
"allowSyntheticDefaultImports": true,
10+
"strict": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"noFallthroughCasesInSwitch": true,
13+
"module": "esnext",
14+
"moduleResolution": "node",
15+
"resolveJsonModule": true,
16+
"isolatedModules": true,
17+
"noEmit": false,
18+
"jsx": "react-jsx",
19+
"noUncheckedIndexedAccess": true
20+
},
21+
"include": ["src"]
2122
}

0 commit comments

Comments
 (0)