-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtsconfig.base.json
35 lines (30 loc) · 2.12 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
{
"compilerOptions": {
/* Language and Environment */
"target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": [ /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// Restrict the lib to the minimal set of features that we need.
"dom",
"dom.iterable",
"es2021",
],
/* Modules */
"module": "preserve", /* Specify what module code is generated. */
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
"types": [ /* Specify type package names to be included without being referenced in a source file. */
// Restrict the types to the minimal set of features that we need.
"node",
],
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
/* Emit */
"noEmit": true, /* Disable emitting files from a compilation. */
/* Interop Constraints */
"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. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
/* Completeness */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
}