-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtsconfig.json
More file actions
53 lines (45 loc) · 1.2 KB
/
tsconfig.json
File metadata and controls
53 lines (45 loc) · 1.2 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
45
46
47
48
49
50
51
52
53
{
"compilerOptions": {
// Modern target and module
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
// Module resolution
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
// Type checking
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
// Emit
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"declarationDir": "./dist",
"removeComments": false,
// Interop
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
// Vue support
"jsx": "preserve",
"jsxImportSource": "vue",
// Paths
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
// Skip lib check for faster builds
"skipLibCheck": true,
// For Vue 3 compatibility
"types": ["node"]
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"exclude": ["node_modules", "dist", "src/nuxt/**"]
}