-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
38 lines (36 loc) · 2.05 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
{
"compilerOptions": {
/* Basic Options */
"target": "es2020", // Specify ECMAScript target version
"module": "ESNext", // Specify module code generation
"lib": ["es2020"], // Specify library files to be included in the compilation
"types": ["node"], // Specify type package to be included in the compilation
"outDir": "./dist", // Redirect output structure to the directory
"rootDir": "./", // Specify the root directory of input files
"strict": true, // Enable all strict type-checking options
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules
"skipLibCheck": true, // Skip type checking of declaration files
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file
/* Additional Checks */
"noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type
"strictNullChecks": true, // Enable strict null checks
"strictFunctionTypes": true, // Enable strict checking of function types
"strictBindCallApply": true, // Enable strict 'bind', 'call', and 'apply' methods on functions
"noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
/* Module Resolution Options */
"moduleResolution": "node", // Choose the module resolution strategy
"resolveJsonModule": true, // Include modules imported with '.json' extension
"typeRoots": ["node_modules/@types", "tests/types"], // List of folders to include type definitions
},
"ts-node": {
// these options are overrides used only by ts-node
// same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
}
},
"include": ["src/**/*", "tests/**/*", "examples/**/*"], // Include all files in the src folder
"exclude": ["node_modules", "dist"], // Exclude node_modules and dist directories
}