Skip to content

Commit d94e295

Browse files
committed
chore: update tsconfig.json for improved clarity and organization
1 parent 3302d60 commit d94e295

1 file changed

Lines changed: 31 additions & 18 deletions

File tree

tsconfig.json

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
11
{
2-
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
32
"compilerOptions": {
4-
/* Base Options: */
3+
// Base Options
4+
"esModuleInterop": true,
5+
"forceConsistentCasingInFileNames": true,
56
"skipLibCheck": true,
67
"target": "es2022",
8+
"verbatimModuleSyntax": true,
79
"allowJs": true,
810
"resolveJsonModule": true,
911
"moduleDetection": "force",
10-
"isolatedModules": true,
11-
"verbatimModuleSyntax": true,
12-
/* Strictness */
12+
// Strictness
1313
"strict": true,
14-
"noImplicitOverride": true,
15-
"sourceMap": true,
16-
/* AND if you're building for a library: */
17-
"declaration": true,
18-
/* AND if you're building for a library in a monorepo: */
19-
"composite": true,
20-
"declarationMap": true,
21-
/* If NOT transpiling with TypeScript: */
22-
"module": "preserve",
14+
"noUncheckedIndexedAccess": true,
15+
// If transpiling with TS
16+
// "moduleResolution": "NodeNext",
17+
// "module": "NodeNext",
18+
// If NOT transpiling with TS
19+
"moduleResolution": "bundler",
20+
"module": "ESNext",
2321
"noEmit": true,
24-
/* If your code doesn't run in the DOM: */
22+
// If code runs in the DOM
2523
"lib": [
26-
"es2022"
27-
]
28-
}
24+
"es2022",
25+
"DOM",
26+
"DOM.Iterable"
27+
],
28+
// If code doesn't run in the DOM
29+
// "lib": [
30+
// "es2022"
31+
// ]
32+
/* If you're building for a library: */
33+
"declaration": true,
34+
/* If you're building for a library in a monorepo: */
35+
// "composite": true,
36+
"sourceMap": true,
37+
"declarationMap": true
38+
},
39+
"exclude": [
40+
"dist"
41+
]
2942
}

0 commit comments

Comments
 (0)