Open gunta opened 2 years ago
The more recent one is https://github.com/keithamus/sort-package-json
However, I prefer to put the keywords in the end
I like prettier-plugin-packagesjon
and currently use it with dprint's exec plugin in:
"exec": {
"associations": [
"**/package.json",
],
"prettier-package-json": "node_modules/.bin/prettier-package-json {{file_path}}",
"prettier-package-json.associations": "**/package.json",
"prettier-package-json.stdin": false,
}
Where is the line drawn between making a wasm plugin for dprint vs a dprint-plugin-prettier plug in?
Add support to nice package.json sorting using either one of those: