All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ===============================================================================
2 ALE JSON Integration *ale-json-options*
5 ===============================================================================
8 Check the docs over at |ale-typescript-biome|.
11 ===============================================================================
12 clang-format *ale-json-clangformat*
14 See |ale-c-clangformat| for information about the available options.
15 Note that the C options are also used for JSON.
18 ===============================================================================
19 cspell *ale-json-cspell*
21 See |ale-cspell-options|
24 ===============================================================================
25 dprint *ale-json-dprint*
27 See |ale-dprint-options| and https://dprint.dev/plugins/json
30 ===============================================================================
31 eslint *ale-json-eslint*
33 The `eslint` linter for JSON uses the JavaScript options for `eslint`; see:
34 |ale-javascript-eslint|.
36 You will need a JSON ESLint plugin installed for this to work.
39 ===============================================================================
40 fixjson *ale-json-fixjson*
42 fixjson is a JSON file fixer/formatter for humans using (relaxed) JSON5.
45 - Pretty-prints JSON input
46 - Fixes various failures while humans writing JSON
47 - Fixes trailing commas objects or arrays
48 - Fixes missing commas for elements of objects or arrays
49 - Adds quotes to keys in objects
52 - Fixes single quotes to double quotes
54 You can install it using npm:
56 $ npm install -g fixjson
58 ALE provides fixjson integration as a fixer. See |ale-fix|.
60 -------------------------------------------------------------------------------
62 *ale-options.json_fixjson_executable*
63 *g:ale_json_fixjson_executable*
64 *b:ale_json_fixjson_executable*
65 json_fixjson_executable
66 g:ale_json_fixjson_executable
70 The executable that will be run for fixjson.
72 *ale-options.json_fixjson_options*
73 *g:ale_json_fixjson_options*
74 *b:ale_json_fixjson_options*
76 g:ale_json_fixjson_options
80 This variable can add extra options to the command executed for running
83 *ale-options.json_fixjson_use_global*
84 *g:ale_json_fixjson_use_global*
85 *b:ale_json_fixjson_use_global*
86 json_fixjson_use_global
87 g:ale_json_fixjson_use_global
89 Default: `get(g:, 'ale_use_global_executables', 0)`
91 See |ale-integrations-local-executables|
94 ===============================================================================
95 pytool *ale-json-pytool*
97 Use python's json.tool module to reformat json.
99 *ale-options.json_pytool_executable*
100 *g:ale_json_pytool_executable*
101 *b:ale_json_pytool_executable*
102 json_pytool_executable
103 g:ale_json_pytool_executable
107 The python executable that run to use its json.tool module. This fixer
108 requires python 3, which includes the json module.
110 *ale-options.json_pytool_options*
111 *g:ale_json_pytool_options*
112 *b:ale_json_pytool_options*
114 g:ale_json_pytool_options
118 These options are passed to the json.tool module. Example: >
119 let g:ale_json_pytool_options = '--sort-keys --indent 2'
120 < See docs for all options:
121 https://docs.python.org/3/library/json.html#module-json.tool
123 *ale-options.json_pytool_use_global*
124 *g:ale_json_pytool_use_global*
125 *b:ale_json_pytool_use_global*
126 json_pytool_use_global
127 g:ale_json_pytool_use_global
129 Default: `get(g:, 'ale_use_global_executables', 0)`
131 See |ale-integrations-local-executables|
134 ===============================================================================
135 jsonlint *ale-json-jsonlint*
137 *ale-options.json_jsonlint_executable*
138 *g:ale_json_jsonlint_executable*
139 *b:ale_json_jsonlint_executable*
140 json_jsonlint_executable
141 g:ale_json_jsonlint_executable
143 Default: `'jsonlint'`
145 The executable that will be run for jsonlint.
147 *ale-options.json_jsonlint_use_global*
148 *g:ale_json_jsonlint_use_global*
149 *b:ale_json_jsonlint_use_global*
150 json_jsonlint_use_global
151 g:ale_json_jsonlint_use_global
153 Default: `get(g:, 'ale_use_global_executables', 0)`
155 See |ale-integrations-local-executables|
158 ===============================================================================
161 *ale-options.json_jq_executable*
162 *g:ale_json_jq_executable*
163 *b:ale_json_jq_executable*
165 g:ale_json_jq_executable
169 This option can be changed to change the path for `jq`.
172 *ale-options.json_jq_options*
173 *g:ale_json_jq_options*
174 *b:ale_json_jq_options*
176 g:ale_json_jq_options
180 This option can be changed to pass extra options to `jq`.
182 *ale-options.json_jq_filters*
183 *g:ale_json_jq_filters*
184 *b:ale_json_jq_filters*
186 g:ale_json_jq_filters
190 This option can be changed to pass custom filters to `jq`.
193 ===============================================================================
194 prettier *ale-json-prettier*
196 See |ale-javascript-prettier| for information about the available options.
199 ===============================================================================
200 spectral *ale-json-spectral*
202 Website: https://github.com/stoplightio/spectral
205 -------------------------------------------------------------------------------
208 Install spectral either globally or locally: >
210 npm install @stoplight/spectral -g # global
211 npm install @stoplight/spectral # local
214 -------------------------------------------------------------------------------
217 *ale-options.json_spectral_executable*
218 *g:ale_json_spectral_executable*
219 *b:ale_json_spectral_executable*
220 json_spectral_executable
221 g:ale_json_spectral_executable
223 Default: `'spectral'`
225 This variable can be set to change the path to spectral.
227 *ale-options.json_spectral_use_global*
228 *g:ale_json_spectral_use_global*
229 *b:ale_json_spectral_use_global*
230 json_spectral_use_global
231 g:ale_json_spectral_use_global
233 Default: `get(g:, 'ale_use_global_executables', 0)`
235 See |ale-integrations-local-executables|
238 ===============================================================================
239 vscodejson *ale-json-vscode*
241 Website: https://github.com/hrsh7th/vscode-langservers-extracted
243 -------------------------------------------------------------------------------
246 Install VSCode json language server either globally or locally: >
248 npm install -g vscode-langservers-extracted
251 ===============================================================================
252 vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: