|
62 | 62 | "code": "{/**\n * a comment\n */}" |
63 | 63 | }, |
64 | 64 | "type": "string", |
65 | | - "values": ["align", "indent", ""] |
| 65 | + "values": [ |
| 66 | + "align", |
| 67 | + "indent", |
| 68 | + "" |
| 69 | + ] |
66 | 70 | }, |
67 | 71 | "for_loop_semicolons.padding": { |
68 | 72 | "description": "When true, insert a space after for loop semicolons.", |
|
71 | 75 | }, |
72 | 76 | "type": "boolean" |
73 | 77 | }, |
| 78 | + "function_anonymous.empty_padding": { |
| 79 | + "description": "When true, pad anonymous function declarations that have no parameters with a space.", |
| 80 | + "example": { |
| 81 | + "code": "function() {}" |
| 82 | + }, |
| 83 | + "type": "boolean" |
| 84 | + }, |
| 85 | + "function_anonymous.group_to_block_spacing": { |
| 86 | + "description": "How to space from the anonymous function parameters to the function block.", |
| 87 | + "example": { |
| 88 | + "code": "function() {}" |
| 89 | + }, |
| 90 | + "type": "string", |
| 91 | + "values": [ |
| 92 | + "spaced", |
| 93 | + "compact", |
| 94 | + "newline" |
| 95 | + ] |
| 96 | + }, |
| 97 | + "function_anonymous.multiline.element_count": { |
| 98 | + "description": "When an anonymous function declaration has this number of parameters, split them onto multiple lines.", |
| 99 | + "type": "integer" |
| 100 | + }, |
| 101 | + "function_anonymous.multiline.leading_comma": { |
| 102 | + "description": "Whether to use a leading comma when anonymous function declaration parameters are printed on multiple lines.", |
| 103 | + "example": { |
| 104 | + "code": "function(a,b,c,d) {}", |
| 105 | + "settings": { |
| 106 | + "function_anonymous.multiline.min_length": 1 |
| 107 | + } |
| 108 | + }, |
| 109 | + "type": "boolean" |
| 110 | + }, |
| 111 | + "function_anonymous.multiline.leading_comma.padding": { |
| 112 | + "description": "Whether to insert a space after leading commas when anonymous function declaration parameters are printed on multiple lines.", |
| 113 | + "example": { |
| 114 | + "code": "function(a,b,c,d) {}", |
| 115 | + "settings": { |
| 116 | + "function_anonymous.multiline.leading_comma": true, |
| 117 | + "function_anonymous.multiline.min_length": 1 |
| 118 | + } |
| 119 | + }, |
| 120 | + "type": "boolean" |
| 121 | + }, |
| 122 | + "function_anonymous.multiline.min_length": { |
| 123 | + "description": "No matter how many parameters an anonymous function declaration has, if they can be printed in this many columns or less, keep them on one line.", |
| 124 | + "type": "integer" |
| 125 | + }, |
| 126 | + "function_anonymous.padding": { |
| 127 | + "description": "Whether to pad non-empty anonymous function declarations with spaces.", |
| 128 | + "example": { |
| 129 | + "code": "function(a,b) {}" |
| 130 | + }, |
| 131 | + "type": "boolean" |
| 132 | + }, |
74 | 133 | "function_call.empty_padding": { |
75 | 134 | "description": "When true, function calls with no arguments are padded with a space.", |
76 | 135 | "example": { |
|
117 | 176 | "function_declaration.empty_padding": { |
118 | 177 | "description": "When true, pad function declarations that have no parameters with a space.", |
119 | 178 | "example": { |
120 | | - "code": "function() {}" |
| 179 | + "code": "function example() {}" |
121 | 180 | }, |
122 | 181 | "type": "boolean" |
123 | 182 | }, |
124 | 183 | "function_declaration.group_to_block_spacing": { |
125 | 184 | "description": "How to space from the function parameters to the function block.", |
126 | 185 | "example": { |
127 | | - "code": "function() {}" |
| 186 | + "code": "function example() {}" |
128 | 187 | }, |
129 | 188 | "type": "string", |
130 | | - "values": ["spaced", "compact", "newline"] |
| 189 | + "values": [ |
| 190 | + "spaced", |
| 191 | + "compact", |
| 192 | + "newline" |
| 193 | + ] |
131 | 194 | }, |
132 | 195 | "function_declaration.multiline.element_count": { |
133 | 196 | "description": "When a function declaration has this number of parameters, split them onto multiple lines.", |
|
136 | 199 | "function_declaration.multiline.leading_comma": { |
137 | 200 | "description": "Whether to use a leading comma when function declaration parameters are printed on multiple lines.", |
138 | 201 | "example": { |
139 | | - "code": "function(a,b,c,d) {}", |
| 202 | + "code": "function example(a,b,c,d) {}", |
140 | 203 | "settings": { |
141 | 204 | "function_declaration.multiline.min_length": 1 |
142 | 205 | } |
|
146 | 209 | "function_declaration.multiline.leading_comma.padding": { |
147 | 210 | "description": "Whether to insert a space after leading commas when function declaration parameters are printed on multiple lines.", |
148 | 211 | "example": { |
149 | | - "code": "function(a,b,c,d) {}", |
| 212 | + "code": "function example(a,b,c,d) {}", |
150 | 213 | "settings": { |
151 | 214 | "function_declaration.multiline.leading_comma": true, |
152 | 215 | "function_declaration.multiline.min_length": 1 |
|
159 | 222 | "type": "integer" |
160 | 223 | }, |
161 | 224 | "function_declaration.padding": { |
162 | | - "description": "Whether to pad non-empty function calls with spaces.", |
| 225 | + "description": "Whether to pad non-empty function declarations with spaces.", |
163 | 226 | "example": { |
164 | | - "code": "function(a,b) {}" |
| 227 | + "code": "function example(a,b) {}" |
165 | 228 | }, |
166 | 229 | "type": "boolean" |
167 | 230 | }, |
168 | 231 | "indent_size": { |
169 | 232 | "description": "Each indent level or tab is equivalent to this many spaces.", |
170 | 233 | "example": { |
171 | 234 | "code": "do {myFunc();}", |
172 | | - "values": [4, 2] |
| 235 | + "values": [ |
| 236 | + 4, |
| 237 | + 2 |
| 238 | + ] |
173 | 239 | }, |
174 | 240 | "type": "integer" |
175 | 241 | }, |
|
179 | 245 | "code": "if(true){}else{}" |
180 | 246 | }, |
181 | 247 | "type": "string", |
182 | | - "values": ["spaced", "compact", "newline"] |
| 248 | + "values": [ |
| 249 | + "spaced", |
| 250 | + "compact", |
| 251 | + "newline" |
| 252 | + ] |
183 | 253 | }, |
184 | 254 | "keywords.empty_group_spacing": { |
185 | 255 | "description": "Whether to pad empty keyword groups.", |
|
194 | 264 | "code": "if(true){}" |
195 | 265 | }, |
196 | 266 | "type": "string", |
197 | | - "values": ["spaced", "compact", "newline"] |
| 267 | + "values": [ |
| 268 | + "spaced", |
| 269 | + "compact", |
| 270 | + "newline" |
| 271 | + ] |
198 | 272 | }, |
199 | 273 | "keywords.padding_inside_group": { |
200 | 274 | "description": "Whether to pad inside non-empty keyword groups.", |
|
209 | 283 | "code": "do{}" |
210 | 284 | }, |
211 | 285 | "type": "string", |
212 | | - "values": ["spaced", "compact", "newline"] |
| 286 | + "values": [ |
| 287 | + "spaced", |
| 288 | + "compact", |
| 289 | + "newline" |
| 290 | + ] |
213 | 291 | }, |
214 | 292 | "keywords.spacing_to_group": { |
215 | 293 | "description": "Whether to space a keyword from following group.", |
|
235 | 313 | "code": "http url='www.google.com';\nparam name=\"key\";" |
236 | 314 | }, |
237 | 315 | "type": "string", |
238 | | - "values": ["single", "double", ""] |
| 316 | + "values": [ |
| 317 | + "single", |
| 318 | + "double", |
| 319 | + "" |
| 320 | + ] |
239 | 321 | }, |
240 | 322 | "strings.quote": { |
241 | 323 | "description": "Whether to use a single or double quote for strings. If set to an empty string, leaves string quotes as they are found.", |
242 | 324 | "example": { |
243 | 325 | "code": "a=\"One\";\nb='Two';" |
244 | 326 | }, |
245 | 327 | "type": "string", |
246 | | - "values": ["single", "double", ""] |
| 328 | + "values": [ |
| 329 | + "single", |
| 330 | + "double", |
| 331 | + "" |
| 332 | + ] |
247 | 333 | }, |
248 | 334 | "struct.empty_padding": { |
249 | 335 | "description": "When true, non-empty structs are padded with spaces.", |
|
292 | 378 | "description": "The key value separator to use in structs - it must contain either a single `:` or `=` and be no more than 3 characters in length.", |
293 | 379 | "example": { |
294 | 380 | "code": "myStruct={a:1,b:2};", |
295 | | - "values": [": ", " = ", " : ", "="] |
| 381 | + "values": [ |
| 382 | + ": ", |
| 383 | + " = ", |
| 384 | + " : ", |
| 385 | + "=" |
| 386 | + ] |
296 | 387 | }, |
297 | 388 | "type": "struct-key-value" |
298 | 389 | }, |
|
0 commit comments