-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
42 lines (42 loc) · 1.66 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
{
// The files to include in the compilation
"include": ["src/**/*"],
// Files to exclude from the compilation
"exclude": ["node_modules/**/*"],
// Compiler options
"compilerOptions": {
// Enable all strict type-checking options
"strict": true,
// Choose the module system to use. Note that 'preserve' is not supported by
// vite-plugin-dts
"module": "ESNext",
// The module-resolution strategy to use. Using 'bundler' avoids issues with
// missing file-extensions in imported files.
"moduleResolution": "bundler",
// The version of ES that we will be writing code in.
"lib": ["ESNext"],
// The version of ES the code is compiled to. Note that no pollyfills are
// added during compilation.
"target": "ES2020",
// Should a sourcemap be generated for the compiled code?
"sourceMap": true,
// Improve compatability with ES module imports
"esModuleInterop": true,
// Ensure casings in import are consistent
"forceConsistentCasingInFileNames": true,
// Relax type-checking for third-party libraries
"skipLibCheck": true,
// Use 'unknown' for variables in catch clauses
"useUnknownInCatchVariables": false,
// Dirs to look in for type definitions
"typeRoots": ["./src/@types", "./node_modules/@types"],
// Generate declaration files when compiling. Note that we use
// vite-plugin-dts to consolidate all declaration files to a single file
"declaration": true,
// Throw if there is an error during build
"noEmitOnError": true,
// Don't emit files during build. Vite will override this but it means we
// can still run tsc for checking.
"noEmit": true
}
}