Skip to content

Commit 2b27c01

Browse files
Pelle Wessmanvoxpelli
authored andcommitted
Make tsconfig stricter
1 parent 6ecea1a commit 2b27c01

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tsconfig.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
"noEmit": true,
1414
"resolveJsonModule": true,
1515
"module": "es2022",
16-
"moduleResolution": "node"
16+
"moduleResolution": "node",
17+
18+
/* New checks being tried out */
19+
"exactOptionalPropertyTypes": true,
20+
"noFallthroughCasesInSwitch": true,
21+
"noImplicitOverride": true,
22+
"noPropertyAccessFromIndexSignature": true,
23+
"noUncheckedIndexedAccess": true,
24+
25+
/* Additional checks */
26+
"forceConsistentCasingInFileNames": true,
27+
"noUnusedLocals": true,
28+
"noUnusedParameters": true
1729
}
1830
}

0 commit comments

Comments
 (0)