-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
25 lines (25 loc) · 1.26 KB
/
tsconfig.json
File metadata and controls
25 lines (25 loc) · 1.26 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
{
"compilerOptions": {
"target": "ES2018", // A bit more conservative than ES2020 for wider compatibility
"module": "ESNext",
"moduleResolution": "Node",
"jsx": "react-jsx",
"declaration": true, // Generates .d.ts files
"declarationDir": "./dist/types", // Output directory for type declarations
"sourceMap": true, // Generate source maps for debugging
"outDir": "./dist", // Output directory for compiled files
"esModuleInterop": true, // Add this for better interop with CommonJS
"allowSyntheticDefaultImports": true,
"importHelpers": true, // Use tslib to reduce bundle size
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"noImplicitAny": true, // Additional type safety
"noUnusedLocals": true, // Enforce cleaner code
"noUnusedParameters": true, // Enforce cleaner code
"noImplicitReturns": true, // Additional type safety
"noFallthroughCasesInSwitch": true // Additional type safety
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "stories", "**/*.stories.tsx", "**/*.test.tsx", "docs"]
}