Modern tsconfig template [2024]

In this blog, I am keeping a draft example of the modern tsconfig file that works for me in the projects that I am making.

  "compilerOptions": {
    "target": "ESNext",
    "experimentalDecorators": false,
    "module": "commonjs",
    "rootDir": "./src",
    "outDir": "./dist",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noImplicitAny": false,
    "skipLibCheck": true
      "exclude": ["node_modules/"],
      "include": ["src/**/*.ts"]

I can come back to it when I need help.

You can use it in your projects too.