-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
86 lines (82 loc) · 4.69 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
74
75
76
77
78
79
80
81
82
83
84
85
86
// {
// "compilerOptions": {
// /* Basic Options */
// "target": "ESNext", /* Specify ECMAScript target version */
// "module": "ESNext", /* Specify module code generation */
// "lib": ["ESNext"], /* Specify library files to be included */
// "types": ["bun-types"],
// "outDir": "./dist", /* Redirect output structure to the directory */
// "rootDir": "./", /* Specify the root directory of input files */
// "strict": true, /* Enable all strict type-checking options */
// "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules */
// "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file */
// /* Additional Checks */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type */
// "strictNullChecks": true, /* Enable strict null checks */
// "strictFunctionTypes": true, /* Ensure functions' parameter types are consistent */
// "strictPropertyInitialization": true, /* Ensure non-undefined class properties are initialized in the constructor */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file */
// /* Module Resolution Options */
// // "moduleResolution": "NodeNext", /* Choose the module resolution strategy */
// "baseUrl": "./", /* Base directory to resolve non-relative module names */
// // "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl' */
// // "*": ["node_modules/*"]
// // },
// /* Source Map Options */
// "sourceMap": true, /* Generate corresponding '.map' file */
// "inlineSourceMap": false, /* Emit a single source map with the JavaScript file */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file */
// /* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for decorators */
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators */
// },
// "include": ["src/**/*", "test/e2e.test.ts", "test/preparePackageAbi.ts", "test/utils/getAccount.ts"],
// "exclude": ["node_modules", "dist", "**/*.spec.ts"],
// }
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"esnext"
],
"module": "esnext",
"types": [
"bun-types"
],
// output .d.ts declaration files for consumers
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": true,
// output .js.map sourcemap files for consumers
"sourceMap": true,
"allowSyntheticDefaultImports": true,
// match output dir to input dir. e.g. dist/index instead of dist/src/index
"rootDir": "./src",
"outDir": "./dist",
"allowImportingTsExtensions": true,
// stricter type-checking for stronger correctness. Recommended by TS
"strict": true,
// linter checks for common issues
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// noUnused* overlap with @typescript-eslint/no-unused-vars, can disable if duplicative
"noUnusedLocals": true,
"noUnusedParameters": true,
// use Node's module resolution algorithm, instead of the legacy TS one
"moduleResolution": "node",
// interop between ESM and CJS modules. Recommended by TS
"esModuleInterop": true,
// significant perf increase by skipping checking .d.ts files, particularly those in node_modules. Recommended by TS
"skipLibCheck": true,
// error out if import and file system have a casing mismatch. Recommended by TS
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"composite": true,
"baseUrl": "." /* Skip type checking all .d.ts files. */
},
"include": [
"src",
"src/.gen/**/*"
]
}