-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig-base.json
24 lines (24 loc) · 1.92 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
{
"compilerOptions": {
"allowJs": true, // Allow the compiler to compile JavaScript files (.js).
"allowSyntheticDefaultImports": true, // Allow synthetic default imports to improve module interoperability.
"baseUrl": "./", // Specify the base path of the root directory for module import.
"declaration": true, // Generate declaration files (.d.ts) for type checking and code hints.
"esModuleInterop": true, // Enable ECMAScript module interop for correct handling of CommonJS modules.
"inlineSourceMap": false, // Whether to map inline sources to compiled JavaScript files.
"lib": ["esnext"], // Specify the standard library version of the compilation target.
"listEmittedFiles": false, // List generated output files.
"listFiles": false, // List source files compiled by the compiler.
"noFallthroughCasesInSwitch": true, // Forced to check whether the case statement in the switch statement has the fallthrough mark.
"pretty": true, // Output a pretty error message.
"resolveJsonModule": true, // Enable parsing of the JSON module.
"skipLibCheck": true, // Skip type checking of type libraries.
"strict": true, // Enable strict type checking, including enabling all strict options.
"traceResolution": false, // Whether to trace the module resolution process.
"types": ["node", "jest"], // Specifies the name of the type declaration file to include.
"noImplicitOverride": true,
"typeRoots": ["node_modules/@types", "src/types", "test/types"]
},
"compileOnSave": false, // Whether to automatically compile when saving.
"exclude": ["node_modules", "dist"], // Specify files or directories that should not be included in the compilation.
}