|
1 | 1 | {
|
2 | 2 | "compilerOptions": {
|
3 |
| - /* Visit https://aka.ms/tsconfig.json to read more about this file */ |
| 3 | + /* Visit https://aka.ms/tsconfig to read more about this file */ |
4 | 4 |
|
5 |
| - /* Basic Options */ |
6 |
| - // "incremental": true, /* Enable incremental compilation */ |
7 |
| - "target": "ESNEXT" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, |
8 |
| - "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, |
| 5 | + /* Projects */ |
| 6 | + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ |
| 7 | + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ |
| 8 | + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ |
| 9 | + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ |
| 10 | + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
| 11 | + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
| 12 | + |
| 13 | + /* Language and Environment */ |
| 14 | + "target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, |
9 | 15 | "lib": [
|
| 16 | + "ESNext", |
10 | 17 | "DOM",
|
11 |
| - "ES2015", |
12 |
| - "ES2016", |
13 |
| - "ES2017", |
14 |
| - "ES2018", |
15 |
| - "ES2019", |
16 |
| - "ES2020", |
17 |
| - "ESNext" |
18 |
| - ] /* Specify library files to be included in the compilation. */, |
19 |
| - "allowJs": true /* Allow javascript files to be compiled. */, |
20 |
| - // "checkJs": true, /* Report errors in .js files. */ |
21 |
| - "jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, |
22 |
| - // "declaration": true, /* Generates corresponding '.d.ts' file. */ |
23 |
| - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
24 |
| - "sourceMap": true /* Generates corresponding '.map' file. */, |
25 |
| - // "outFile": "./", /* Concatenate and emit output to single file. */ |
26 |
| - // "outDir": "./", /* Redirect output structure to the directory. */ |
27 |
| - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
28 |
| - // "composite": true, /* Enable project compilation */ |
29 |
| - // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
30 |
| - // "removeComments": true, /* Do not emit comments to output. */ |
31 |
| - // "noEmit": true /* Do not emit outputs. */, |
32 |
| - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
33 |
| - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ |
34 |
| - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
| 18 | + "DOM.Iterable" |
| 19 | + ] /* Specify a set of bundled library declaration files that describe the target runtime environment. */, |
| 20 | + // "jsx": "preserve", /* Specify what JSX code is generated. */ |
| 21 | + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ |
| 22 | + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ |
| 23 | + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ |
| 24 | + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ |
| 25 | + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ |
| 26 | + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ |
| 27 | + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ |
| 28 | + "useDefineForClassFields": true /* Emit ECMAScript-standard-compliant class fields. */, |
| 29 | + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ |
35 | 30 |
|
36 |
| - /* Strict Type-Checking Options */ |
37 |
| - "strict": true /* Enable all strict type-checking options. */, |
38 |
| - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ |
39 |
| - // "strictNullChecks": true, /* Enable strict null checks. */ |
40 |
| - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
41 |
| - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ |
42 |
| - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ |
43 |
| - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |
44 |
| - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ |
| 31 | + /* Modules */ |
| 32 | + "module": "ESNext" /* Specify what module code is generated. */, |
| 33 | + // "rootDir": "./", /* Specify the root folder within your source files. */ |
| 34 | + "moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */, |
| 35 | + "baseUrl": "./" /* Specify the base directory to resolve non-relative module names. */, |
| 36 | + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
| 37 | + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ |
| 38 | + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ |
| 39 | + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ |
| 40 | + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
| 41 | + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ |
| 42 | + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ |
| 43 | + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ |
| 44 | + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ |
| 45 | + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ |
| 46 | + // "resolveJsonModule": true, /* Enable importing .json files. */ |
| 47 | + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ |
| 48 | + // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */ |
45 | 49 |
|
46 |
| - /* Additional Checks */ |
47 |
| - // "noUnusedLocals": true /* Report errors on unused locals. */, |
48 |
| - // "noUnusedParameters": true /* Report errors on unused parameters. */, |
49 |
| - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ |
50 |
| - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
51 |
| - // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ |
| 50 | + /* JavaScript Support */ |
| 51 | + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ |
| 52 | + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ |
| 53 | + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
52 | 54 |
|
53 |
| - /* Module Resolution Options */ |
54 |
| - "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, |
55 |
| - "baseUrl": "./" /* Base directory to resolve non-absolute module names. */, |
56 |
| - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
57 |
| - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
58 |
| - // "typeRoots": [], /* List of folders to include type definitions from. */ |
59 |
| - // "types": [], /* Type declaration files to be included in compilation. */ |
60 |
| - "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, |
61 |
| - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, |
62 |
| - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
63 |
| - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
| 55 | + /* Emit */ |
| 56 | + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
| 57 | + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
| 58 | + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
| 59 | + "sourceMap": true /* Create source map files for emitted JavaScript files. */, |
| 60 | + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
| 61 | + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ |
| 62 | + // "outDir": "./", /* Specify an output folder for all emitted files. */ |
| 63 | + // "removeComments": true, /* Disable emitting comments. */ |
| 64 | + "noEmit": true /* Disable emitting files from a compilation. */, |
| 65 | + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
| 66 | + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ |
| 67 | + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ |
| 68 | + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ |
| 69 | + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
| 70 | + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ |
| 71 | + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ |
| 72 | + // "newLine": "crlf", /* Set the newline character for emitting files. */ |
| 73 | + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ |
| 74 | + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ |
| 75 | + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ |
| 76 | + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ |
| 77 | + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ |
| 78 | + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ |
64 | 79 |
|
65 |
| - /* Source Map Options */ |
66 |
| - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ |
67 |
| - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
68 |
| - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ |
69 |
| - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ |
| 80 | + /* Interop Constraints */ |
| 81 | + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
| 82 | + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ |
| 83 | + "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */, |
| 84 | + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, |
| 85 | + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
| 86 | + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, |
70 | 87 |
|
71 |
| - /* Experimental Options */ |
72 |
| - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
73 |
| - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ |
| 88 | + /* Type Checking */ |
| 89 | + "strict": true /* Enable all strict type-checking options. */, |
| 90 | + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ |
| 91 | + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ |
| 92 | + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ |
| 93 | + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ |
| 94 | + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ |
| 95 | + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ |
| 96 | + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ |
| 97 | + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ |
| 98 | + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ |
| 99 | + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ |
| 100 | + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ |
| 101 | + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ |
| 102 | + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ |
| 103 | + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ |
| 104 | + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ |
| 105 | + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ |
| 106 | + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ |
| 107 | + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ |
74 | 108 |
|
75 |
| - /* Advanced Options */ |
76 |
| - "skipLibCheck": true /* Skip type checking of declaration files. */, |
77 |
| - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ |
| 109 | + /* Completeness */ |
| 110 | + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
| 111 | + "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
78 | 112 | },
|
79 | 113 | "exclude": ["node_modules"],
|
80 | 114 | "include": ["./src/**/*"]
|
|
0 commit comments