tsconfig Strict Generator
Generate a strict tsconfig.json.
A strict tsconfig you can paste
You started a TypeScript project, ran tsc --init and got back a file full of commented-out lines. Then comes the usual question: which flags do I turn on today, and which ones can wait? This page skips the debate. It shows one finished block with strict already on plus a few hygiene checks, and you paste it over your tsconfig.json.
There is nothing to fill in. The Generate button always returns the same JSON, and it is already on screen when the page loads. Inside it: target ES2022, module ESNext, moduleResolution bundler, esModuleInterop, skipLibCheck, forceConsistentCasingInFileNames, noUnusedLocals, noUnusedParameters, noImplicitReturns, outDir dist, an include for src and node_modules plus dist excluded.
Check two things before your first build. moduleResolution bundler needs TypeScript 5.0 or newer and assumes Vite, webpack or esbuild resolves your imports, so a plain Node build on CommonJS will make tsc complain. And strict:true is not the whole story, since noUncheckedIndexedAccess and exactOptionalPropertyTypes stay off. React projects still need jsx: react-jsx. Everything runs in your browser.
Frequently asked questions
Can I pick the target or outDir on the page?
Does this tsconfig work for a Node project?
Why did my build fail over an unused variable?
Related Tools
tsconfig.json Generator
Generate a custom tsconfig.json: ES target, module, strict, paths, JSX, declaration and more. Validation against invalid options. Everything in your browser.
tsconfig Base Generator
Generate a basic tsconfig.json for JS-to-TS migration.
Storybook main.js Generator
Generate the .storybook/main.js for Storybook 7+ with React and Vite, ready to use. Copy the config and start documenting your components in minutes.