-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtsconfig.json
44 lines (44 loc) · 1.74 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
35
36
37
38
39
40
41
42
43
44
{
"compilerOptions": {
"target": "ESNext", // ECMAScript target version
"lib": [
"ESNext", // Standard library to use
// "DOM.Iterable",
// "DOM",
],
"moduleDetection": "force",
"jsx": "react-jsx", // JSX compilation style
// "jsxImportSource": "hono/jsx",
"module": "ESNext", // Module code generation method
"moduleResolution": "bundler", // How to resolve modules
"types": [
// "./.wrangler/types/runtime", // Cloudflare Workers runtime types
// "@cloudflare/workers-types", // Cloudflare Workers API types
// "./runtime.d.ts"
"bun-types", // Bun runtime types
"hono", // Hono framework types
"@cloudflare/workers-types/2023-07-01"
],
"resolveJsonModule": true, // Enable importing .json files
"esModuleInterop": true, // Allow default imports for CommonJS modules
"allowJs": true, // Allow importing `.js` from `.ts`
"checkJs": false, // Don't type-check .js files
"noEmit": true, // Don't output files
"isolatedModules": true, // Ensure each file can be safely transpiled
"allowSyntheticDefaultImports": true, // Allow 'import x from y' when module has no default export
"forceConsistentCasingInFileNames": true, // Ensure consistent casing in file names
"strict": true, // Enable all strict type checking options
"skipLibCheck": true, // Skip type checking of declaration files
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"baseUrl": "./", // Base directory for resolving non-relative module names
"paths": {
"@/*": [ // Path alias configuration
"./src/*"
]
}
}