Allow passing options to sort-package-json
tunnckoCore opened this issue · comments
So we can configure the sort order, through overrides
{
overrides: [
{
files: ['package.json'],
options: {
sortOrder: ['foo', 'bar'],
},
},
],
}
Hi @tunnckoCore 👋
There's been a similar discussion in this repo already, please see #7 (comment)
Who to know that title relates to such discussion. Anyway.
And yet, even Prettier allowed few options.
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.