Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matzkoh/prettier-plugin-packagejson
Prettier plugin for package.json
https://github.com/matzkoh/prettier-plugin-packagejson
Last synced: 13 days ago
JSON representation
Prettier plugin for package.json
- Host: GitHub
- URL: https://github.com/matzkoh/prettier-plugin-packagejson
- Owner: matzkoh
- License: mit
- Created: 2019-03-18T09:04:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T17:07:40.000Z (7 months ago)
- Last Synced: 2024-05-01T22:42:00.187Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.58 MB
- Stars: 285
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm-badge]][npm]
[![downloads-badge]][npm]
[![actions-badge]][actions]
[![renovate-badge]][renovate]
[![codecov-badge]][codecov][npm-badge]: https://img.shields.io/npm/v/prettier-plugin-packagejson
[npm]: https://www.npmjs.com/package/prettier-plugin-packagejson
[downloads-badge]: https://img.shields.io/npm/dw/prettier-plugin-packagejson?color=blue
[actions-badge]: https://github.com/matzkoh/prettier-plugin-packagejson/actions/workflows/release.yml/badge.svg
[actions]: https://github.com/matzkoh/prettier-plugin-packagejson/actions/workflows/release.yml
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen
[renovate]: https://renovatebot.com/
[codecov-badge]: https://codecov.io/gh/matzkoh/prettier-plugin-packagejson/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/matzkoh/prettier-plugin-packagejson# prettier-plugin-packagejson
A [Prettier] plugin to sort the keys of a `package.json` file using [sort-package-json].
[prettier]: https://github.com/prettier/prettier
[sort-package-json]: https://github.com/keithamus/sort-package-json## Installation
```sh
npm i -D prettier prettier-plugin-packagejson
```For prettier v3+ you need to configure
```js
module.exports = {
// add this
plugins: ['prettier-plugin-packagejson'],
}
```