-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
34 lines (34 loc) · 1.98 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
{
"compilerOptions": {
"target": "ESNext", // Modern JavaScript target
"module": "ESNext", // Use ES module system
"lib": ["DOM", "DOM.Iterable", "ESNext"], // Include necessary libraries
"allowJs": true, // Allow JavaScript files
"skipLibCheck": true, // Skip type checking of declaration files
"esModuleInterop": true, // Enable compatibility with CommonJS modules
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"strict": true, // Enable all strict type-checking options
"forceConsistentCasingInFileNames": true, // Enforce consistent file naming
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statements
"moduleResolution": "node", // Use Node.js module resolution
"resolveJsonModule": true, // Include .json files as modules
"isolatedModules": true, // Ensure each file is treated as a separate module
"noEmit": true, // Do not emit outputs
"baseUrl": ".", // Base directory for non-relative module names
"paths": {
"@/*": ["src/*"] // Aliases for module imports
},
"typeRoots": ["./node_modules/@types", "./types"], // Specify type definition locations
"jsx": "react-jsx" // Use React JSX transform
},
"include": ["src", "tests"], // Files to be included
"exclude": ["node_modules", "dist"], // Files to be excluded
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.web.json"
}
]
}