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

fix!: update for compatibility with the new async APIs in Prettier 3 #588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steveluscher
Copy link

This PR:

  • pins the peerDependencies version of Prettier to >=3
  • updates the callsites of the Prettier API to reflect the fact that they're now async

This is a breaking version that will require a major version bump.

Fixes #586.

@@ -19,7 +19,7 @@
"prepare": "husky install"
},
"lint-staged": {
"*": "node --experimental-vm-modules node_modules/jest/bin/jest.js --bail --findRelatedTests"
"src/*": "node --experimental-vm-modules node_modules/jest/bin/jest.js --bail --findRelatedTests"
Copy link
Author

Choose a reason for hiding this comment

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

Otherwise this thing will try to run tests against package.json et al.

},
"overrides": {
"eslint-config-starstuff": {
"eslint-plugin-prettier": "^5.0.0"
Copy link
Author

Choose a reason for hiding this comment

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

You may like to, instead, release a new major version of starstuff that's Prettier 3 compatible.

@steveluscher
Copy link
Author

I forgot that I'd done this, discovered that our Prettier tests weren't doing anything, debugged the root cause, and then rediscovered this.

Any chance you'd like to crush out a release?

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.

Prettier APIs went async as of Prettier 3.0.0
1 participant