tsconfig.json: The Settings That Matter

A practical guide to TS compiler options interviewers ask about: strict, noImplicitAny, lib, moduleResolution, jsx, and incremental builds.

F

Frontend Interview Team

February 08, 2026

1 min read
tsconfig.json: The Settings That Matter

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:

  • noImplicitAny
  • strictNullChecks
  • 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-jsx
  • lib: include DOM/ES features
  • module + moduleResolution: ESM/CJS behavior

Incremental builds

  • incremental: true
  • tsBuildInfoFile

Helps speed in large codebases.


Common mistakes

  • Turning off strict to “fix errors fast”
  • Not including dom in lib for 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.