Skip to content

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

Open
steveluscher wants to merge 1 commit intokeplersj:masterfrom
steveluscher:prettier-3
Open

fix!: update for compatibility with the new async APIs in Prettier 3#588
steveluscher wants to merge 1 commit intokeplersj:masterfrom
steveluscher:prettier-3

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.

},
"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