-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
49 lines (42 loc) · 2.64 KB
/
tsconfig.json
File metadata and controls
49 lines (42 loc) · 2.64 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
46
47
48
49
{
"compilerOptions": {
/* Basic Options */
"target": "ESNext", // Modern JavaScript output
"module": "ESNext", // ES Module system
"lib": ["DOM", "DOM.Iterable", "ESNext"], // Include browser environment
"jsx": "react-jsx", // Supports the new JSX Transform
/* Strict Type-Checking Options */
"strict": true, // Enable all strict type-checking options
"noImplicitAny": true, // Raise error on expressions and declarations with an implied `any` type
"strictNullChecks": true, // Ensure `null` and `undefined` are only assignable to themselves
"strictFunctionTypes": true, // Ensure parameters in function types have correct variance
"strictBindCallApply": true, // Ensure `this` is correct in methods
/* Module Resolution Options */
"moduleResolution": "node", // Use Node.js module resolution strategy
"esModuleInterop": true, // Enables ESModule interop between CommonJS and ES Modules
"resolveJsonModule": true, // Allows importing JSON files
"allowSyntheticDefaultImports": true, // Enables default import syntax for modules without a default export
/* Paths */
"baseUrl": "./", // Base directory for resolving paths
"paths": {
"@components/*": ["src/components/*"], // Alias for component directory
"@utils/*": ["src/utils/*"] // Alias for utility functions
},
/* Additional Options */
"skipLibCheck": true, // Skip checking declaration files for faster builds
"forceConsistentCasingInFileNames": true, // Ensure file imports are case-sensitive
/* Emit Options */
"declaration": true, // Generate `.d.ts` declaration files
"emitDeclarationOnly": true,
"skipDefaultLibCheck": true,
"outDir": "dist", // Transpiled output directory
"sourceMap": true, // Include source maps for debugging
/* Tailwind CSS-related Settings */
"types": ["@types/react", "@types/node"], // Include necessary type definitions
/* Experimental Options */
"experimentalDecorators": true, // Enable experimental decorator support
"emitDecoratorMetadata": true // Emit metadata for decorators
},
"include": ["src"], // Include the `src` directory for type-checking
"exclude": ["node_modules", "dist", "types"] // Exclude unnecessary files
}