|
1 | 1 | { |
2 | 2 | "compilerOptions": { |
3 | | - "module": "commonjs", |
4 | | - "target": "es6", |
5 | | - "moduleResolution": "node", |
6 | | - "sourceMap": true, |
7 | | - "baseUrl": ".", |
8 | | - "outDir": "dist", |
9 | | - "alwaysStrict": true, |
10 | | - "experimentalDecorators": true, |
11 | | - "emitDecoratorMetadata": true, |
12 | | - "importHelpers": true, |
13 | | - "strict": true, |
14 | | - "noImplicitAny": false, |
15 | | - "paths": { |
| 3 | + |
| 4 | + /* Basic Options */ |
| 5 | + "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ |
| 6 | + "module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */ |
| 7 | + "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 8 | + "outDir": "dist", /* Redirect output structure to the directory. */ |
| 9 | + "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
| 10 | + |
| 11 | + /* Strict Type-Checking Options */ |
| 12 | + "strict": true, /* Enable all strict type-checking options. */ |
| 13 | + "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ |
| 14 | + "strictNullChecks": true, /* Enable strict null checks. */ |
| 15 | + "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |
| 16 | + "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ |
| 17 | + |
| 18 | + /* Additional Checks */ |
| 19 | + "noUnusedLocals": true, /* Report errors on unused locals. */ |
| 20 | + "noUnusedParameters": false, /* Report errors on unused parameters. */ |
| 21 | + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ |
| 22 | + "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
| 23 | + |
| 24 | + /* Module Resolution Options */ |
| 25 | + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
| 26 | + "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
| 27 | + "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
16 | 28 | "*": [ |
17 | | - "node_modules/*", |
18 | | - "src/types/*" |
| 29 | + "./node_modules/*", |
| 30 | + "./src/types/*" |
19 | 31 | ] |
20 | | - } |
| 32 | + }, |
| 33 | + "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
| 34 | + "typeRoots": [ /* List of folders to include type definitions from. */ |
| 35 | + "./src/types" |
| 36 | + ], |
| 37 | + "types": [ /* Type declaration files to be included in compilation. */ |
| 38 | + ], |
| 39 | + "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
| 40 | + |
| 41 | + /* Experimental Options */ |
| 42 | + "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
| 43 | + "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */ |
21 | 44 | }, |
22 | 45 | "include": [ |
23 | | - "src/**/*" |
| 46 | + "./src/**/*" |
24 | 47 | ] |
25 | 48 | } |
0 commit comments