keithamus / sort-package-json

Sort an Object or package.json based on the well-known package.json keys
MIT License
790 stars 83 forks source link

Add docs for using sort-package-JSON via trunk #305

Open joshmarinacci opened 9 months ago

joshmarinacci commented 9 months ago

trunk check is an extendible superlinter with a built in language server and prexisting issue detection. sort-package-json is integrated here.

We're big fans of the sort-package-json project and hope our integration can increase its popularity!

joshmarinacci commented 9 months ago

Hi Keith. I did it this way to mirror some of the other tools we work with. For example actionlint has a whole section on Tools Integration that shows how to use it with reviewdog, precommit, VS code, and others in addition to Trunk Check. However, if that's not what you want here, how about this:

Trunk Check support (link) with:  `trunk check enable sort-package-josh`

https://github.com/rhysd/actionlint/blob/main/docs/usage.md