Skip to content

Prettier config messes the order of scripts #58

@ezhlobo

Description

@ezhlobo

We get a value sorting all properties inside package.json file. However we change the order of 'scripts' also, that's becoming annoying. I sort those scripts logically, but then I loose that.

BeforeAfter
"dev": "",
"build": "",
"preview": "",
"check": "",
"check:lint": "",
"check:format": "",
"fix": "",
"fix:lint": "",
"fix:format": ""
"build": "",
"check": "",
"check:lint": "",
"check:format": "",
"dev": "",
"fix": "",
"fix:lint": "",
"fix:format": ""
"preview": "",

So I currently override to remove prettier-plugin-packagejson plugin, however it would be great to still sort package.json fields but ignore scripts (or specify custom order).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions