-
-
Notifications
You must be signed in to change notification settings - Fork 22
update eslint and other packages to be aligned with core monorepo #66
Conversation
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @metamask/eslint-config@9.0.0, eslint@7.32.0, eslint-plugin-node@11.1.0 |
|
👍 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. |
src/index.test.ts
Outdated
| 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"]}] */ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
mikesposito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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>