-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
71 lines (67 loc) · 2.67 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
71
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
// BEGIN copy from .svelte-kit/tsconfig.json, relatively adjust all paths
"rootDirs": [".", "./.svelte-kit/types"],
"verbatimModuleSyntax": true,
"isolatedModules": true,
"lib": ["esnext", "DOM", "DOM.Iterable"],
"moduleResolution": "Bundler", // note the correctly Capitalized "Bundler".
"module": "esnext",
"noEmit": true,
"target": "esnext",
// END copy from .svelte-kit/tsconfig.json
// BEGIN override .svelte-kit/tsconfig.json
"baseUrl": ".",
// ? "module": "CommonJS", // For working with CJS
"paths": {
"$app/*": ["./node_modules/@sveltejs/kit/src/runtime/app/*"], // Added for $app ESLint
"$env/*": ["./node_modules/@sveltejs/kit/src/runtime/env/*"], // Added for $env ESLint
"$lib": ["./src/lib"],
"$lib/*": ["./src/lib/*"],
// These are needed for eslint import-x:
"virtual:icons/images/*": ["./src/lib/images/*"],
"virtual:pwa-info": ["./node_modules/vite-plugin-pwa/info.d.ts"],
"virtual:pwa-register/svelte": ["./node_modules/vite-plugin-pwa/svelte.d.ts"]
// "virtual:pwa-assets/head": ["./node_modules/vite-plugin-pwa/pwa-assets.d.ts"],
// "virtual:pwa-assets/icons": ["./node_modules/vite-plugin-pwa/pwa-assets.d.ts"]
// ? "@vite-pwa/sveltekit": ["./node_modules/@vite-pwa/sveltekit/dist"],
// "*": ["*", "./node_modules/@types/*", "./node_modules/@vite-pwa/sveltekit/*"]
},
// END override .svelte-kit/tsconfig.json
"types": ["vitest/globals"],
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
// "allowSyntheticDefaultImports": true,
"noErrorTruncation": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"outDir": ".types"
},
"files": ["./types.d.ts"], // Fix type-less packages in "types.d.ts"
"exclude": [
// BEGIN copy from .svelte-kit/tsconfig.json, relatively adjust all paths
"./node_modules/**",
"./src/sw.js",
// END copy from .svelte-kit/tsconfig.json
"./.svelte-kit/[!ambient.d.ts]**",
"./.trunk/**",
"./.types",
"./src-tauri/target/**",
"./android/**",
"./ios/**",
"./storybook-static/**",
"./dev-dist/**",
"./coverage/**",
"./.storybook/**"
]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}