Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add prettier-json-stringify formatter #183

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ The format is based on [Keep a Changelog].

### Formatters
* [purs-tidy](https://github.com/natefaubion/purescript-tidy) for PureScript ([#182]).
* `prettier-json-stringify`, the parser prettier uses for `package.json` files ([#183]).

[#182]: https://github.com/radian-software/apheleia/pull/182
[#183]: https://github.com/radian-software/apheleia/pull/183

## 3.2 (released 2023-02-25)
### Features
Expand Down
2 changes: 2 additions & 0 deletions apheleia-formatters.el
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ Otherwise return the extension only."
. (npx "prettier" "--stdin-filepath" filepath "--parser=babel-flow"))
(prettier-json
. (npx "prettier" "--stdin-filepath" filepath "--parser=json"))
(prettier-json-stringify
. (npx "prettier" "--stdin-filepath" filepath "--parser=json-stringify"))
(prettier-markdown
. (npx "prettier" "--stdin-filepath" filepath "--parser=markdown"))
(prettier-ruby
Expand Down