feat: add prettier-json-stringify formatter
Adds a new formatter for prettier prettier-json-stringify which uses prettier json-stringify parser. json-stringify parser is used by prettier for formatting package.json files
I used these changes together with https://github.com/radian-software/apheleia/issues/150#issuecomment-1490513636 to make apheleia correctly format package.json files
Looks good, mind adding a test?
@raxod502, added some tests, thanks for the patience
Aside: @raxod502 is it possible to make this the default formatter in apheleia for "package.json" files, but not all json files?
is it possible to make this the default formatter in apheleia for "package.json" files, but not all json files?
Yeah, you would put an entry ("/package\\.json\\'" . prettier-json-stringify) in apheleia-mode-alist.