| 1 |
{ |
| 2 |
/** @see https://www.totaltypescript.com/tsconfig-cheat-sheet#quickstart */ |
| 3 |
"include": ["src"], |
| 4 |
"compilerOptions": { |
| 5 |
/* Base Options: */ |
| 6 |
"esModuleInterop": true, |
| 7 |
"skipLibCheck": true, |
| 8 |
"target": "es2022", |
| 9 |
"verbatimModuleSyntax": true, |
| 10 |
"allowJs": true, |
| 11 |
"resolveJsonModule": true, |
| 12 |
"moduleDetection": "force", |
| 13 |
/* Strictness */ |
| 14 |
"strict": true, |
| 15 |
// "noUncheckedIndexedAccess": true, |
| 16 |
/* If transpiling with TypeScript: */ |
| 17 |
"moduleResolution": "NodeNext", |
| 18 |
"module": "NodeNext", |
| 19 |
"rootDir": "src", |
| 20 |
"outDir": "dist", |
| 21 |
"sourceMap": true, |
| 22 |
/* If your code runs in the DOM: */ |
| 23 |
"lib": ["es2022", "dom", "dom.iterable"], |
| 24 |
/* If you're building for a library: */ |
| 25 |
"declaration": true, |
| 26 |
/* If you're building for a library in a monorepo: */ |
| 27 |
"declarationMap": true, |
| 28 |
/* Don't advertise @private properties */ |
| •29 |
"stripInternal": true, |
| 30 |
"declarationDir": "dist/types", |
| 31 |
} |
| 32 |
} |