Skip to content

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

@MajorLift

Description

@MajorLift

What is this about?

Motivation

Currently, the ESLint config packages are approximately 3 years 4 years out of date (as of Jan 2025).

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 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

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

Metadata

Metadata

Assignees

Labels

contributor experienceAn issue that impacts, or planned improvement to, the contributor experience.release-12.18.0Issue or pull request that will be included in release 12.18.0release-12.20.0Issue or pull request that will be included in release 12.20.0release-12.23.0Issue or pull request that will be included in release 12.23.0release-13.0.0Issue or pull request that will be included in release 13.0.0 (also called 12.24.0)team-extension-platformExtension Platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions