-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
42 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ | |
# typescript | ||
*.tsbuildinfo | ||
|
||
# @wagmi/cli | ||
test/generated.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ yarn-error.log* | |
*.tsbuildinfo | ||
|
||
# @wagmi/cli | ||
src/generated.ts | ||
src/test/generated.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
{ | ||
// This tsconfig file contains the shared config for the build (tsconfig.build.json) and type checking (tsconfig.json) config. | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"lib": [ | ||
"esnext" | ||
], | ||
"module": "esnext", | ||
"moduleResolution": "Node", | ||
"isolatedModules": true, | ||
"incremental": true, | ||
"allowUnreachableCode": false, | ||
"skipLibCheck": false, | ||
"allowUnusedLabels": false, | ||
"alwaysStrict": true, | ||
// Type checking | ||
"strict": true, | ||
"useDefineForClassFields": true, // Not enabled by default in `strict` mode unless we bump `target` to ES2022. | ||
"noFallthroughCasesInSwitch": true, // Not enabled by default in `strict` mode. | ||
"noImplicitReturns": true, // Not enabled by default in `strict` mode. | ||
"useUnknownInCatchVariables": true, // TODO: This would normally be enabled in `strict` mode but would require some adjustments to the codebase. | ||
"noImplicitOverride": true, // Not enabled by default in `strict` mode. | ||
"noUnusedLocals": true, // Not enabled by default in `strict` mode. | ||
"noUnusedParameters": true, // Not enabled by default in `strict` mode. | ||
"exactOptionalPropertyTypes": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitOverride": true, | ||
"noImplicitThis": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"strict": true | ||
// JavaScript support | ||
"allowJs": false, | ||
"checkJs": false, | ||
// Interop constraints | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"verbatimModuleSyntax": true, | ||
"importHelpers": true, // This is only used for build validation. Since we do not have `tslib` installed, this will fail if we accidentally make use of anything that'd require injection of helpers. | ||
"resolveJsonModule":true, | ||
// Language and environment | ||
"moduleResolution": "NodeNext", | ||
"module": "ESNext", | ||
"target": "ES2021", // Setting this to `ES2021` enables native support for `Node v16+`: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping. | ||
"lib": [ | ||
"ES2022" | ||
], | ||
// Skip type checking for node modules | ||
"skipLibCheck": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters