-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
60 lines (60 loc) · 2.18 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
{
"compilerOptions": {
/**
* LANGUAGE AND ENVIRONMENT
**/
// Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
"target": "es2022",
// es2022 should support Node 16 and up. https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
// Specify a set of bundled library declaration files that describe the target runtime environment.
"lib": ["dom", "esnext"],
/**
* MODULES
**/
// Specify what module code is generated.
"module": "commonjs",
// Specify the root folder within your source files.
"rootDir": "./",
// Specify how TypeScript looks up a file from a given module specifier.
"moduleResolution": "node10",
/* JAVASCRIPT SUPPORT */
// Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
"allowJs": false,
/**
* EMIT
**/
// Generate .d.ts files from TypeScript and JavaScript files in your project.
"declaration": true,
// Create source map files for emitted JavaScript files.
"sourceMap": true,
// Specify an output folder for all emitted files.
"outDir": "./dist",
/**
* INTEROP CONSTRAINTS
**/
// Ensure that each file can be safely transpiled without relying on other imports.
"isolatedModules": 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 local variables aren't read.
"noUnusedLocals": true,
// Raise an error when a function parameter isn't read.
"noUnusedParameters": true,
/**
* COMPLETENESS
**/
// Skip type checking all .d.ts files.
"skipLibCheck": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}