|
1 | 1 | {
|
2 | 2 | "compilerOptions": {
|
3 |
| - // Enable latest features |
4 |
| - "lib": ["ESNext", "DOM"], |
5 |
| - "target": "ESNext", |
6 |
| - "module": "ESNext", |
| 3 | + "esModuleInterop": true, |
| 4 | + "skipLibCheck": true, |
| 5 | + "target": "esnext", |
| 6 | + "allowJs": true, |
| 7 | + "resolveJsonModule": true, |
7 | 8 | "moduleDetection": "force",
|
8 |
| - |
9 |
| - // Bundler mode |
10 |
| - "moduleResolution": "bundler", |
11 |
| - "allowImportingTsExtensions": true, |
12 |
| - "verbatimModuleSyntax": true, |
| 9 | + "isolatedModules": true, |
| 10 | + "module": "preserve", |
13 | 11 | "noEmit": true,
|
14 |
| - |
15 |
| - // Best practices |
| 12 | + "lib": ["esnext", "dom", "dom.iterable"], |
16 | 13 | "strict": true,
|
17 |
| - "skipLibCheck": true, |
18 |
| - "noFallthroughCasesInSwitch": true, |
19 |
| - |
20 |
| - // Some stricter flags (disabled by default) |
21 |
| - "noUnusedLocals": false, |
22 |
| - "noUnusedParameters": false, |
23 |
| - "noPropertyAccessFromIndexSignature": false |
| 14 | + "allowUnreachableCode": false, |
| 15 | + "allowUnusedLabels": false, |
| 16 | + "noImplicitOverride": true, |
| 17 | + "exactOptionalPropertyTypes": true, |
| 18 | + "noUncheckedIndexedAccess": true |
24 | 19 | }
|
25 | 20 | }
|
0 commit comments