MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
12.08k stars 4.93k forks source link

chore: Bump `@metamask/eslint-config-typescript` to latest #23528

Open MajorLift opened 8 months ago

MajorLift commented 8 months ago

What is this about?

Motivation

Currently, the ESLint config packages are approximately 3 years out of date.

Out of these, upgrading the @metamask/eslint-config-typescript configuration needs to be prioritized due to the ongoing TypeScript conversion efforts. There are a number of breaking changes in the intervening versions that should be applied to incoming TypeScript code as they encourage important best practices.

The number of errors that need to be fixed in order to make this update work is already significant. Postponing this task further will only worsen this problem.

Requirements

  1. For rules that are auto-fixable or have applicable suggestions, resolve errors/warnings in the same PR.
  2. For some rules, it may be important to ensure that new violations are not introduced into the codebase, but fixing the existing violations is lower priority or too high-effort. In such cases, mark existing violations with an eslint-disable directive and TODO comment.
  3. Disable non-auto fixable rules in the ESLint config file with a comment indicating that they should be re-enabled.
  4. Write tickets for re-enabling these rules.
  5. (Write tickets for bumping other ESLint packages in the extension).

Status

Current violations for the up-to-date version of @metamask/eslint-config-typescript:

Screenshot 2024-03-15 at 3 38 56 PM

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

References

No response

desi commented 8 months ago

@danjm and @gauthierpetetin Is this something you all could take on as part of your typescript conversion work?

gauthierpetetin commented 8 months ago

Hi @desi , it's now added to the list of possible tactics for our Q2 O2KR4.