Skip to content

Commit 61c7ac7

Browse files
authored
feat: stricter tsconfig [ENG-2414] (#7256)
1 parent 517bbaa commit 61c7ac7

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.changeset/few-bobcats-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperlane-xyz/tsconfig": minor
3+
---
4+
5+
Defined a new tsconfig file with stricter type checking for accessing array and object properties
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"compilerOptions": {
3+
// Completeness
4+
"skipLibCheck": true,
5+
6+
// Interoperability
7+
"esModuleInterop": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"preserveSymlinks": false,
10+
11+
// Module settings
12+
"module": "nodenext",
13+
"moduleResolution": "nodenext",
14+
"resolveJsonModule": true,
15+
16+
// Output formatting
17+
"preserveWatchOutput": true,
18+
"pretty": false,
19+
20+
// Project build
21+
"incremental": false,
22+
"lib": ["ES2023"],
23+
"target": "es2023",
24+
25+
// Type checking
26+
"allowUnreachableCode": false,
27+
"noFallthroughCasesInSwitch": true,
28+
"noImplicitOverride": true,
29+
"noImplicitReturns": true,
30+
"noPropertyAccessFromIndexSignature": true,
31+
"noUncheckedIndexedAccess": true,
32+
"noUnusedLocals": true,
33+
"noUnusedParameters": true,
34+
"strict": true,
35+
36+
// Type emit setting
37+
"declaration": true,
38+
"declarationMap": true,
39+
"noEmitOnError": true,
40+
"sourceMap": true
41+
},
42+
"ts-node": {
43+
"experimentalResolver": true,
44+
"experimentalSpecifierResolution": "node",
45+
"files": true
46+
}
47+
}

0 commit comments

Comments
 (0)