|
1 | 1 | { |
2 | | - // see https://www.typescriptlang.org/tsconfig to better understand tsconfigs |
3 | 2 | "compilerOptions": { |
4 | | - /* Base Options: */ |
| 3 | + // Base Options |
| 4 | + "esModuleInterop": true, |
| 5 | + "forceConsistentCasingInFileNames": true, |
5 | 6 | "skipLibCheck": true, |
6 | 7 | "target": "es2022", |
| 8 | + "verbatimModuleSyntax": true, |
7 | 9 | "allowJs": true, |
8 | 10 | "resolveJsonModule": true, |
9 | 11 | "moduleDetection": "force", |
10 | | - "isolatedModules": true, |
11 | | - "verbatimModuleSyntax": true, |
12 | | - /* Strictness */ |
| 12 | + // Strictness |
13 | 13 | "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", |
23 | 21 | "noEmit": true, |
24 | | - /* If your code doesn't run in the DOM: */ |
| 22 | + // If code runs in the DOM |
25 | 23 | "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 | + ] |
29 | 42 | } |
0 commit comments