Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Last active January 25, 2025 14:19
Show Gist options
  • Save cecilemuller/80fed1b963171ca4e117f6d1e2a4a5a7 to your computer and use it in GitHub Desktop.
Save cecilemuller/80fed1b963171ca4e117f6d1e2a4a5a7 to your computer and use it in GitHub Desktop.
Typescript Config
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "esnext",
"module": "nodenext",
"moduleDetection": "force",
"newLine": "LF",
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmitOnError": true,
"isolatedModules": true,
"allowImportingTsExtensions": true,
"rewriteRelativeImportExtensions": true,
"verbatimModuleSyntax": true,
"lib": ["es2024", "dom"],
// (TS 5.8) Warn against syntaxes not compatible with Node Types Stripping:
// https://github.com/microsoft/TypeScript/pull/61011
// "erasableSyntaxOnly": true,
// Only for Vite
// "allowArbitraryExtensions": true,
// "noEmit": true,
// Only for TSC transpile
// "outDir": "lib",
// "declaration": true,
// "sourceMap": true,
// "removeComments": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment