Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update lint tools versions + use ts 5 #55

Merged
merged 24 commits into from
Oct 1, 2024

Conversation

ccharly
Copy link
Collaborator

@ccharly ccharly commented Sep 24, 2024

Updating eslint and other similar packages.

@ccharly ccharly force-pushed the chore/update-lint-tools-versions branch from 371fbf7 to 2435299 Compare September 25, 2024 08:22
Copy link

socket-security bot commented Sep 25, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@es-joy/[email protected] None 0 113 kB brettz9
npm/@eslint-community/[email protected] None 0 446 kB eslint-community-bot
npm/@eslint/[email protected] filesystem, unsafe 0 659 kB eslintbot
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@humanwhocodes/[email protected] None 0 58.4 kB nzakas
npm/@humanwhocodes/[email protected] None 0 23.3 kB nzakas
npm/@metamask/[email protected] None 0 9.35 kB metamaskbot
npm/@metamask/[email protected] None 0 95.4 kB metamaskbot
npm/@metamask/[email protected] None 0 19.1 kB metamaskbot
npm/@metamask/[email protected] None 0 120 kB metamaskbot
npm/@pkgr/[email protected] None 0 8.54 kB jounqin
npm/@typescript-eslint/[email protected] None 0 2.65 MB bradzacher, jameshenry
npm/@typescript-eslint/[email protected] None 0 18.7 kB bradzacher, jameshenry
npm/@typescript-eslint/[email protected] None 0 602 kB bradzacher, jameshenry
npm/@typescript-eslint/[email protected] None 0 121 kB bradzacher, jameshenry
npm/@typescript-eslint/[email protected] None 0 171 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 587 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 283 kB bradzacher, jameshenry
npm/@typescript-eslint/[email protected] None 0 19.5 kB jameshenry
npm/@ungap/[email protected] None 0 26.2 kB webreflection
npm/[email protected] None 0 13.6 kB joshuakgoldberg
npm/[email protected] unsafe 0 4.51 kB sindresorhus
npm/[email protected] None 0 366 kB yavorskiys
npm/[email protected] None 0 9.75 kB sindresorhus
npm/[email protected] filesystem 0 53.1 kB ota-meshi
npm/[email protected] None 0 409 kB eslint-community-bot
npm/[email protected] None 0 638 kB jounqin
npm/[email protected] filesystem 0 325 kB simenb
npm/[email protected] filesystem 0 1.38 MB gajus
npm/[email protected] filesystem 0 348 kB weiran.zsd
npm/[email protected] None 0 72.5 kB eslint-community-bot
npm/[email protected] None 0 146 kB eslintbot
npm/[email protected] None 0 32.3 kB eslintbot
npm/[email protected] environment, filesystem 0 3.04 MB eslintbot
npm/[email protected] None 0 73.6 kB eslintbot
npm/[email protected] None 0 1.04 MB michaelficarra
npm/[email protected] None 0 4.54 kB sindresorhus
npm/[email protected] filesystem 0 105 kB hirokiosame
npm/[email protected] None 0 5.57 kB fisker
npm/[email protected] None 0 25.1 kB sindresorhus
npm/[email protected] None 0 3.88 kB sindresorhus
npm/[email protected] None 0 4.08 kB sindresorhus
npm/[email protected] None 0 242 kB jsdoc-type-pratt-parser
npm/[email protected] None 0 5.55 kB matzkoh
npm/[email protected] None 0 15 kB hirokiosame
npm/[email protected] None 0 33.3 kB keithamus
npm/[email protected] None 0 5.46 kB quietshu
npm/[email protected] None 0 3.91 kB sindresorhus
npm/[email protected] environment 0 55.7 kB jounqin
npm/[email protected] None 0 828 kB joshuakgoldberg
npm/[email protected] None 0 32.4 MB typescript-bot

🚮 Removed packages: npm/@es-joy/[email protected], npm/@eslint-community/[email protected], npm/@eslint/[email protected], npm/@eslint/[email protected], npm/@humanwhocodes/[email protected], npm/@humanwhocodes/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@ccharly ccharly force-pushed the chore/update-lint-tools-versions branch from 2435299 to 32704ca Compare September 27, 2024 07:30
@ccharly ccharly force-pushed the chore/update-lint-tools-versions branch from 32704ca to aae45b7 Compare September 27, 2024 07:31
@danroc danroc force-pushed the chore/update-lint-tools-versions branch from 7e43d4b to 4e2b067 Compare September 30, 2024 07:57
@danroc danroc force-pushed the chore/update-lint-tools-versions branch from 4e2b067 to 6f9a4a8 Compare September 30, 2024 08:15
@danroc danroc marked this pull request as ready for review September 30, 2024 08:19
@danroc danroc requested a review from a team as a code owner September 30, 2024 08:19
@ccharly ccharly changed the title chore: update lint tools versions chore: update lint tools versions + use ts 5 Sep 30, 2024
return this.bridge.destroy();
}

async serialize() {
async serialize(): Promise<Partial<LedgerBridgeKeyringOptions>> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this, but maybe we should have a dedicated type for the state here?

@@ -35,29 +40,36 @@ export class TrezorConnectBridge implements TrezorBridge {
this.trezorConnectInitiated = true;
}

dispose() {
async dispose(): Promise<void> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was not async but since it's returning a Promise it makes sense to make it async

@@ -116,14 +125,14 @@ export class TrezorKeyring extends EventEmitter {
return this.bridge.model;
}

init() {
async init(): Promise<void> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was not async but since it's returning a Promise it makes sense to make it async.

Also, the KeyringController is already awaiting those calls: https://github.com/MetaMask/core/blob/main/packages/keyring-controller/src/KeyringController.ts#L2199-L2201

/**
* EIP-712 Sign Typed Data
*/
// EIP-712 Sign Typed Data
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a simple comment here, since most of those method are using this pattern

@danroc danroc force-pushed the chore/update-lint-tools-versions branch from c5bda3a to 54eb2a9 Compare September 30, 2024 08:53
Copy link
Collaborator Author

@ccharly ccharly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did review (but cannot approve since I have some commits here). Left some comments with some open-questions + to explain some of the changes that were made by me.

Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, left a few comments

jest.config.packages.js Show resolved Hide resolved
packages/keyring-api/src/rpc-handler.ts Show resolved Hide resolved
packages/keyring-eth-ledger-bridge/src/ledger-keyring.ts Outdated Show resolved Hide resolved
Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits!

@ccharly ccharly force-pushed the chore/update-lint-tools-versions branch from c1696c4 to fff0e11 Compare October 1, 2024 13:46
@ccharly ccharly enabled auto-merge October 1, 2024 13:56
@ccharly ccharly added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit cb10ee6 Oct 1, 2024
24 checks passed
@ccharly ccharly deleted the chore/update-lint-tools-versions branch October 1, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants