-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
53 lines (53 loc) · 1.9 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
{
// The files to include in the compilation
"include": ["src"],
// Files to exclude from the compilation
"exclude": ["node_modules/**/*"],
// Compiler options
"compilerOptions": {
// Allow js files to be included in the compilation
"allowJs": false,
// 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",
// APIs to support
"lib": ["ESNext", "DOM"],
// The version of ES the code is compiled to. Note that no polyfills are
// added during compilation.
"target": "ES2020",
// Should a sourcemap be generated for the compiled code?
"sourceMap": true,
// Improve compatibility 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": [
// Types for third-party libs that we have added
"./src/@types",
// Types for third-party libs from DefinitelyTyped
"./node_modules/@types",
// Types from node_modules, e.g. vite/client
"./node_modules"
], // Add additional types,
"types": ["vite/client"],
// Don't generate declaration files
"declaration": false,
// 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,
// Transform jsx
"jsx": "react-jsx"
}
}