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

[v3] [Proposal] Bring prettier to the v3 #1545

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Sep 13, 2024

One of the bigger pain points of backporting fixes and improvements to the v3 is due to the fact that we rely on prettier for the v4 but not on the v3, leading to huge conflicts in the end mostly related to different formatting.

This PR proposes that we bring prettier and a similar eslint config to the v3 just to ease comparisons between both major versions.

Note that some eslint rules enabled on the v4 are here not enabled, mostly eqeqeq and no-nested-ternaries(both because that's a lot of work).

For that second rule, the fact that we also run prettier may lead to code harder to read than before.

I also profited from this to better align CI checks between the two majors.

@peaBerberian peaBerberian added proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it legacy-v3 labels Sep 13, 2024
@peaBerberian peaBerberian added this to the 3.33.4 milestone Sep 13, 2024
@Florent-Bouisset
Copy link
Collaborator

Some files are not correctly formatted according to the CI

@peaBerberian
Copy link
Collaborator Author

Yes, see note on top of the PR's message

@peaBerberian
Copy link
Collaborator Author

DONE!

@peaBerberian peaBerberian force-pushed the misc/prettierv3 branch 2 times, most recently from 487e7cf to 40a5093 Compare September 23, 2024 16:39
One of the bigger pain points of backporting fixes and improvements to
the v3 is due to the fact that we rely on prettier for the v4 but not on
the v3, leading to huge conflicts in the end mostly related to different
formatting.

This PR proposes that we bring prettier and a similar eslint config to
the v3 just to ease comparisons between both major versions.

Note that some eslint rules enabled on the v4 are here not enabled,
mostly `eqeqeq` and `no-nested-ternaries`(both because that's a lot of
work).

For that second rule, the fact that we also run prettier may lead to code
harder to read than before.
Copy link
Collaborator

@Florent-Bouisset Florent-Bouisset left a comment

Choose a reason for hiding this comment

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

aside from the config file, I can't review this, I trust you and prettier on this one

@peaBerberian peaBerberian merged commit f1d20f8 into legacy-v3 Sep 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-v3 proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants