Last active
March 22, 2024 17:42
-
-
Save byt3h3ad/e039a825333bd26b342ab64b78a60905 to your computer and use it in GitHub Desktop.
sane ts configs from https://www.totaltypescript.com/typescript-and-node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
/* Base Options: */ | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"target": "es2022", | |
"allowJs": true, | |
"resolveJsonModule": true, | |
"moduleDetection": "force", | |
"isolatedModules": true, | |
/* Strictness */ | |
"strict": true, | |
"noUncheckedIndexedAccess": true, | |
/* If transpiling with TypeScript: */ | |
"moduleResolution": "NodeNext", | |
"module": "NodeNext", | |
"outDir": "dist", | |
"sourceMap": true, | |
/* AND if you're building for a library: */ | |
"declaration": true, | |
/* AND if you're building for a library in a monorepo: */ | |
"composite": true, | |
"declarationMap": true, | |
/* If NOT transpiling with TypeScript: */ | |
"moduleResolution": "Bundler", | |
"module": "preserve", | |
"noEmit": true, | |
/* If your code runs in the DOM: */ | |
"lib": ["es2022", "dom", "dom.iterable"], | |
/* If your code doesn't run in the DOM: */ | |
"lib": ["es2022"] | |
} | |
} | |
// https://www.totaltypescript.com/tsconfig-cheat-sheet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment