Skip to content

Instantly share code, notes, and snippets.

View mschwarzmueller's full-sized avatar

Maximilian mschwarzmueller

View GitHub Profile
@mschwarzmueller
mschwarzmueller / tsconfig.json
Last active November 2, 2025 21:22
A good default tsconfig.json file - for frontend projects & Node.js
{
"target": "ES2022", // Good for modern browsers or Node.js
"compilerOptions": {
"esModuleInterop": true, // Ensures ESM and CJS imports work together well
"skipLibCheck": true, // Ensures .d.ts files from 3rd libraries are not type-checked
"target": "es2022", // Sets a relatively modern ECMAScript version as compilation target
"allowJs": true, // Allows importing .js files into .ts (helpful when migrating projects)
"strict": true, // Ensures strict type checking (i.e., noImplicitAny etc)
"noUncheckedIndexedAccess": true, // Adds undefined as a value when accessing by index
// "noImplicitOverride": true, // Enable this when working with classes & inheritance