-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
40 lines (36 loc) · 2.52 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
{
"compilerOptions": {
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": ["es2022"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
/* Modules */
"module": "CommonJS", /* Specify what module code is generated. */
"rootDir": "src", /* Specify the root folder within your source files. */
"resolveJsonModule": true,
"moduleResolution": "Node",
/* Enable importing .json files. */ /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
// "allowImportingTsExtensions": true, /* Allow importing .ts files even when they cannot be resolved. */
/* JavaScript Support */
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"inlineSourceMap": true, /* Disable emitting files from a compilation. */
"outDir": "build", /* Specify an output folder for all emitted files. */
/* Interop Constraints */
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"typeRoots": [
"node_modules/@types",
"src/types",
], /* Specify multiple folders that act like `./node_modules/@types`. */
},
"include": ["src/**/*.ts", "src/**/.d.ts"],
"exclude": ["node_modules/**",
"tests/**"
]
}