prettier-plugin-fixpack

0.1.0 • Public • Published

prettier-plugin-fixpack

npm npm: total downloads Actions Status: test

A (semi-)opinionated Prettier plugin that sort properties in package.json according to .fixpackrc.

Use

npm install --save-dev prettier prettier-plugin-fixpack
# or 
yarn add -D prettier prettier-plugin-fixpack

then:

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 will be used to format the file.

{
  "sortToTop": ["name", "description", "version"]
}

Contributing

See Contributing guide.

Package Sidebar

Install

npm i prettier-plugin-fixpack

Weekly Downloads

5

Version

0.1.0

License

Apache-2.0

Unpacked Size

15.2 kB

Total Files

5

Last publish

Collaborators

  • uetchy