-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.base.json
67 lines (61 loc) · 5.2 KB
/
tsconfig.base.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"compileOnSave": false,
"compilerOptions": {
/* Basic options. */
"charset": "utf8", // The character set of the input files.
"declaration": false, // Don't generate corresponding '.d.ts' file (Visual Studio Code threw errors about symlinks type resolution in animation).
"diagnostics": true, // Show diagnostic information.
"disableSizeLimit": true, // Disable size limitation on JavaScript project.
"downlevelIteration": true, // Provide full support for iterables in for..of, spread and destructuring when targeting ES5 or ES3.
"extendedDiagnostics": true, // Show verbose diagnostic information.
"importHelpers": true, // Import emit helpers (e.g. __extends, __rest, etc..) from tslib.
"lib": ["es2017", "dom"], // List of library files to be included in the compilation.
"listEmittedFiles": true, // Print names of generated files part of the compilation.
"listFiles": true, // Print names of files part of the compilation.
"module": "es2015", // Specify module code generation: 'AMD', 'CommonJS', 'ES3', 'ES5', 'ES2015', 'ESNext', 'None', 'System', or 'UMD'. Default: 'ES3', or 'ES5' ? 'CommonJS' : 'ES2015'.
"noEmit": false, // Do not emit outputs.
"outDir": "dist", // Redirect output structure to the directory.
"pretty": true, // Stylize errors and messages using color and context.
"removeComments": true, // Remove all comments except copy-right header comments beginning with /*!.
"resolveJsonModule": false, // Include modules imported with .json extension.
"showConfig": true, // Rather than actually execute a build with the other input options and config files, show the final implied config file in the output.
"target": "es5", // Specify ECMAScript target version: 'ES3', 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNext'. Default: 'ES3'.
/* Strict type-checking options. */
"strict": true, // Enable all strict type checking options. Enabling --strict enables: '--alwaysStrict', '--noImplicitAny', '--noImplicitThis', '--strictBindCallApply', '--strictFunctionTypes', '--strictNullChecks', and '--strictPropertyInitialization'.
// Even though most of these rules below are enabled by setting strict to true, it's a good informational source what exactly it does.
"alwaysStrict": true, // Parse in strict mode and emit 'use strict' for each source file.
"noImplicitAny": true, // Raise error on expressions and declarations with an implied "any" type.
"noImplicitThis": true, // Raise error on "this" expressions with an implied "any" type.
"skipLibCheck": true, // Don't skip type checking of all declaration files (*.d.ts).
"strictBindCallApply": true, // Enable stricter checking of of the bind, call, and apply methods on functions.
"strictFunctionTypes": true, // Disable bivariant parameter checking for function types.
"strictNullChecks": true, // In strict null checking mode, the null and undefined values are not in the domain of every type and are only assignable to themselves and any (the one exception being that undefined is also assignable to void).
"strictPropertyInitialization": true, // Ensure non-undefined class properties are initialized in the constructor. This option requires --strictNullChecks be enabled in order to take effect.
"suppressExcessPropertyErrors": false, // Suppress excess property checks for object literals.
"suppressImplicitAnyIndexErrors": false, // Suppress --noImplicitAny errors for indexing objects lacking index signatures.
/* Additional checks. */
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement.
"noImplicitReturns": true, // Report error when not all code paths in function return a value.
"noUnusedLocals": true, // Report errors on unused locals.
"noUnusedParameters": true, // Report errors on unused parameters.
/* Module resolution options. */
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export. This does not affect code emit, just type checking.
"baseUrl": ".", // Base directory to resolve non-relative module names.
"moduleResolution": "node", // Determine how modules get resolved. Either "Node" for Node.js/io.js style resolution, or "Classic".
// List of path mapping entries for module names to locations relative to the baseUrl.
"paths": {
"@apps/*": ["apps/*"],
"@libs/*": ["libs/*"]
},
"traceResolution": false, // Report module resolution log messages.
"typeRoots": ["node_modules/@types"], // List of folders to include type definitions from.
/* Source map options. */
"inlineSources": true, // Emit the source alongside the sourcemaps within a single file; requires --inlineSourceMap or --sourceMap to be set.
"inlineSourceMap": true, // Emit a single file with source maps instead of having a separate file.
/* Experimental options. */
"experimentalDecorators": true, // Enables experimental support for ES decorators.
"emitDecoratorMetadata": true, // Emit design-type metadata for decorated declarations in source.
"stripInternal": false // Do not emit declarations for code that has an /** @internal */ JSDoc annotation.
},
"exclude": ["apps/ditectrev-e2e", "dist", "node_modules", "tmp"]
}