tsconfig.json: The Settings That Matter
A practical guide to TS compiler options interviewers ask about: strict, noImplicitAny, lib, moduleResolution, jsx, and incremental builds.
Frontend Interview Team
February 08, 2026
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.