-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
70 lines (66 loc) · 1.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
// Some options used in: https://www.totaltypescript.com/tsconfig-cheat-sheet
"compilerOptions": {
// Base options
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
// Since it's build with Vite, target is not used
"target": "ESNext",
"allowJs": false,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true, // specified in vue.js docs
"verbatimModuleSyntax": true,
// Strictness
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitAny": true,
"noImplicitOverride": true,
// Transpiling
"outDir": "dist",
"module": "esnext",
"moduleResolution": "bundler",
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
// JSX
"jsx": "preserve",
"jsxImportSource": "vue",
// Other
"paths": {
"@/*": [
"./resources/js/*"
],
"ziggy-js": [
"./vendor/tightenco/ziggy"
]
},
"types": [
"vite/client",
"unplugin-vue-define-options/macros-global",
"@microsoft/microsoft-graph-types",
"vitest/globals",
"unplugin-icons/types/vue",
"vite-plugin-ziggy/routes"
],
"sourceMap": true,
"baseUrl": ".",
// For `<script setup>`
// See <https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#preserve-value-imports>
"preserveValueImports": true,
// ???
//"noEmit": true,
//"skipLibCheck": true,
//"forceConsistentCasingInFileNames": true,
///
// Enforce using `import type` instead of `import` for types
"importsNotUsedAsValues": "error"
},
"exclude": [
"./node_modules/**/*",
"./public/**/*",
"**/*.stories.ts"
]
}