Skip to content

Instantly share code, notes, and snippets.

@sid137
Created November 17, 2022 15:18
Show Gist options
  • Save sid137/1ed1fe1d0e6e00437971fbd3c001e3e3 to your computer and use it in GitHub Desktop.
Save sid137/1ed1fe1d0e6e00437971fbd3c001e3e3 to your computer and use it in GitHub Desktop.
// https://www.lucaspaganini.com/academy/20-typescript-compiler-options-for-your-tsconfig-json
{
"include": [
"src/**/*.ts"
],
"exclude": [
"cdk.out",
"node_modules"
],
"compilerOptions": {
"outDir": "dist",
"lib": [
"ES2021",
"DOM"
],
"target": "ES2019",
"allowUnreachableCode": false,
"declaration": true,
"declarationDir": "./types",
"declarationMap": true,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"inlineSourceMap": true,
"inlineSources": true,
"jsx": "react-jsx",
"moduleResolution": "node",
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": true,
"resolveJsonModule": true,
"strict": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment