metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

chore: update eslint v^8.44

Open tommasini opened this issue 1 year ago • 4 comments

Description

This PR aims to update eslint to match extension version and to support the typescript version on mobile and remove this warning:

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.4.5

There is some things that we need to do to finish this PR:

  • [ ] Solve new linter issues
  • [ ] Create a pr to @metamask/typescript-eslint-config repo removing a deprecated rule @typescript-eslint/no-parameter-properties
  • [ ] Remove the patch to @metamask/typescript-eslint-config
  • [ ] Consider keep or not the @babel/preset-react to the babel parser config to javascript files
  • [ ] Discover why app/selectors/accountTrackerController.test.tsx was triggering an issue on eslint
  • [ ] Discover why we still have eslint issues here: e2e/pages/Settings/AesCryptoTestForm.ts (maybe we just need to convert it to JS since every e2e file is on JS )

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

tommasini avatar Aug 28 '24 15:08 tommasini

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

github-actions[bot] avatar Aug 28 '24 15:08 github-actions[bot]

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

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] unsafe 0 215 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 114 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 31.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 11.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 70 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 78.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 144 kB nicolo-ribaudo
npm/@babel/[email protected] environment 0 2.48 MB nicolo-ribaudo
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 55.6 kB nzakas
npm/@humanwhocodes/[email protected] unsafe 0 21.2 kB nzakas
npm/@humanwhocodes/[email protected] None 0 23.3 kB nzakas
npm/@nicolo-ribaudo/[email protected] None 0 1.66 kB nicolo-ribaudo
npm/@react-native/[email protected] None 0 18.3 kB react-native-bot
npm/@react-native/[email protected] None 0 6.5 kB react-native-bot
npm/@types/[email protected] None 0 23.3 kB types
npm/@typescript-eslint/[email protected] None 0 2.83 MB jameshenry
npm/@typescript-eslint/[email protected] None 0 18.2 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 618 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 109 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 160 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 579 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 284 kB jameshenry
npm/@typescript-eslint/[email protected] None 0 19.4 kB jameshenry
npm/@ungap/[email protected] None 0 26.2 kB webreflection
npm/[email protected] None 0 538 kB marijn
npm/[email protected] None 0 22 kB doowb
npm/[email protected] None 0 19.9 kB lydell
npm/[email protected] None 0 505 kB brianzchen
npm/[email protected] filesystem 0 325 kB simenb
npm/[email protected] environment 0 118 kB react-bot
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] filesystem 0 21.8 kB sindresorhus
npm/[email protected] None 0 53.6 kB kael
npm/[email protected] None 0 50.2 kB gkz
npm/[email protected] None 0 10.1 kB nwoltman
npm/[email protected] None 0 8.61 kB nicolo-ribaudo
npm/[email protected] None 0 828 kB joshuakgoldberg
npm/[email protected] None 0 11.8 kB jonschlinkert

🚮 Removed packages: npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@eslint-community/[email protected]), npm/@metamask/[email protected]), npm/@react-native-community/[email protected]), npm/@react-native-community/[email protected]), npm/@types/[email protected]), npm/@types/[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/@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])

View full report↗︎

socket-security[bot] avatar Aug 28 '24 15:08 socket-security[bot]

👍 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: npm/[email protected]

View full report↗︎

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 ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

socket-security[bot] avatar Aug 28 '24 15:08 socket-security[bot]

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.75%. Comparing base (8dcdd3c) to head (fc21530). Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
...y/components/Icons/Icon/scripts/generate-assets.js 0.00% 1 Missing :warning:
...omponents/UI/CollectibleMedia/CollectibleMedia.tsx 0.00% 0 Missing and 1 partial :warning:
...rmations/components/EditGasFee1559Update/index.tsx 0.00% 0 Missing and 1 partial :warning:
app/core/MobilePortStream.js 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10865      +/-   ##
==========================================
- Coverage   52.75%   52.75%   -0.01%     
==========================================
  Files        1534     1540       +6     
  Lines       36777    36860      +83     
  Branches     4335     4357      +22     
==========================================
+ Hits        19403    19444      +41     
- Misses      16058    16094      +36     
- Partials     1316     1322       +6     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Aug 30 '24 16:08 codecov-commenter

@SocketSecurity ignore npm/[email protected] New Author: nicolo-ribaudo, Previous Author: mathias

leotm avatar Aug 30 '24 16:08 leotm

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: b27124a1ecdee18b3441a784a930c843a884aba7 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/654bc82e-5903-4985-a1d5-f41ab8db6042

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

github-actions[bot] avatar Sep 03 '24 13:09 github-actions[bot]

@brianacnguyen Video added! Thanks for bringing it up!

tommasini avatar Sep 06 '24 11:09 tommasini

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: be044bd2e2fbac632ce2cedfc058fe648d041d63 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8c120b8e-c5c0-451d-9da8-e5f49f06e9e3

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

github-actions[bot] avatar Sep 06 '24 11:09 github-actions[bot]