|
| 1 | +{ |
| 2 | + "compilerOptions": { |
| 3 | + /* Language and Environment */ |
| 4 | + "target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
| 5 | + |
| 6 | + /* Modules */ |
| 7 | + "module": "ESNext", /* Specify what module code is generated. */ |
| 8 | + "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */ |
| 9 | + |
| 10 | + /* JavaScript Support */ |
| 11 | + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ |
| 12 | + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ |
| 13 | + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
| 14 | + |
| 15 | + /* Emit */ |
| 16 | + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
| 17 | + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
| 18 | + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
| 19 | + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
| 20 | + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
| 21 | + // "noEmit": true, /* Disable emitting files from a compilation. */ |
| 22 | + // "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. */ |
| 23 | + "outDir": "./dist", /* Specify an output folder for all emitted files. */ |
| 24 | + |
| 25 | + /* Interop Constraints */ |
| 26 | + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ |
| 27 | + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
| 28 | + |
| 29 | + /* Type Checking */ |
| 30 | + "strict": true, /* Enable all strict type-checking options. */ |
| 31 | + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ |
| 32 | + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ |
| 33 | + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ |
| 34 | + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ |
| 35 | + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ |
| 36 | + // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */ |
| 37 | + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ |
| 38 | + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ |
| 39 | + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ |
| 40 | + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ |
| 41 | + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ |
| 42 | + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ |
| 43 | + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ |
| 44 | + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ |
| 45 | + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ |
| 46 | + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ |
| 47 | + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ |
| 48 | + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ |
| 49 | + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ |
| 50 | + |
| 51 | + /* Completeness */ |
| 52 | + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
| 53 | + "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
| 54 | + }, |
| 55 | + "include": [ |
| 56 | + "src/**/*.ts" |
| 57 | + ], |
| 58 | + "exclude": [ |
| 59 | + "node_modules", |
| 60 | + "dist" |
| 61 | + ] |
| 62 | +} |
0 commit comments