Last active
May 31, 2018 16:10
-
-
Save Falieson/b6e2d5511853a6c23560f5b15cebde60 to your computer and use it in GitHub Desktop.
S1. F02. tsconfig.json (ARTICLE: TS-Module w/ Declarations (Part 1/4))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** TS-Module w/ Declarations (Part 1/4) | |
* http://TGRstack.com/#ts-module_articles_part-1 | |
* description of ./tsconfig.json (Section 1. Figure 02.) | |
* complete file: https://github.com/Falieson/2018-typescript-module/blob/master/tsconfig.json | |
**/ | |
{ | |
"exclude": [ // regexes to exclude from the compiler | |
"dist", // don't compile previous iterations of the output | |
"**/*.spec|test.ts" // don't compile testes | |
], | |
"include": [ // regex to include in the compiler | |
"src" // ignore files in the project root and elsewhere | |
], | |
"compilerOptions": { | |
/* basic options */ | |
"outDir": "dist", // Redirect output structure | |
"lib": ["esnext", "dom"], // include latest ES(JS) and DOM(console) | |
"target": "es5", // Specify ECMAScript target version: default 'ES3' | |
"module": "commonjs", // Specify module code generation | |
"moduleResolution": "node", // 'node' or 'classic' (TypeScript pre-1.6) | |
// "allowJs": true, // Allow javascript files to be compiled | |
// "declaration": true, // Generates corresponding '.d.ts' file | |
/* Strict Type-Checking Options */ | |
"alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file | |
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement | |
"noImplicitAny": true, // Error on expressions and declarations with an implied 'any' type | |
"noImplicitReturns": true, // Error when not all code paths in function return a value | |
"noImplicitThis": true, // Error on 'this' expressions with an implied 'any' type | |
"noUnusedLocals": true, // Error on unused locals | |
"noUnusedParameters": true, // Error on unused parameters | |
"preserveConstEnums": true, | |
"strict": true, // All strict type-checking options | |
"strictFunctionTypes": true, // Strict checking of function types | |
"strictNullChecks": true, // Strict null checks | |
"strictPropertyInitialization": true, // Strict checking of property initialization in classes | |
"suppressImplicitAnyIndexErrors": true, // Suppress noImplicitAny errors for indexing objects lacking index signatures. https://github.com/Microsoft/TypeScript/issues/1232#issuecomment-6451036 | |
/*Source Map Options */ | |
"sourceMap": true, // Generates corresponding '.map' file | |
"removeComments": true,// Do not emit comments to output | |
"newLine": "LF", // Code for ending each file for Unix Filesystem | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment