Use prettier-json for js-json-mode (#209)

By default Emacs 29 uses `js-json-mode` for JSON file (correct me if I'm
wrong), this pr enables the right formatter for this mode.
This commit is contained in:
realazy 2023-10-01 12:40:04 +08:00 committed by GitHub
parent bac7277ed0
commit 1fae320aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ The format is based on [Keep a Changelog].
([#214]).
### Enhancements
* Use the `prettier-json` formatter for `js-json-mode`.
* Prettier is now enabled in `svelte-mode`.
* More tree-sitter based major modes have been added to
`apheleia-mode-alist` ([#191]).

View file

@ -249,6 +249,7 @@ rather than using this system."
(java-mode . google-java-format)
(java-ts-mode . google-java-format)
(js3-mode . prettier-javascript)
(js-json-mode . prettier-json)
(js-mode . prettier-javascript)
(js-ts-mode . prettier-javascript)
(json-mode . prettier-json)