Add jq formatter (#174)

This commit is contained in:
Mohsin Kaleem 2023-04-20 13:50:03 +01:00 committed by GitHub
parent 3abce6308e
commit 6516abee4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 1 deletions

View file

@ -13,8 +13,13 @@ The format is based on [Keep a Changelog].
by suppressing all logs from `ktlint`.
### Formatters
* [purs-tidy](https://github.com/natefaubion/purescript-tidy) for PureScript ([#182]).
* [purs-tidy](https://github.com/natefaubion/purescript-tidy) for PureScript ([#182]).
* [`jq`](https://stedolan.github.io/jq/) for
[JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON)
([#174]).
[#174]: https://github.com/radian-software/apheleia/pull/174
[#182]: https://github.com/radian-software/apheleia/pull/182
## 3.2 (released 2023-02-25)

View file

@ -53,6 +53,8 @@
(goimports . ("goimports"))
(google-java-format . ("google-java-format" "-"))
(isort . ("isort" "-"))
(jq "jq" "."
(apheleia-formatters-js-indent "--tab" "--indent"))
(lisp-indent . apheleia-indent-lisp-buffer)
(ktlint . ("ktlint" "--log-level=none" "--stdin" "-F" "-"))
(latexindent . ("latexindent" "--logfile=/dev/null"))

View file

@ -0,0 +1 @@
apt-get install -y jq

View file

@ -0,0 +1 @@
../prettier-json/in.json

View file

@ -0,0 +1,19 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
}