-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (29 loc) · 1.49 KB
/
tsconfig.json
File metadata and controls
32 lines (29 loc) · 1.49 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
31
32
{
"compilerOptions": {
"target": "ESNext", // Specifies the JavaScript version to target when transpiling code.
"lib": ["ESNext", "DOM", "DOM.Iterable"], // Specifies the libraries available for the code.
"module": "CommonJS", // Defines the module system to use for code generation.
"skipLibCheck": true, // Skips type checking of declaration files.
"useDefineForClassFields": true, // Enables the use of 'define' for class fields.
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
"types": ["bun-types"], // Added bun-types for bun:test support
"moduleResolution": "Node", // Specifies how modules are resolved when bundling.
"resolveJsonModule": true, // Enables importing JSON modules.
"isolatedModules": true, // Ensures each file is treated as a separate module.
"noEmit": false, // Prevents TypeScript from emitting output files.
"esModuleInterop": true,
/* Linting */
"strict": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": true, // Flags unused local variables.
"noUnusedParameters": true, // Flags unused function parameters.
"noFallthroughCasesInSwitch": true, // Requires handling all cases in a switch statement.
"declaration": true, // Generates declaration files for TypeScript.
"forceConsistentCasingInFileNames": true,
"outDir": "./dist"
},
"include": ["src"]
}