dprint-plugin-prettier icon indicating copy to clipboard operation
dprint-plugin-prettier copied to clipboard

Request: package.json sorter plugin

Open gunta opened this issue 3 years ago • 2 comments

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

gunta avatar Apr 26 '22 10:04 gunta

The more recent one is https://github.com/keithamus/sort-package-json

However, I prefer to put the keywords in the end

aminya avatar May 14 '22 04:05 aminya

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?

tomdavidson avatar Nov 24 '22 06:11 tomdavidson