Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: package.json sorter plugin #16

Open
gunta opened this issue Apr 26, 2022 · 2 comments · May be fixed by #28
Open

Request: package.json sorter plugin #16

gunta opened this issue Apr 26, 2022 · 2 comments · May be fixed by #28
Labels
enhancement New feature or request

Comments

@gunta
Copy link

gunta commented Apr 26, 2022

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

@dsherret dsherret added the enhancement New feature or request label May 6, 2022
@aminya
Copy link
Contributor

aminya commented May 14, 2022

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

However, I prefer to put the keywords in the end

@aminya aminya linked a pull request Jun 12, 2022 that will close this issue
@tomdavidson
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants