mirror of
https://github.com/vale981/apheleia
synced 2025-03-05 09:31:40 -05:00
Add jq formatter (#174)
This commit is contained in:
parent
3abce6308e
commit
6516abee4a
5 changed files with 29 additions and 1 deletions
|
@ -13,8 +13,13 @@ The format is based on [Keep a Changelog].
|
||||||
by suppressing all logs from `ktlint`.
|
by suppressing all logs from `ktlint`.
|
||||||
|
|
||||||
### Formatters
|
### 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
|
[#182]: https://github.com/radian-software/apheleia/pull/182
|
||||||
|
|
||||||
## 3.2 (released 2023-02-25)
|
## 3.2 (released 2023-02-25)
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
(goimports . ("goimports"))
|
(goimports . ("goimports"))
|
||||||
(google-java-format . ("google-java-format" "-"))
|
(google-java-format . ("google-java-format" "-"))
|
||||||
(isort . ("isort" "-"))
|
(isort . ("isort" "-"))
|
||||||
|
(jq "jq" "."
|
||||||
|
(apheleia-formatters-js-indent "--tab" "--indent"))
|
||||||
(lisp-indent . apheleia-indent-lisp-buffer)
|
(lisp-indent . apheleia-indent-lisp-buffer)
|
||||||
(ktlint . ("ktlint" "--log-level=none" "--stdin" "-F" "-"))
|
(ktlint . ("ktlint" "--log-level=none" "--stdin" "-F" "-"))
|
||||||
(latexindent . ("latexindent" "--logfile=/dev/null"))
|
(latexindent . ("latexindent" "--logfile=/dev/null"))
|
||||||
|
|
1
test/formatters/installers/jq.bash
Normal file
1
test/formatters/installers/jq.bash
Normal file
|
@ -0,0 +1 @@
|
||||||
|
apt-get install -y jq
|
1
test/formatters/samplecode/jq/in.json
Symbolic link
1
test/formatters/samplecode/jq/in.json
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../prettier-json/in.json
|
19
test/formatters/samplecode/jq/out.json
Normal file
19
test/formatters/samplecode/jq/out.json
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue