0.2.0 โ€ข Published 8 months ago

prettier-plugin-sort-package-json v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

prettier-plugin-sort-package-json

A Prettier plugin to sort the package.json file in a consistent and opinionated way, this ensures that your package.json file is always well-organized and easy to read.

  • ๐ŸŒŸ Set and forget
  • ๐Ÿ”Œ Zero-dependency
  • ๐Ÿ”ง Zero-configuration
  • ๐Ÿ› ๏ธ Auto-fix with Prettier
  • ๐Ÿš€ No extra commands needed
  • ๐Ÿงน Lint together with Prettier

Usage

To install prettier-plugin-sort-package-json, run the following command:

pnpm add -D prettier-plugin-sort-package-json

To use prettier-plugin-sort-package-json with the CLI, use the --plugin parameter:

- prettier --write .
+ prettier --write . --plugin=prettier-plugin-sort-package-json

If you have a configuration file, you can also add this to the "plugins" list:

{
	"plugins": ["prettier-plugin-sort-package-json"]
}

You can then run Prettier as usual, and your package.json files will be sorted automatically.

0.2.0

8 months ago

0.1.1

9 months ago

0.1.0

9 months ago