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

Upgrade prettier to 3.2 #296

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Upgrade prettier to 3.2 #296

merged 3 commits into from
Aug 6, 2024

Conversation

timstallmann
Copy link

Upgrades prettier to version 3.2 (which is what we use on knox as well). Adds the commit which reformats files to git-blame-ignore-revs.

@@ -242,7 +245,7 @@ browsers.forEach(function (browser) {
console.log(
'ERROR:',
browser.config.browserName,
browser.config.platform
browser.config.platform,
Copy link
Member

Choose a reason for hiding this comment

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

I don't know what's going on here, but this feels like prettier is making the wrong decision.

Copy link
Author

Choose a reason for hiding this comment

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

ohh good catch, I think we turned that rule off in our main prettierrc on knox but I didn't do it here.

Copy link
Member

Choose a reason for hiding this comment

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

Looking here it does seem like it's configurable:
https://stackoverflow.com/a/61370655

Someone mentions the rationale behind this is version control working better with trailing commas. I don't have a strong opinion. I think it's best to just match whatever knox does if we've already made a decision there.

Copy link
Author

Choose a reason for hiding this comment

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

Yep.. rebased the first commit to do that and match knox config exactly

@timstallmann timstallmann merged commit a3b4ae1 into main Aug 6, 2024
4 checks passed
@timstallmann timstallmann deleted the tim/upgrade-prettier branch August 6, 2024 14:44
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