Skip to content

devDeps: upgrade eslint & friends#1277

Closed
legobeat wants to merge 29 commits intoMetaMask:mainfrom
legobeat:devdeps-eslint
Closed

devDeps: upgrade eslint & friends#1277
legobeat wants to merge 29 commits intoMetaMask:mainfrom
legobeat:devdeps-eslint

Conversation

@legobeat
Copy link
Copy Markdown
Contributor

@legobeat legobeat commented Apr 27, 2023

Description

  • Bump eslint, plugins & configs
  • apply lint:fix, address remaining lint errors

Changes

  • CHANGED: devDeps: eslint@7.24.0->8.39.0
  • CHANGED: devDeps: bump eslint-related dependencies
  • FIXED: Async code handling in some packages
  • FIXED: Marked dangling promises with // TODO
  • FIXED: Type updates

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 27, 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.

Ignoring: builtins@5.0.1, eslint-plugin-n@15.7.0

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

@legobeat legobeat marked this pull request as ready for review April 27, 2023 07:16
@legobeat legobeat requested a review from a team as a code owner April 27, 2023 07:16
@legobeat legobeat marked this pull request as draft April 27, 2023 07:17
@mcmire
Copy link
Copy Markdown
Contributor

mcmire commented Apr 27, 2023

@legobeat Thank you for doing this. I'm assuming this supercedes #1014?

@legobeat
Copy link
Copy Markdown
Contributor Author

legobeat commented Apr 27, 2023

@mcmire Yes, it's an ongoing attempt at redoing the same effort from scratch with less changes to code.

Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Would love to see this merged! Left a couple of comments.

{
files: ['*.js'],
parserOptions: {
project: ['./tsconfig.packages.json'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm. tsconfig.packages.json is intended to be the parent for each package-level tsconfig, so using it directly like this seems wrong to me. Was there a reason why the root tsconfig file doesn't work?

tsconfig.json Outdated
"strictNullChecks": true
},
"parserOptions": {
"project": ["./tsconfig.json"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you mean to put this in .eslintrc.js?

@socket-security
Copy link
Copy Markdown

@legobeat
Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore builtins@5.0.1
@SocketSecurity ignore eslint-plugin-n@15.7.0

@legobeat legobeat force-pushed the devdeps-eslint branch 2 times, most recently from 0583489 to d189c23 Compare July 13, 2023 05:13
@legobeat legobeat mentioned this pull request Jul 13, 2023
3 tasks
@legobeat
Copy link
Copy Markdown
Contributor Author

Closed in favor of #1498, which retains the same eslintrc.js as here, but without overly eager lint:fix changes .

@legobeat legobeat closed this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants