-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
73 lines (61 loc) · 2.54 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
72
73
/**
* tsconfig.json
*
* Description :
* Typescript Configuration file. Visit https://aka.ms/tsconfig.json
* to read more about this file.
*
*/
{
"compilerOptions": {
// -- Language and Environment --
// Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
"target": "ES2021",
// Specify a set of bundled library declaration files that describe the target runtime environment.
"lib": ["dom", "esnext"],
// Specify what JSX code is generated.
"jsx": "react-jsx",
// -- Modules --
// Specify what module code is generated.
"module": "CommonJS",
// Specify how TypeScript looks up a file from a given module specifier.
"moduleResolution": "node",
// Specify the base directory to resolve non-relative module names.
"baseUrl": "./src",
// Enable importing .json files
"resolveJsonModule": true,
// -- JavaScript Support --
// Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.
"allowJs": true,
// -- Emit --
// Generate .d.ts files from TypeScript and JavaScript files in your project.
"declaration": true,
// Create sourcemaps for d.ts files.
"declarationMap": true,
// Create source map files for emitted JavaScript files.
"sourceMap": true,
// Specify an output folder for all emitted files.
"outDir": "release/app/dist",
// -- Interop Constraints --
// Allow 'import x from y' when a module doesn't have a default export.
"allowSyntheticDefaultImports": true,
// Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
"esModuleInterop": true,
// Ensure that casing is correct in imports.
"forceConsistentCasingInFileNames": true,
// -- Type Checking --
// Enable all strict type-checking options.
"strict": true,
// Enable error reporting for expressions and declarations with an implied `any` type..
"noImplicitAny": true,
// Enable error reporting when a local variables aren't read.
"noUnusedLocals": true,
// Raise an error when a function parameter isn't read
"noUnusedParameters": true,
// Enable error reporting for codepaths that do not explicitly return in a function.
"noImplicitReturns": true,
// Enable error reporting for fallthrough cases in switch statements.
"noFallthroughCasesInSwitch": true
},
"exclude": ["release/build", "release/app/dist", ".config/dll"]
}