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

Revert prettier upgrade and fix formatting #7891

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented Nov 13, 2024

The version upgrade in #7741 is causing unexpected prettier diffs whenever we change certain files. This is because prettier 3.x introduced new formatting rules, but our prettier script only checks/formats changed files. So, in the upgrade PR, Checkstyle didn't complain about the formatting now being incorrect after the upgrade, and the latent formatting errors are being surfaced in PRs only as the files are edited.

This PR reverts prettier back to 2.1.1 and updates Checkstyle to catch this error in CI - if the prettier version in yarn.lock changes, then all files are checked/formatted, not just changed files.

@bduffany bduffany force-pushed the prettier-reformat branch 2 times, most recently from e086b05 to 048a74a Compare November 13, 2024 15:41
@bduffany bduffany changed the title Revert prettier upgrade Revert prettier upgrade and fix formatting Nov 13, 2024
@bduffany bduffany merged commit 195b423 into master Nov 13, 2024
16 checks passed
@bduffany bduffany deleted the prettier-reformat branch November 13, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants