https://github.com/uetchy/prettier-plugin-fixpack
(semi-)opinionated @prettier plugin that sort out package.json
https://github.com/uetchy/prettier-plugin-fixpack
package-json prettier prettier-plugin
Last synced: 7 months ago
JSON representation
(semi-)opinionated @prettier plugin that sort out package.json
- Host: GitHub
- URL: https://github.com/uetchy/prettier-plugin-fixpack
- Owner: uetchy
- License: apache-2.0
- Created: 2020-09-03T10:19:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T14:40:24.000Z (about 5 years ago)
- Last Synced: 2025-03-18T12:16:42.442Z (7 months ago)
- Topics: package-json, prettier, prettier-plugin
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# prettier-plugin-fixpack
[][npm-url]
[][npm-url]
[](https://github.com/uetchy/prettier-plugin-fixpack/actions?query=test)[npm-url]: https://npmjs.org/package/prettier-plugin-fixpack
A (semi-)opinionated Prettier plugin that sort properties in `package.json` according to [`.fixpackrc`](https://github.com/HenrikJoreteg/fixpack).
## Use
```bash
npm install -g prettier prettier-plugin-fixpack
# or
yarn global add prettier prettier-plugin-fixpack
```then:
```bash
prettier [--write] package.json
```### Configuration
`.fixpackrc` is a JSON file consisting of the rules that define how `fixpack` organize your `package.json`.
If `.fixpackrc` is missing in both local (./.fixpackrc) and global (~/.fixpackrc), [default config](./lib/defaultConfig.json) will be used to format the file.## Contributing
See [Contributing guide](./CONTRIBUTING.md).
## Roadmap
- [ ] Support fixpack config other than `sortToTop`
- [ ] More tests