forked from Gabb-c/pokenode-ts
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
52 lines (52 loc) · 2.08 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
48
49
50
51
52
{
"compilerOptions": {
// Specifies the ECMAScript target version (latest features).
"target": "ESNext",
// An array of library files to include in the compilation.
"lib": ["ESNext"],
// Vitest globals
"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,
// Adds `undefined` to the type of an indexing operation for possibly undefined objects.
"noUncheckedIndexedAccess": 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": "Bundler",
// 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": ".",
// Defines path mappings for module names.
"paths": {
"@clients": ["src/clients/index.ts"],
"@config/*": ["src/config/*"],
"@constants": ["src/constants/index.ts"],
"@models": ["src/models/index.ts"],
"@package": ["package.json"]
}
},
// Specifies the files to include in the compilation.
"include": ["src/**/*.ts", "tests/**/*.ts"],
// Specifies files to be excluded from the compilation.
"exclude": ["node_modules"]
}