Skip to content

Commit 2d5e9ee

Browse files
committed
Use more strict typescript config
1 parent d2ed4da commit 2d5e9ee

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

frontend/tsconfig.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
{
2+
"$schema": "https://www.schemastore.org/tsconfig",
23
"extends": "./.svelte-kit/tsconfig.json",
34
"compilerOptions": {
5+
"target": "es2023",
46
"allowJs": true,
57
"checkJs": true,
68
"esModuleInterop": true,
7-
"forceConsistentCasingInFileNames": true,
89
"resolveJsonModule": true,
910
"skipLibCheck": true,
1011
"sourceMap": true,
12+
13+
// See https://github.com/tsconfig/bases/blob/main/bases/strictest.json
1114
"strict": true,
12-
"moduleResolution": "bundler"
15+
"allowUnusedLabels": false,
16+
"allowUnreachableCode": false,
17+
"exactOptionalPropertyTypes": true,
18+
"noFallthroughCasesInSwitch": true,
19+
"noImplicitOverride": true,
20+
"noImplicitReturns": true,
21+
"noPropertyAccessFromIndexSignature": true,
22+
"noUncheckedIndexedAccess": true,
23+
"noUnusedLocals": true,
24+
"noUnusedParameters": true
1325
},
1426
"include": [
1527
"src/**/*.d.ts",

0 commit comments

Comments
 (0)