express typescript setup code example

Example 1: express typescript tsconfig

// it can vary a lot, but this is a beggining

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "./dist",
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "esModuleInterop": true
},
  "include": ["src/**/*"],
  "exclude": ["node_modules", "**/*.test.ts"]
}

Example 2: express typescript

try this config for nodejs + typescript using babel

https://pastebin.com/TR4BXPqL