tsconfig.json: The Settings That Matter
A practical guide to TS compiler options interviewers ask about: strict, noImplicitAny, lib, moduleResolution, jsx, and incremental builds.
On this page
30‑second interview answer
tsconfig.json controls how TypeScript checks and emits code. The most important choice is enabling strict mode for correctness. In frontend projects, jsx, lib, and moduleResolution affect compatibility, while options like noUncheckedIndexedAccess can catch real bugs. For large repos, incremental builds speed up compilation.
The high-impact options
strict
Turns on a bundle of checks:
noImplicitAnystrictNullChecks- more
Interview stance:
“Strict mode is worth it for long-term maintainability.”
strictNullChecks
Forces you to handle null/undefined.
noImplicitAny
Prevents silent any.
Frontend-specific options
jsx:preserve/react-jsxlib: include DOM/ES featuresmodule+moduleResolution: ESM/CJS behavior
Incremental builds
incremental: truetsBuildInfoFile
Helps speed in large codebases.
Common mistakes
- Turning off strict to “fix errors fast”
- Not including
dominlibfor browser apps
Mini Q&A
Q1: Why strict mode?
- fewer runtime bugs.
Q2: What does strictNullChecks do?
- null/undefined must be handled.
Q3: Why incremental?
- faster rebuilds.
Summary checklist
- I know strict is the big one.
- I can explain strictNullChecks.
- I can explain jsx/moduleResolution basics.
- I know incremental build benefits.
Looking for structured, offline interview prep?
Free online lessons • Portable Amazon Kindle / Paperback
Frontend Interview Guide (2025 Edition)
By Rajesh Dhiman
Comprehensive preparation covering React internals, Web Performance, CSS architecture, and system design questions.
JavaScript Interview Guide
By Rajesh Dhiman
Deep dive into the Event Loop, microtask draining, closures, prototypal inheritance, and asynchronous execution patterns.
Note: All lessons on Frontend Interview remain completely free to read online. As an Amazon Associate, we may earn from qualifying purchases.
Written by Rajesh Dhiman
Authored by Rajesh Dhiman and engineered at Eunix Tech. Focused on deep-dive frontend engineering, JavaScript runtime internals, React architecture, and web performance.