Skip to content

Instantly share code, notes, and snippets.

@gcangussu
Created September 21, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcangussu/07f1c0fc4f9ca506a9fd061ba5bb336e to your computer and use it in GitHub Desktop.
Save gcangussu/07f1c0fc4f9ca506a9fd061ba5bb336e to your computer and use it in GitHub Desktop.
Typescript compiler setup for front end
{
"compilerOptions": {
/* Basic Options */
"target": "es2018",
"module": "es2015",
"resolveJsonModule": false, // Don't use untill fixed: https://github.com/Microsoft/TypeScript/issues/26020
"lib": ["dom", "esnext"],
"allowJs": false,
"jsx": "preserve",
"sourceMap": true,
"outDir": "./dist",
/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": false,
/* Additional Checks */
"noUnusedLocals": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
/* Module Resolution Options */
"moduleResolution": "node",
"rootDirs": ["app"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"include": ["app/**/*"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment