tools / files / cheatsheets / apps / tsconfig.json
tsconfig.json
3aee11a4 2025-08-15 Pavel Safronov | 1 | { |
| 2 | // Visit https://aka.ms/tsconfig to read more about this file | |
| 3 | "compilerOptions": { | |
| 4 | // File Layout | |
| 5 | // "rootDir": "./src", | |
| 6 | // "outDir": "./dist", | |
| 7 | ||
| 8 | // Environment Settings | |
| 9 | // See also https://aka.ms/tsconfig/module | |
| 10 | "module": "nodenext", | |
| 11 | "target": "esnext", | |
| 12 | "types": [], | |
| 13 | // For nodejs: | |
| 14 | // "lib": ["esnext"], | |
| 15 | // "types": ["node"], | |
| 16 | // and npm install -D @types/node | |
| 17 | ||
| 18 | // Other Outputs | |
| 19 | "sourceMap": true, | |
| 20 | "declaration": true, | |
| 21 | "declarationMap": true, | |
| 22 | ||
| 23 | // Stricter Typechecking Options | |
| 24 | "noUncheckedIndexedAccess": true, | |
| 25 | "exactOptionalPropertyTypes": true, | |
| 26 | ||
| 27 | // Style Options | |
| 28 | // "noImplicitReturns": true, | |
| 29 | // "noImplicitOverride": true, | |
| 30 | // "noUnusedLocals": true, | |
| 31 | // "noUnusedParameters": true, | |
| 32 | // "noFallthroughCasesInSwitch": true, | |
| 33 | // "noPropertyAccessFromIndexSignature": true, | |
| 34 | ||
| 35 | // Recommended Options | |
| 36 | "strict": true, | |
| 37 | "jsx": "react-jsx", | |
| 38 | "verbatimModuleSyntax": true, | |
| 39 | "isolatedModules": true, | |
| 40 | "noUncheckedSideEffectImports": true, | |
| 41 | "moduleDetection": "force", | |
| 42 | "skipLibCheck": true, | |
| 43 | } | |
| 44 | } |