typescript how to get ts config file code example
Example 1: create react app with typescript config
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript
Example 2: express typescript tsconfig
{
"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"]
}