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

Unify Prettier config #3372

Merged
merged 4 commits into from
Mar 27, 2024
Merged

Unify Prettier config #3372

merged 4 commits into from
Mar 27, 2024

Conversation

dnbrwstr
Copy link
Collaborator

@dnbrwstr dnbrwstr commented Mar 27, 2024

This PR creates a root .prettierrc.js for common formatting settings. I also added new .prettierrc.js files for the shared and ui packages, which were missing them before.

One small future improvement would be to also hoist config for the import order plugin -- I didn't do that here because I started seeing import/module issues during formatting when I did.

This PR doesn't actually reformat code where the config has changed. Nothing should change in the tlon-web and tlon-mobile packages, but there will be a number of formatting changes in the ui and shared packages. We should coordinate on the right time to do that.

@dnbrwstr dnbrwstr changed the title cleanup: consistent formatting for shared packages Unify Prettier config Mar 27, 2024
@dnbrwstr dnbrwstr requested review from patosullivan, alecananian and arthyn and removed request for patosullivan March 27, 2024 18:49
@dnbrwstr dnbrwstr marked this pull request as ready for review March 27, 2024 18:51
@dnbrwstr
Copy link
Collaborator Author

Needs some work, drafting for now.

@dnbrwstr dnbrwstr marked this pull request as draft March 27, 2024 19:25
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm

@dnbrwstr dnbrwstr marked this pull request as ready for review March 27, 2024 20:19
@dnbrwstr dnbrwstr marked this pull request as draft March 27, 2024 20:22
@dnbrwstr
Copy link
Collaborator Author

Drafting again, I think we should probably wait and merge this and reformat the shared packages at the same time, but want to coordinate on when with @patosullivan and @alecananian.

@dnbrwstr dnbrwstr marked this pull request as ready for review March 27, 2024 21:09
@dnbrwstr dnbrwstr merged commit 511626b into develop Mar 27, 2024
1 check passed
@dnbrwstr dnbrwstr deleted the db/prettier-cleanup branch March 27, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants