-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update @thesis-co/eslint-config to the latest 0.8.0-pre version (#98)
Update `@thesis-co/eslint-config` to the latest version. The commit hash refers to the merge commit of thesis/eslint-config#12. This version enables `@typescript-eslint/recommended-type-checked` rules. The configuration enforces multiple typing check rules that I found very useful in the core module's typescript tests, where we were missing `await` in a couple of places. Example: ```ts it("should emit StakeReferral event", () => { expect(tx) .to.emit(acre, "StakeReferral") .withArgs(referral, amountToStake) }) ``` Without the `await` the test returned a false-positive result and hadn't checked if expect resolves correctly.⚠️ Typing checks in the Core module require `typechain/` directory to be generated before eslint verification is run. It is recommended that on local environments `pnpm run build` is run before `pnpm run format`. In this PR we update the CI process accordingly. This PR updates the configuration of the Core, SDK, and Website modules. This PR doesn't update the configuration of the dApp module, we should handle that in #99.
- Loading branch information
Showing
9 changed files
with
89 additions
and
36 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
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 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
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
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