-
Notifications
You must be signed in to change notification settings - Fork 21
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
🐛 Bug: package-json/order-properties changes scripts keys #80
Comments
👋 thanks for filing! Could you provide a little more detail please?
|
Sorry about that, kind of rushed the issue creation a bit 😉
The rule |
Got it! Thanks, that makes sense. Looks like this is an issue with the cc @kendallgassner as FYI 👋 |
@all-contributors please add @AndreasLindbergPAF for bug.
|
I've put up a pull request to add @AndreasLindbergPAF! 🎉 I couldn't determine any contributions to add, did you specify any contributions? |
Adds @AndreasLindbergPAF as a contributor for bug. This was requested by JoshuaKGoldberg [in this comment](#80 (comment)) --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Josh Goldberg <[email protected]>
@JoshuaKGoldberg
|
package-json/order-properties
changes scripts keyspackage-json/order-properties
to not change nested keys
package-json/order-properties
to not change nested keys
Hmm, I think the more manual strategy (2) is probably more sustainable long-term. I haven't looked deeply at which packages are best for that these days. |
<!-- 👋 Hi, thanks for sending a PR to eslint-plugin-package-json! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #80 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/main/.github/CONTRIBUTING.md) were taken ## Overview <!-- Description of what is changed and how the code change does that. -->
🎉 This is included in version v0.13.0 🎉 The release is available on: Cheers! 📦🚀 |
Bug Report Checklist
main
branch of the repository.Expected
It should only sort the top-level keys
Actual
It complains about key order in deeper paths as well
Additional Info
With this config
I'm expecting this
To only reorder on top-level, like this
But it seems to change scripts order as well
I'm stuck on
^0.1.5
because of this 😞The text was updated successfully, but these errors were encountered: