SamVerschueren / clinton

Project style linter
MIT License
122 stars 9 forks source link

Question: What's the origin of the `package.json` property order? #70

Closed alebelcor closed 7 years ago

alebelcor commented 7 years ago

Hi,

I'm wondering where the property order of the pkg-property-order rule comes from.

It seems a bit different than the order in the npm documentation.

Awesome project! Thanks!

SamVerschueren commented 7 years ago

Hi, first of all, thanks for using it. If you have any improvements or ideas for new rules, don't hesitate to create new issues for them.

The order is based on own usage from me and @sindresorhus. So it's not based upon the npmjs docs. This is the order we use on our projects for consistency.

sindresorhus commented 7 years ago

The order in the npm docs is just arbitrary. The order here is something I've iterated on through many years. It's basically: package info, authors, package config, dependencies.