Advertisements

headerup to 320x100 / 728x90

tsconfig.json Checker

Validate tsconfig.json structure, flag unknown options, and surface common misconfigurations

Input
Loading editor...
Output

Output will appear here...

Advertisements

content bottomup to 300x250

What is tsconfig.json Checker

Last reviewed:

JSON (JavaScript Object Notation) is a lightweight, human-readable data format used almost everywhere on the web for APIs, config files, and log output.

tsconfig.json Checker parses your tsconfig.json (with JSONC comment support), validates the structure of top-level keys and `compilerOptions`, and flags common misconfigurations that slow down builds or weaken type safety.

Typical findings include old targets (ES3/ES5), disabled strict mode, paths without baseUrl, and missing include/files arrays — which can cause TypeScript to scan the whole project by default.

Why use it

  • Audit tsconfig before opening a pull request.
  • Speed up slow TypeScript builds caused by wide includes.
  • Enforce strict-mode consistency across repos.
  • Catch typos in compilerOptions keys.
  • Onboard new developers with a safe default config.

Features

  • JSONC-aware (comments + trailing commas)
  • Checks top-level & compilerOptions shapes
  • Flags legacy targets, loose strictness
  • Warns about paths without baseUrl
  • All tsconfig.json work stays on your device

How to use tsconfig.json Checker

  1. Paste tsconfig.json. Comments are OK.
  2. Click Run. The checker validates structure and surfaces warnings.
  3. Fix & re-check. Paste the updated config to confirm it's clean.

Example (before/after)

tsconfig.json

{
  "compilerOptions": {
    "target": "ES5",
    "strict": false,
    "paths": { "@/*": ["src/*"] }
  }
}

Report

✓ No blocking issues.

⚠ Warnings:
  • Target "ES5" is very old — prefer ES2020+ unless you ship to IE11
  • strict is disabled — consider enabling for stronger type safety
  • "compilerOptions.paths" without "baseUrl" may not resolve as expected
  • Neither "include" nor "files" is set — TypeScript will use the default ["**/*"] which can be slow

Common errors

Comments not supported

Some parsers choke on // comments.

Fix: This checker strips // and /* */ before parsing.

extends chains

`extends` isn't followed — only the current file is validated.

Fix: Paste each file separately if you need layered checks.

FAQ

Does it follow the extends chain?

No — it validates only the file you paste.

Does it support JSONC?

Yes — comments and trailing commas are handled.

What does 'strict is disabled' mean?

It means compilerOptions.strict is false — consider enabling for safer types.

Does it check every TypeScript option?

It covers the most common ones. New or experimental flags may be flagged as unknown.

Is input uploaded?

No — validation runs client-side.

Related tools

Pair the tsconfig checker with JSON tools and the JavaScript beautifier. You can also browse the full Validators category for more options.

JSON Validator

Validate JSON syntax and catch parse errors instantly. Paste JSON and get immediate feedback on structural issues, missing commas, and unquoted keys.

JSON Formatter

Format, validate, and beautify JSON online with readable indentation, syntax checking, and copy-ready output for APIs, logs, and config files.

JSON Fixer

Auto-repair common JSON errors — trailing commas, single quotes, unquoted keys, and comments

JavaScript Beautifier

Format and beautify JavaScript code online with clean indentation and proper spacing. Paste JS and get readable, formatted output for better code readability.

JSON Sorter

Recursively sort JSON object keys alphabetically while preserving array order

JSON Cleaner

Strip comments, null values, and empty strings to produce compact, production-ready JSON

TOML Validator

Validate TOML syntax online, catch parse errors quickly, and inspect normalized config output for app settings and package files.

Password Strength Tester

Score password strength with length, character variety, repeated-pattern checks, and practical suggestions for safer credentials.

Credit Card Validator

Validate credit card numbers with the Luhn algorithm and detect card type online without storing the number you enter.

CSS Validator

Validate CSS syntax online and catch parse errors in stylesheets with instant feedback for malformed rules and blocks.

Java Regex Tester

Test Java-style regular expressions with ECMAScript-equivalent matching and group capture

JavaScript Validator

Validate JavaScript syntax online and catch parse errors, missing brackets, and malformed statements with instant feedback.