-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
30 lines (30 loc) · 1.27 KB
/
tsconfig.json
File metadata and controls
30 lines (30 loc) · 1.27 KB
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
{
"compilerOptions": {
"target": "ESNext", // Target JS version
"module": "ESNext", // Use ES modules
"outDir": "dist", // Output directory for compiled files
"rootDir": "src", // Root directory for the source files
"declaration": true, // Generate .d.ts files
"declarationMap": false, // Disable source maps for declarations
"emitDeclarationOnly": false, // Emit both .js and .d.ts files
"strict": true, // Enable strict type-checking
"esModuleInterop": true, // Allow interop with CommonJS
"skipLibCheck": true, // Skip type checks on libraries
"forceConsistentCasingInFileNames": true, // Enforce consistent casing in file names
"baseUrl": "./src",
"paths": {
"@models/*": ["models/*"],
"@utils/*": ["utils/*"],
"@services/*": ["services/*"]
},
"verbatimModuleSyntax": true, // prevents importing types without using `import type`
"noUnusedLocals": true,
"noUnusedParameters": true,
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/types/*.d.ts",
],
"exclude": ["node_modules", "dist", "tests"], // Exclude node_modules and dist,
}