Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Conversation

@kanthesha
Copy link
Contributor

@kanthesha kanthesha commented Sep 21, 2023

We are in the process of migrating the json-rpc-middleware-stream repo to the core monorepo. Before the actual migration we would like to update the packages to be aligned with core monorepo.
This PR updates the eslint and other packages to be aligned with the core monorepo and which also required changes in the code to pass the lint.

Fixes <url-issue>

@socket-security
Copy link

socket-security bot commented Sep 21, 2023

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

@kanthesha kanthesha marked this pull request as ready for review September 22, 2023 10:21
@kanthesha kanthesha requested a review from a team as a code owner September 22, 2023 10:21
import { Duplex } from 'stream';
import { JsonRpcEngine } from '@metamask/json-rpc-engine';
import PortStream from 'extension-port-stream';
/* eslint import/no-nodejs-modules: ["error", {"allow": ["stream"]}] */
Copy link
Member

Choose a reason for hiding this comment

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

Nit: It might be better to disable this rule entirely for *.test.ts files, since using Node.js packages is OK in tests. That rule is intended to help keep the package portable across Node.js and web, which doesn't apply to tests of course.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The changes have been pushed.

Gudahtt
Gudahtt previously approved these changes Sep 22, 2023
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

LGTM!

@kanthesha kanthesha merged commit ac3e94f into main Sep 25, 2023
@kanthesha kanthesha deleted the update-eslint-packages branch September 25, 2023 08:31
@kanthesha kanthesha mentioned this pull request Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants