|
1 | 1 | { |
2 | | - "exclude":[ |
3 | | - "node_modules", |
4 | | - "test" |
5 | | - ], |
| 2 | + "exclude": ["node_modules", "test"], |
6 | 3 | "compilerOptions": { |
7 | 4 | /* Basic Options */ |
8 | | - "target": "ES2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ |
9 | | - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
10 | | - "lib": ["es6"], /* Specify library files to be included in the compilation. */ |
| 5 | + "target": "ES2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, |
| 6 | + "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, |
| 7 | + "lib": [ |
| 8 | + "es6", |
| 9 | + "DOM" |
| 10 | + ] /* Specify library files to be included in the compilation. */, |
11 | 11 | // "allowJs": true, /* Allow javascript files to be compiled. */ |
12 | 12 | // "checkJs": true, /* Report errors in .js files. */ |
13 | 13 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ |
14 | | - "declaration": true, /* Generates corresponding '.d.ts' file. */ |
| 14 | + "declaration": true /* Generates corresponding '.d.ts' file. */, |
15 | 15 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
16 | 16 | // "sourceMap": true, /* Generates corresponding '.map' file. */ |
17 | 17 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
18 | | - "outDir": "./dist", /* Redirect output structure to the directory. */ |
19 | | - "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
| 18 | + "outDir": "./dist" /* Redirect output structure to the directory. */, |
| 19 | + "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, |
20 | 20 | // "composite": true, /* Enable project compilation */ |
21 | 21 | // "incremental": true, /* Enable incremental compilation */ |
22 | 22 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
|
27 | 27 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
28 | 28 |
|
29 | 29 | /* Strict Type-Checking Options */ |
30 | | - "strict": true, /* Enable all strict type-checking options. */ |
| 30 | + "strict": true /* Enable all strict type-checking options. */, |
31 | 31 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ |
32 | 32 | // "strictNullChecks": true, /* Enable strict null checks. */ |
33 | 33 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
|
43 | 43 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
44 | 44 |
|
45 | 45 | /* Module Resolution Options */ |
46 | | - "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
| 46 | + "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, |
47 | 47 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
48 | 48 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
49 | 49 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
50 | 50 | // "typeRoots": [], /* List of folders to include type definitions from. */ |
51 | 51 | // "types": [], /* Type declaration files to be included in compilation. */ |
52 | 52 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
53 | | - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
| 53 | + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
54 | 54 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
55 | 55 |
|
56 | 56 | /* Source Map Options */ |
|
65 | 65 | }, |
66 | 66 | "ts-node": { |
67 | 67 | "transpileOnly": true |
68 | | - }, |
| 68 | + } |
69 | 69 | } |
0 commit comments