Add jq as a JSON fixer

This commit is contained in:
Rafael Rinaldi 2018-01-24 10:12:29 +00:00 committed by w0rp
parent 038789f0ed
commit d562d53102
5 changed files with 53 additions and 2 deletions

View file

@ -8,6 +8,33 @@ jsonlint *ale-json-jsonlint*
There are no options available.
===============================================================================
jq *ale-json-jq*
g:ale_json_jq_executable *g:ale_json_jq_executable*
*b:ale_json_jq_executable*
Type: |String|
Default: `'jq'`
See |ale-integrations-local-executables|
g:ale_json_jq_use_global *g:ale_json_jq_use_global*
*b:ale_json_jq_use_global*
Type: |Number|
Default: `0`
See |ale-integrations-local-executables|
g:ale_json_jq_options *g:ale_json_jq_options*
*b:ale_json_jq_options*
Type: |String|
Default: `''`
This option can be changed to pass extra options to `jq`.
===============================================================================
prettier *ale-json-prettier*

View file

@ -113,6 +113,7 @@ CONTENTS *ale-contents*
xo..................................|ale-javascript-xo|
json..................................|ale-json-options|
jsonlint............................|ale-json-jsonlint|
jq..................................|ale-json-jq|
prettier............................|ale-json-prettier|
kotlin................................|ale-kotlin-options|
kotlinc.............................|ale-kotlin-kotlinc|
@ -321,7 +322,7 @@ Notes:
* Idris: `idris`
* Java: `checkstyle`, `javac`, `google-java-format`
* JavaScript: `eslint`, `flow`, `jscs`, `jshint`, `prettier`, `prettier-eslint`, `prettier-standard`, `standard`, `xo`
* JSON: `jsonlint`, `prettier`
* JSON: `jsonlint`, `jq`, `prettier`
* Kotlin: `kotlinc`, `ktlint`
* LaTeX (tex): `alex`!!, `chktex`, `lacheck`, `proselint`, `redpen`, `vale`, `write-good`
* Less: `lessc`, `prettier`, `stylelint`