JSPM

  • Created
  • Published
  • Downloads 1007460
  • Score
    100M100P100Q197971F
  • License MIT

Prettier package.json plugin to make the order of properties nice.

Package Exports

  • prettier-plugin-packagejson
  • prettier-plugin-packagejson/lib/index.cjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettier-plugin-packagejson) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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'],
}