Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: downgrade prettier-eslint to match prettier version #26145

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Jul 25, 2024

Description

#23106 added a version of prettier-eslint which uses prettier v3. This project otherwise uses prettier v2. This downgrades the package to the latest version still supporting prettier v2.

Open in GitHub Codespaces

Related issues

Manual testing steps

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.

Copy link
Contributor

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.

@legobeat legobeat marked this pull request as ready for review July 25, 2024 21:53
@legobeat legobeat requested a review from a team as a code owner July 25, 2024 21:53
yarn.lock Outdated
@@ -34218,7 +34167,17 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.0.4, typescript@npm:^5.2.2, typescript@npm:~5.4.5":
"typescript@npm:^4.5.4":
version: 4.9.5
Copy link
Contributor Author

@legobeat legobeat Jul 25, 2024

Choose a reason for hiding this comment

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

While this pulls back typescript to v4 again, it's also technically already a missing peerDependency of @metamask/eslint-config-typescript.

Updating @metamask/eslint-config-typescript, and prettier to v3, will properly remove TS v4.

@legobeat legobeat added dependencies Pull requests that update a dependency file team-security labels Jul 25, 2024
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.12%. Comparing base (cad49eb) to head (22bb329).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26145   +/-   ##
========================================
  Coverage    70.12%   70.12%           
========================================
  Files         1434     1434           
  Lines        50285    50285           
  Branches     13890    13890           
========================================
  Hits         35259    35259           
  Misses       15026    15026           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@legobeat legobeat force-pushed the fix-prettier-eslint-version branch 2 times, most recently from 2e7bb1f to 4d4f2d5 Compare July 26, 2024 20:27
Gudahtt
Gudahtt previously approved these changes Aug 1, 2024
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt
Copy link
Member

Gudahtt commented Aug 1, 2024

I would like to tackle the Prettier v3 upgrade soon, but let's stay consistent in the meantime. Good catch

Copy link

socket-security bot commented Aug 11, 2024

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

View full report↗︎

@legobeat legobeat force-pushed the fix-prettier-eslint-version branch 2 times, most recently from 16388d4 to 8aeceb1 Compare August 12, 2024 10:06
@Mrtenz
Copy link
Member

Mrtenz commented Aug 12, 2024

I would like to tackle the Prettier v3 upgrade soon, but let's stay consistent in the meantime. Good catch

Prettier 3 isn't compatible with auto-changelog currently fyi. The v3 API is asynchronous, and updating that is quite a big refactor of auto-changelog last time I checked.

@HowardBraham HowardBraham merged commit f659700 into MetaMask:develop Aug 16, 2024
76 of 77 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2024
@legobeat legobeat deleted the fix-prettier-eslint-version branch August 16, 2024 23:49
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Sep 25, 2024
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.5.0 on PR, as PR was added to branch 12.5.0 when release was cut.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-security
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants