Skip to content

Instantly share code, notes, and snippets.

View danielmason89's full-sized avatar
🍏
Always Striving to Grow Infinitely and Beyond

Daniel Mason danielmason89

🍏
Always Striving to Grow Infinitely and Beyond
View GitHub Profile
@danielmason89
danielmason89 / tsconfig.json
Created April 16, 2025 14:51 — forked from mschwarzmueller/tsconfig.json
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