-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
69 lines (61 loc) · 3.75 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
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Language and Environment */
"target": "es2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
/* Modules */
"module": "commonjs" /* Specify what module code is generated. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
"resolveJsonModule": true,
"esModuleInterop": true,
/* Emit */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
/* Interop Constraints */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
"strictNullChecks": true /* When type checking, take into account 'null' and 'undefined'. */,
"strictPropertyInitialization": false /* Check for class properties that are declared but not set in the constructor. */,
"strictFunctionTypes": true /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */,
"strictBindCallApply": true /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */,
"alwaysStrict": true /* Ensure 'use strict' is always emitted. */,
"noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
"noImplicitReturns": true /* Enable error reporting for codepaths that do not explicitly return in a function. */,
"noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
"noImplicitOverride": true /* Ensure overriding members in derived classes are marked with an override modifier. */,
"noImplicitThis": true /* Enable error reporting when 'this' is given the type 'any'. */,
"noUncheckedIndexedAccess": true /* Add 'undefined' to a type when accessed using an index. */,
"noPropertyAccessFromIndexSignature": true /* Enforces using indexed accessors for keys declared using an indexed type. */,
"noFallthroughCasesInSwitch": true /* Enable error reporting for fallthrough cases in switch statements. */,
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
/* Completeness */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
/* Internal-use: package paths */
"paths": {
"substrate/*": ["./src/*"],
"substrate": ["./src/index.ts"]
}
},
/**
* Internal-use: running example scripts
* We're mostly developing on es2022/Node 18+, but to extend that support a bit futher
* back our main compiler options are overridden when running with ts-node to use newer
* syntax, eg. top-level await.
*/
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node",
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "node",
"esModuleInterop": true
}
}
}