Skip to content

Instantly share code, notes, and snippets.

View PaulineTrotzer's full-sized avatar
:atom:
Engineering the Future, One Line at a Time

paulit_txx PaulineTrotzer

:atom:
Engineering the Future, One Line at a Time
  • Germany
View GitHub Profile
@mschwarzmueller
mschwarzmueller / tsconfig.json
Last active October 14, 2026 00:31
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