|
1 | 1 | { |
2 | 2 | "compilerOptions": { |
3 | 3 | /* Visit https://aka.ms/tsconfig to read more about this file */ |
4 | | - |
5 | 4 | /* Projects */ |
6 | 5 | "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ |
7 | 6 | "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ |
8 | 7 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ |
9 | 8 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ |
10 | 9 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
11 | 10 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
12 | | - |
13 | 11 | /* Language and Environment */ |
14 | 12 | "target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
15 | 13 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
|
23 | 21 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ |
24 | 22 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ |
25 | 23 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ |
26 | | - |
27 | 24 | /* Modules */ |
28 | 25 | "module": "node16", /* Specify what module code is generated. */ |
29 | 26 | "rootDir": "./", /* Specify the root folder within your source files. */ |
|
42 | 39 | // "resolveJsonModule": true, /* Enable importing .json files. */ |
43 | 40 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ |
44 | 41 | // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */ |
45 | | - |
46 | 42 | /* JavaScript Support */ |
47 | 43 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ |
48 | 44 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ |
49 | 45 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
50 | | - |
51 | 46 | /* Emit */ |
52 | 47 | "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
53 | 48 | "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
|
72 | 67 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ |
73 | 68 | /// "declarationDir": "./", /* Specify the output directory for generated declaration files. */ |
74 | 69 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ |
75 | | - |
76 | 70 | /* Interop Constraints */ |
77 | 71 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
78 | 72 | // "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. */ |
79 | 73 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ |
80 | 74 | // "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ |
81 | 75 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
82 | 76 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
83 | | - |
84 | 77 | /* Type Checking */ |
85 | 78 | "strict": true, /* Enable all strict type-checking options. */ |
86 | 79 | "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ |
|
101 | 94 | "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ |
102 | 95 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ |
103 | 96 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ |
104 | | - |
105 | 97 | /* Completeness */ |
106 | 98 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
107 | | - "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
| 99 | + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ |
| 100 | + "rewriteRelativeImportExtensions": true |
108 | 101 | } |
109 | 102 | } |
0 commit comments