Conversation
Change-Id: I55a3f97eef5d9e1e859859508b06f8f028795b97
|
Hi @dsherret, could you please take a look at this PR and the corresponding docs PR dprint/dprint#1242 as well? Thanks! |
|
There's an issue where if we merge this then it would be added to every project running Instead of making this a separate plugin, would you be willing to contribute this to dprint-plugin-json? There's an open issue here: dprint/dprint-plugin-json#40 The one benefit to having it in a separate plugin could be to combine it with plugins other than dprint-plugin-json though. I think I might look into having a new concept of a plugin saying it's "additive" so it should always be run regardless. It could express this in its plugin info. |
I'm working on a PR to dprint for this right now. |
Registers colinaaa/sort-package-json in the dprint plugin registry.
The plugin sorts package.json keys into a conventional order and can optionally sort script keys. This entry adds its npm package metadata, package.json file matching, search keywords, and a node_modules exclusion.
Release: https://github.com/colinaaa/dprint-plugin-sort-package-json/releases/tag/0.2.1
npm: https://www.npmjs.com/package/dprint-plugin-sort-package-json