summaryrefslogtreecommitdiff
path: root/doc/ale-json.txt
diff options
context:
space:
mode:
authorrhysd <lin90162@yahoo.co.jp>2018-01-24 10:36:02 +0000
committerw0rp <devw0rp@gmail.com>2018-01-24 10:36:31 +0000
commitb28a6ddbe4cf573ea993288a6ad4db569d535adf (patch)
treeb1ed7770efb8122d85921aa43c18f069819eeeaa /doc/ale-json.txt
parentd562d531024a2a2210fdf08594639a0b068bacce (diff)
downloadale-b28a6ddbe4cf573ea993288a6ad4db569d535adf.zip
Support fixing JSON files with fixjson
Diffstat (limited to 'doc/ale-json.txt')
-rw-r--r--doc/ale-json.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/ale-json.txt b/doc/ale-json.txt
index 92c4609e..b8e13cdb 100644
--- a/doc/ale-json.txt
+++ b/doc/ale-json.txt
@@ -3,6 +3,45 @@ ALE JSON Integration *ale-json-options*
===============================================================================
+fixjson *ale-json-fixjson*
+
+fixjson is a JSON file fixer/formatter for humans using (relaxed) JSON5.
+It provides:
+
+- Pretty-prints JSON input
+- Fixes various failures while humans writing JSON
+ - Fixes trailing commas objects or arrays
+ - Fixes missing commas for elements of objects or arrays
+ - Adds quotes to keys in objects
+ - Newlines in strings
+ - Hex numbers
+ - Fixes single quotes to double quotes
+
+You can install it using npm:
+>
+ $ npm install -g fixjson
+<
+ALE provides fixjson integration as a fixer. See |ale-fix|.
+
+g:ale_json_fixjson_executable *g:ale_json_fixjson_executable*
+ *b:ale_json_fixjson_executable*
+
+ Type: |String|
+ Default: `'fixjson'`
+
+ The executable that will be run for fixjson.
+
+g:ale_json_fixjson_options *g:ale_json_fixjson_options*
+ *b:ale_json_fixjson_options*
+
+ Type: |String|
+ Default: `''`
+
+ This variable can add extra options to the command executed for running
+ fixjson.
+
+
+===============================================================================
jsonlint *ale-json-jsonlint*
There are no options available.