tsconfig Generator

Build a tsconfig.json for your target.

tsconfig options
tsconfig.json
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "outDir": "dist",
    "declaration": true
  },
  "include": [
    "src"
  ],
  "exclude": [
    "node_modules",
    "dist"
  ]
}

About this tool

Pick a target environment and strictness level to generate a sensible tsconfig.json starting point.

How to use

  1. Choose the target, module system, and strictness.
  2. Toggle common compiler options.
  3. Copy the generated tsconfig.json.

Examples

Option
{ "compilerOptions": { "strict": true } }

Frequently asked questions

Yes, strict is recommended and enabled by default; you can turn it off.
Contact

Let’s connect

Have a Liferay or Backend project you’d like to talk through? Fill in the form and I’ll get back to you.

Book Calendar