Skip to content

uetchy/prettier-plugin-fixpack

Repository files navigation

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 -g prettier prettier-plugin-fixpack
# or
yarn global add 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.

Contributing

See Contributing guide.

Roadmap

  • Support fixpack config other than sortToTop
  • More tests

About

(semi-)opinionated @prettier plugin that sort out package.json

Topics

Resources

License

Stars

Watchers

Forks