dprint / dprint-plugin-prettier

Prettier wrapper plugin for dprint.
Other
96 stars 8 forks source link

Request: package.json sorter plugin #16

Open gunta opened 2 years ago

gunta commented 2 years ago

Add support to nice package.json sorting using either one of those:

aminya commented 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

tomdavidson commented 1 year ago

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?