-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
45 lines (39 loc) · 2.49 KB
/
tsconfig.json
File metadata and controls
45 lines (39 loc) · 2.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
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"compilerOptions": {
/* Basic Options */
"target": "esnext", // Specify ECMAScript target version
"module": "esnext",
"types": ["node"], // Specify module code generation
"moduleResolution": "node", // Use Node.js module resolution
"lib": ["esnext", "dom"], // Specify library files to include
"jsx": "react-jsx", // Specify JSX code generation
/* Strict Type-Checking Options */
"strict": true, // Enable all strict type-checking options
"noImplicitAny": true, // Raise error on expressions with an implied `any` type
"strictNullChecks": true, // Enable strict null checks
"strictFunctionTypes": true, // Enable strict checking of function types
"strictBindCallApply": true, // Enable strict checking of `bind`, `call`, and `apply` methods
"noImplicitThis": true, // Raise error on `this` expressions with an implied `any` type
"alwaysStrict": true, // Parse in strict mode and emit `"use strict"` for each source file
/* Module Resolution Options */
"esModuleInterop": true, // Emit additional code to ease CommonJS interop
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"baseUrl": "./", // Base directory for non-relative module names
"paths": { // Path mapping
"@/*": ["src/*"]
},
/* Output Options */
"outDir": "./dist", // Redirect output structure to the `dist` directory
"removeComments": true, // Do not emit comments in output
/* Source Map Options */
"sourceMap": true, // Generate source map files
/* Include JavaScript Files */
"allowJs": true, // Allow JavaScript files to be compiled
"checkJs": false, // Disable type-checking in JavaScript files
/* Skip Type Checking for Node Modules */
"skipLibCheck": true, // Skip type checking of declaration files
"forceConsistentCasingInFileNames": true // Ensure consistent file casing
},
"include": ["src/**/*"], // Files or directories to include in the program
"exclude": ["node_modules", "dist"] // Files or directories to exclude from the program
}