prettier-plugin-sort-json

A plugin for Prettier that sorts JSON files by property name.

MIT License

Downloads
429.1K
Stars
99
Committers
5

Bot releases are hidden (Show)

prettier-plugin-sort-json - v0.0.3

Published by Gudahtt about 2 years ago

Added

  • Add jsonSortOrder option (#92)
    • This also supports case-insensitive sorting (#104)

Changed

  • BREAKING: Rewrite plugin to sort AST (#100)
    • This ensures that symbols are sorted before numbers, as in a normal lexical sort. This is the breaking change, because the sort order may have changed in some edge cases.
    • This ensures that JSON files with mistakes like trailing commas are still sorted properly the first time.
  • BREAKING: Update minimum Node.js version to v14 (#40, #61)
  • BREAKING: Update minimum Prettier version to v2.3.2 (#47)
prettier-plugin-sort-json - v0.0.1

Published by Gudahtt over 3 years ago

Added

  • Initial release
prettier-plugin-sort-json - v0.0.2

Published by Gudahtt over 3 years ago

Added

  • JSON Recursive Sort option (#23)

Changed

  • [BREAKING] Update minimum prettier version to v2.1.0 (#21, #24)
  • [BREAKING] Move prettier from dependencies to peerDependencies (#22)
  • Fix manifest repository property (#17)

Removed

  • Remove unused @babel/types dependency (#20)