Closed
Description
prettier-plugin-packagejson had a packageSortOrder
option where you can specify your own sort order.
Can we bring that back?
My current config is using "packageSortOrder": ["name", "version", "description", "scripts"]
as I want these 4 at the top, and then everything else sorted normally.
It might be that prettier-plugin-pkg also has a different "normal" order than prettier-plugin-packagejson
's default...
But maybe we could provide a constant and export it, so it can be used as
"packageSortOrder": ["name", "version", "description", "scripts", ...PACKAGEJSON_SORT_ORDER]
"packageSortOrder": ["name", "version", "description", "scripts", ...UNTS_SORT_ORDER]
or something like this 🤔
if a key occurs a second time, I would suggest that it will just be ignored the second time
Metadata
Metadata
Assignees
Labels
No labels