-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (38 loc) · 1.42 KB
/
tsconfig.json
File metadata and controls
44 lines (38 loc) · 1.42 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
{
"compilerOptions": {
// Project structure
"rootDir": ".",
"outDir": "./dist",
"module": "esnext",
"target": "esnext",
"declaration": true, // Generate .d.ts files
"declarationDir": "./dist/types",
"emitDeclarationOnly": true,
"declarationMap": true,
// Type safety & strictness
"strict": true, // Enable all strict type checks
"noUncheckedIndexedAccess": true, // Add undefined to indexed access types
"exactOptionalPropertyTypes": true, // Optional properties are exactly optional
// Interop & module resolution
"esModuleInterop": true, // Allow default imports from CommonJS
"verbatimModuleSyntax": true, // Use import/export syntax as written
"moduleResolution": "bundler",
"moduleDetection": "force", // Only treat files with import/export as modules
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUncheckedSideEffectImports": true, // Warn on imports with side effects
"skipLibCheck": true, // Skip type checking of declaration files
// Types (empty unless you want to include global types)
"types": ["svelte"],
// Paths
"baseUrl": ".",
"paths": {
"$lib/*": ["./src/lib/*"],
"$features/*": ["./src/lib/features/*"],
"$ui/*": ["./src/lib/components/ui/*"]
}
},
"include": ["src", "svelte.config.js"],
"exclude": ["node_modules", "dist", "docs"]
}