matzkoh / prettier-plugin-packagejson

Prettier plugin for package.json
MIT License
307 stars 10 forks source link

Does not work with prettier 3.0.0 #97

Closed jfairley closed 1 year ago

jfairley commented 1 year ago

I recently upgraded to prettier 3.0.0 and my package.json is no longer formatting. Prettier runs silently (no error or warning output), but clearly incorrect formatting does not get corrected.

Versions:

I downgraded to prettier 2.8.8, and my package.json formats.

related to #80 (maybe)

nemchik commented 1 year ago

I can confirm the same behavior with the same versions (and confirmed prettier@2.8.8 works). I also tested npx sort-package-json which works regardless of any installed package versions.

matzkoh commented 1 year ago

I found that the plugin is not loaded. It seems to work if I explicitly write plugins in the configuration file. I will start working on this issue.

matzkoh commented 1 year ago

Since v3, plugins were no longer automatically searched. There is nothing that can be done here. I will update the README.

https://github.com/prettier/prettier/pull/14759

github-actions[bot] commented 11 months ago

:tada: This issue has been resolved in version 2.4.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: