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

remove prettier v2 #5169

Merged
merged 6 commits into from
Sep 16, 2024
Merged

Conversation

jokester
Copy link
Contributor

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behavior

2 versions of prettier, respectively v2 and v3, get installed.

New behavior

Only use prettier v3

Other information (e.g. related issues)

@@ -1,4 +1,5 @@
{
"name": "socket.io",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change makes package-lock.json to contain a stable root package name (otherwise it uses the directory name)

.prettierrc.json Outdated
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have strong preference on prettier config. It's just this options creates fewer diffs.

@darrachequesne darrachequesne merged commit a1ccba3 into socketio:main Sep 16, 2024
2 checks passed
@darrachequesne
Copy link
Member

@jokester thanks a lot 👍 I've removed the custom configuration, because I think the main purpose of prettier is to be opinionated.

@jokester jokester deleted the fix-prettier-version branch September 17, 2024 05:11
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