DD
DevDash

Format tsconfig.json — Clean TypeScript Config

Quick Answer: Paste your tsconfig.json to reformat compilerOptions, paths, and include/exclude arrays with clean 2-space indentation. Note: tsconfig supports JSON with comments (JSONC), but comments will be preserved as-is in the output.

FAQ

Does tsconfig.json support comments?

Yes. TypeScript uses JSONC (JSON with Comments). This formatter handles standard JSON; comments in your tsconfig are treated as part of the text.

What indentation should tsconfig.json use?

The TypeScript convention is 2-space indentation, matching the default tsc --init output.

Want API access + no ads? Pro coming soon.