Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.26 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.26 KB

npm-badge downloads-badge actions-badge renovate-badge codecov-badge

prettier-plugin-packagejson

A Prettier plugin to sort the keys of a package.json file using sort-package-json.

Installation

npm i -D prettier prettier-plugin-packagejson

For prettier v3+ you need to configure

module.exports = {
  // add this
  plugins: ['prettier-plugin-packagejson'],
}