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

Pin prettier version in Webapp to same version that is specified in pre-commit #589

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

jdbocarsly
Copy link
Member

Prettier has changed the way it formats code from version-to-version. So, to ensure that the weapp's version of prettier (invoked using yarn lint) and pre-commit's don't clash, this pins the version.

Also explicitely specifies trailingComma: all in the .prettierrc to be explicity about which settings we are using.

…opment environment's version and pre-commit's version. Also explicitely specify trailingComma: all, to improve compatibility with different versions of prettier (should such differences persist)
@jdbocarsly jdbocarsly marked this pull request as ready for review February 15, 2024 20:43
Copy link

cypress bot commented Feb 15, 2024

Passing run #895 ↗︎

0 26 0 0 Flakiness 0

Details:

Merge 5bac624 into 5cb81f7...
Project: datalab Commit: e003fe68f3 ℹ️
Status: Passed Duration: 01:40 💡
Started: Feb 15, 2024 8:50 PM Ended: Feb 15, 2024 8:52 PM

Review all test suite changes for PR #589 ↗︎

@jdbocarsly jdbocarsly enabled auto-merge (squash) February 15, 2024 20:53
@jdbocarsly jdbocarsly enabled auto-merge (squash) February 15, 2024 22:28
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

👍

@jdbocarsly jdbocarsly merged commit ccbcdf2 into main Feb 16, 2024
8 checks passed
@jdbocarsly jdbocarsly deleted the jdb/pin-prettier branch February 16, 2024 00:11
ml-evs pushed a commit that referenced this pull request Feb 18, 2024
…re-commit (#589)

* pin prettier version to ensure compatibility between the webapp development environment's version and pre-commit's version. Also explicitely specify trailingComma: all, to improve compatibility with different versions of prettier (should such differences persist)

* update eslint-plugin-prettier
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