Skip to content

Instantly share code, notes, and snippets.

@o-az
Created February 9, 2025 15:31
Show Gist options
  • Save o-az/86b9f372e18d5ac3fecd9d70185e5edf to your computer and use it in GitHub Desktop.
Save o-az/86b9f372e18d5ac3fecd9d70185e5edf to your computer and use it in GitHub Desktop.
my default tsconfig.json
{
"schema": "https://json.schemastore.org/tsconfig.json",
"display": "Default",
"compilerOptions": {
"strict": true,
"noEmit": true,
"allowJs": true,
"checkJs": true,
// add DOM and DOM.Iterable if working with browser
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"skipLibCheck": true,
"alwaysStrict": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"esModuleInterop": true,
"isolatedModules": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"moduleResolution": "Bundler",
"resolvePackageJsonImports": true,
"resolvePackageJsonExports": true,
"noUncheckedIndexedAccess": true,
"allowImportingTsExtensions": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noPropertyAccessFromIndexSignature": true,
"types": ["node"],
"baseUrl": "."
},
"include": ["src"],
"files": ["environment.d.ts"],
"exclude": ["node_modules", "dist"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment