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

Open
wants to merge 1 commit into
base: legacy-v3
Choose a base branch
from

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Sep 13, 2024

NOTE: I did not run prettier yet, only eslint with fixes enabled. This is because we're still waiting for #1544 to be merged


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

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