You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[prettier-plugin-pkg] add option to ignore sorting scripts #466
If we want later to e.g. also sort contributors and maintainers, but some of us prefer to order them in chronological order, I would suggest something like packageIgnoreSort: ["scripts", "contributors", "maintainers"]
Activity
JounQin commentedon Jun 4, 2025
I'm open to it because sometimes I also want no
scriptssorting actually, but I just ignore them. 😅This would also be useful when there are comment and
pre/post(#403)scripts.So I think an option named
sortScripts: booleandefault astruewould be fine for such cases.[-]add option to ignore sorting scripts[/-][+][prettier-plugin-pkg] add option to ignore sorting scripts[/+]Shinigami92 commentedon Jun 5, 2025
If we want later to e.g. also sort contributors and maintainers, but some of us prefer to order them in chronological order, I would suggest something like
packageIgnoreSort: ["scripts", "contributors", "maintainers"]Are you fine with that?
JounQin commentedon Jun 5, 2025
Good idea! Although
packageprefix is a bit redundant?{ "overrides": [ { "files": "package.json", "options": { "ignoreSort": ["scripts", "contributors", "maintainers"], }, }, ], }JounQin commentedon Jun 6, 2025
@Shinigami92 Do you want to work on this for v0.21.0?
Shinigami92 commentedon Jun 6, 2025
If I find time today or tomorrow yes, otherwise I'm fine with a 0.22 🤷
I have a meeting this evening and currently need some couch break an cat cuddles