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

Allow passing options to sort-package-json #8

Closed
tunnckoCore opened this issue Sep 25, 2019 · 3 comments
Closed

Allow passing options to sort-package-json #8

tunnckoCore opened this issue Sep 25, 2019 · 3 comments

Comments

@tunnckoCore
Copy link

tunnckoCore commented Sep 25, 2019

So we can configure the sort order, through overrides

{
  overrides: [
    {
      files: ['package.json'],
      options: {
        sortOrder: ['foo', 'bar'],
      },
    },
  ],
}
@kachkaev
Copy link

Hi @tunnckoCore 👋

There's been a similar discussion in this repo already, please see #7 (comment)

@tunnckoCore
Copy link
Author

Who to know that title relates to such discussion. Anyway.

And yet, even Prettier allowed few options.

@kachkaev
Copy link

According to https://prettier.io/docs/en/option-philosophy.html, there are few options that are really unavoidable and a couple of those that have been added prematurely, but are hard to remove now. In general, there is a strong resistance in the community against adding new options; prettier/prettier#40 is a good conversation to read on this.

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

No branches or pull requests

2 participants