dprint-plugin-prettier
dprint-plugin-prettier copied to clipboard
Request: package.json sorter plugin
Add support to nice package.json sorting using either one of those:
- https://github.com/uetchy/prettier-plugin-fixpack
- https://github.com/matzkoh/prettier-plugin-packagejson
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?