-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (43 loc) · 2.15 KB
/
tsconfig.json
File metadata and controls
43 lines (43 loc) · 2.15 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
{
"compilerOptions": {
// Basic Options
"target": "ES2015", // Modern enough for browser compatibility
"module": "ESNext", // Use native ES modules for output
"lib": ["ES2015", "DOM", "DOM.Iterable"], // Specify the library to include in the compilation
"moduleResolution": "node", // Resolve modules in a Node.js-style
"baseUrl": ".", // Set the base URL for resolving imports
"paths": {
"@/*": ["src/*"], // Map aliases to source files
"eleva": ["src/index.js"],
"eleva/*": ["src/*"]
},
"rootDir": "./src", // Root directory for source files
"outDir": "./types", // Output directory for declaration files
// Type Checking
"strict": true, // Enable all strict type-checking options
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
"forceConsistentCasingInFileNames": true, // Ensure consistent casing in module imports
"skipLibCheck": true, // Skip type checking of declaration files from dependencies
"isolatedModules": true, // Enable isolated modules
// JavaScript Support
"allowJs": true, // Allow compiling JavaScript files
"checkJs": false, // Enable type checking on .js files using JSDoc
// Module Resolution
"esModuleInterop": true, // Enable compatibility with CommonJS modules
"allowSyntheticDefaultImports": true, // Allow default imports from CommonJS modules
"resolveJsonModule": true, // Enable JSON module resolution
// Emit Configuration
"declaration": true, // Generate declaration (.d.ts) files
"declarationMap": true, // Create sourcemaps for declarations for easier debugging
"sourceMap": true, // Generate source maps
"emitDeclarationOnly": true, // Only emit declarations (since the build is handled by Rollup)
"noEmit": false, // Emit output files
// Additional Checks
"verbatimModuleSyntax": true, // Allow the use of the module keyword in import paths
},
"include": [
"src/**/*" // Include all JavaScript source files in the src directory
],
"exclude": ["node_modules", "dist", "test"] // Exclude node_modules, dist, and test directories
}