Skip to content

Instantly share code, notes, and snippets.

@aabccd021
Created September 6, 2025 22:38
Show Gist options
  • Select an option

  • Save aabccd021/89e4299427e7916749e1b2f9c66650e1 to your computer and use it in GitHub Desktop.

Select an option

Save aabccd021/89e4299427e7916749e1b2f9c66650e1 to your computer and use it in GitHub Desktop.
tsconfig cheatsheet
{
"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