forked from ideaLighthouse4661/SV_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
55 lines (47 loc) · 1.87 KB
/
tsconfig.json
File metadata and controls
55 lines (47 loc) · 1.87 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
54
55
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler", // which module resolution strategy to use
"target": "ESNext", // which level of JS support to target
"module": "ESNext", // which module system to use
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
* `import type` instead of `import` for Types.
*/
"isolatedModules": true, // use an isolated module
"resolveJsonModule": true, // resolve .json files
/**
* To have warnings / errors of the Svelte compiler at the
* correct position, enable source maps by default.
*/
"sourceMap": true, // generate source maps
"esModuleInterop": true, // emit ECMAScript Module
"skipLibCheck": true, // skip type checking of lib files
/**
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable this if you'd like to use dynamic types.
*/
"checkJs": true, // check javascript files
"allowJs": true, // allow javascript files
"strict": true, //enforce strict type checking
"emitDecoratorMetadata": false, // emit decorator metadata
"forceConsistentCasingInFileNames": true, // force consistent casing in file names
"noErrorTruncation": true, // do not truncate error messages
"types": ["@sveltejs/kit"], // add types
//"types": ["bun-types"],
"noImplicitAny": false,
"outDir": "../build"
},
/**
* Use global.d.ts instead of compilerOptions.types
* to avoid limiting type declarations.
*/
"includes": ["src/**/*.ts", "src/**/*.svelte", "types/**/*.ts"],
"noUnusedLocals": true,
"noUnusedParameters": true
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
//
// 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
}