-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
47 lines (47 loc) · 1.82 KB
/
tsconfig.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
36
37
38
39
40
41
42
43
44
45
46
47
{
"compilerOptions": {
// Specifies the ECMAScript target version (latest features).
"target": "ESNext",
// An array of library files to include in the compilation.
"lib": ["ESNext"],
// Custom vitest typings
"types": ["vitest/globals"],
// Allows JavaScript files to be included in the project.
"allowJs": true,
// Skips type checking of declaration files.
"skipLibCheck": true,
// Enables all strict type-checking options.
"strict": true,
// Prevents TypeScript from emitting output files (e.g., JavaScript files).
"noEmit": true,
// Ensures that the casing of referenced file names matches the casing of the actual file.
"forceConsistentCasingInFileNames": true,
// Generates corresponding `.d.ts` files for TypeScript files.
"declaration": false,
// Allows default imports from modules with no default export.
"esModuleInterop": true,
// Specifies the module code generation.
"module": "ESNext",
// Specifies how modules are resolved.
"moduleResolution": "Node",
// Enables experimental support for decorators.
"experimentalDecorators": true,
// Enables the metadata reflection for decorators.
"emitDecoratorMetadata": true,
// Allows importing JSON files as modules.
"resolveJsonModule": true,
// Transforms each file as a separate module, which can help catch more errors.
"isolatedModules": true,
// Specifies the base directory for resolving non-relative module names.
"baseUrl": "./src",
// Defines path mappings for module names.
"paths": {
"@typings/*": ["shared/typings/*"],
"@utils/*": ["shared/utils/*"]
}
},
// Specifies the files to include in the compilation.
"include": ["src/**/*.ts"],
// Specifies files to be excluded from the compilation.
"exclude": ["node_modules"]
}