Created
September 6, 2025 22:38
-
-
Save aabccd021/89e4299427e7916749e1b2f9c66650e1 to your computer and use it in GitHub Desktop.
tsconfig cheatsheet
This file contains hidden or 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": { | |
| // Environment Settings | |
| "module": "preserve", | |
| "lib": ["esnext"], | |
| "target": "esnext", | |
| "types": ["bun"], | |
| // Output | |
| "noEmit": true, | |
| // JS | |
| "checkJs": true, | |
| // Strict checks not handled by biome | |
| "strict": true, | |
| "noUncheckedIndexedAccess": true, | |
| "noImplicitReturns": true, | |
| // Only useful for class | |
| // "noImplicitOverride": true, | |
| // Only useful when we use try/catch | |
| // "useUnknownInCatchVariables": true, | |
| // We don't do side-effect imports | |
| // "noUncheckedSideEffectImports": true, | |
| // Only matter for typescript file? | |
| // "isolatedModules": true, | |
| // "verbatimModuleSyntax": true, | |
| // "erasableSyntaxOnly": true, | |
| // Works anyway even if not set? | |
| // Handled by biome | |
| // "allowUnreachableCode": false, | |
| // "allowUnusedLabels": false, | |
| // "noFallthroughCasesInSwitch": true, | |
| // "noUnusedLocals": true, | |
| // "noUnusedParameters": true, | |
| // Misc | |
| "skipLibCheck": true | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment