-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
381 lines (381 loc) · 11.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
{
"name": "ejs-beautify",
"displayName": "EJS Beautify",
"publisher": "j69",
"description": "A formatter extension for EJS files for VS Code. 'js-beautify' is used as the format engine.",
"version": "1.0.6",
"engines": {
"vscode": "^1.60.0"
},
"homepage": "https://github.com/HiroyukiNIshimura/ejs-beautify",
"bugs": {
"url": "https://github.com/HiroyukiNIshimura/ejs-beautify/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/HiroyukiNIshimura/ejs-beautify.git"
},
"icon": "file_type_ejs_icon.png",
"galleryBanner": {
"color": "#4c566a",
"theme": "dark"
},
"categories": [
"Formatters",
"Programming Languages",
"Other"
],
"keywords": [
"ejs",
"nodejs",
"format",
"beautify"
],
"activationEvents": [
"*",
"onCommand:extension.formatSelectionAsHtmlBeautify"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.formatSelectionAsHtmlBeautify",
"title": "Format Selection As EJS Beautify"
}
],
"menus": {
"editor/context": [
{
"command": "extension.formatSelectionAsHtmlBeautify",
"group": "1_modification@2",
"when": "editorHasSelection"
}
],
"commandPalette": [
{
"command": "extension.formatSelectionAsHtmlBeautify",
"when": "editorHasSelection"
}
]
},
"configuration": {
"type": "object",
"title": "EJS Beautify",
"properties": {
"js-beautify.formatting": {
"type": "boolean",
"default": true,
"description": "Whether to enable formatting."
},
"js-beautify.indent_size": {
"type": "integer",
"default": 2,
"description": "Indentation size."
},
"js-beautify.indent_char": {
"type": "string",
"default": " ",
"description": "Indentation char."
},
"js-beautify.indent_with_tabs": {
"type": "boolean",
"default": false,
"description": "Indent with tabs.(Override indent_size and indent_size)"
},
"js-beautify.editorconfig": {
"type": "boolean",
"default": false,
"description": "Use EditorConfig to set up the options."
},
"js-beautify.eol": {
"type": "string",
"default": "\n",
"description": "Character(s) to use as line terminators. (default newline - '\\n')"
},
"js-beautify.end_with_newline": {
"type": "boolean",
"default": false,
"description": "End output with newline."
},
"js-beautify.indent_level": {
"type": "integer",
"default": 0,
"description": "Initial indentation level."
},
"js-beautify.preserve_newlines": {
"type": "boolean",
"default": true,
"description": "Preserve existing line-breaks."
},
"js-beautify.max_preserve_newlines": {
"type": "integer",
"default": 5,
"description": "Maximum number of line-breaks to be preserved in one chunk."
},
"js-beautify.space_in_paren": {
"type": "boolean",
"default": false,
"description": "Add padding spaces within paren, ie. f( a, b )."
},
"js-beautify.space_in_empty_paren": {
"type": "boolean",
"default": false,
"description": "Add a single space inside empty paren, ie. f( )."
},
"js-beautify.jslint_happy": {
"type": "boolean",
"default": false,
"description": "Enable jslint-stricter mode."
},
"js-beautify.space_after_anon_function": {
"type": "boolean",
"default": false,
"description": "Add a space before an anonymous function's parens, ie. function ()."
},
"js-beautify.space_after_named_function": {
"type": "boolean",
"default": false,
"description": "Add a space before a named function's parens, i.e. function example ()."
},
"js-beautify.space_before_conditional": {
"type": "boolean",
"default": true,
"description": "Space before conditional: 'if(x)' / 'if (x)'"
},
"js-beautify.brace_style": {
"type": "string",
"default": "collapse",
"description": "[collapse-preserve-inline|collapse|expand|end-expand|none]."
},
"js-beautify.unindent_chained_methods": {
"type": "boolean",
"default": false,
"description": "Don't indent chained method calls."
},
"js-beautify.break_chained_methods": {
"type": "boolean",
"default": false,
"description": "Break chained method calls across subsequent lines."
},
"js-beautify.keep_array_indentation": {
"type": "boolean",
"default": false,
"description": "Preserve array indentation."
},
"js-beautify.unescape_strings": {
"type": "boolean",
"default": false,
"description": "Decode printable characters encoded in xNN notation."
},
"js-beautify.wrap_line_length": {
"type": "integer",
"default": 0,
"description": "Wrap lines that exceed N characters."
},
"js-beautify.e4x": {
"type": "boolean",
"default": false,
"description": "Pass E4X xml literals through untouched."
},
"js-beautify.comma_first": {
"type": "boolean",
"default": false,
"description": "Put commas at the beginning of new line instead of end."
},
"js-beautify.operator_position": {
"type": "string",
"default": "before-newline",
"description": "Set operator position (before-newline|after-newline|preserve-newline) [before-newline]."
},
"js-beautify.indent_empty_lines": {
"type": "boolean",
"default": false,
"description": "Keep indentation on empty lines."
},
"js-beautify.templating": {
"type": "array",
"default": [
"erb",
"django",
"handlebars",
"php"
],
"description": "List of templating languages (auto,none,django,erb,handlebars,php,smarty) ['auto'] auto = none in JavaScript, all in html."
},
"js-beautify.indent_inner_html": {
"type": "boolean",
"default": false,
"description": "Indent <head> and <body> sections. Default is false."
},
"js-beautify.indent_body_inner_html": {
"type": "boolean",
"default": true,
"description": "Indent <body> sections."
},
"js-beautify.indent_head_inner_html": {
"type": "boolean",
"default": true,
"description": "Indent <head> sections."
},
"js-beautify.indent_handlebars ": {
"type": "boolean",
"default": true,
"description": "Indent <head> sections."
},
"js-beautify.wrap_attributes": {
"type": "string",
"default": "auto",
"description": "['auto', 'force', 'force-aligned', 'force-expand-multiline', 'aligned-multiple', 'preserve', 'preserve-aligned']"
},
"js-beautify.wrap_attributes_indent_size": {
"type": "integer",
"default": 4,
"description": "Wrap attributes indent size."
},
"js-beautify.extra_liners": {
"type": "array",
"default": "['head', 'body', '/html']",
"description": "List of tags (defaults to [head,body,/html] that should have an extra newline before them."
},
"js-beautify.inline": {
"type": "array",
"default": [
"a",
"abbr",
"area",
"audio",
"b",
"bdi",
"bdo",
"br",
"button",
"canvas",
"cite",
"code",
"data",
"datalist",
"del",
"dfn",
"em",
"embed",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"keygen",
"label",
"map",
"mark",
"math",
"meter",
"noscript",
"object",
"output",
"progress",
"q",
"ruby",
"s",
"samp",
"select",
"small",
"span",
"strong",
"sub",
"sup",
"svg",
"template",
"textarea",
"time",
"u",
"var",
"video",
"wbr",
"text",
"acronym",
"big",
"strike",
"tt"
],
"description": "List of tags to be considered inline tags."
},
"js-beautify.void_elements": {
"type": "array",
"default": [
"area",
"base",
"br",
"col",
"embed",
"hr",
"img",
"input",
"keygen",
"link",
"menuitem",
"meta",
"param",
"source",
"track",
"wbr",
"!doctype",
"?xml",
"basefont",
"isindex"
],
"description": "Self closing tags."
},
"js-beautify.unformatted": {
"type": "array",
"default": [],
"description": "List of tags (defaults to inline) that should not be reformatted."
},
"js-beautify.content_unformatted": {
"type": "array",
"default": [
"pre",
"textarea"
],
"description": "List of tags (defaults to pre) whose content should not be reformatted."
},
"js-beautify.unformatted_content_delimiter": {
"type": "string",
"default": "",
"description": "Keep text content together between this string"
},
"js-beautify.indent_scripts": {
"type": "string",
"default": "normal",
"description": "Sets indent level inside script tags ['normal', 'keep', 'separate']"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "npx vsce package"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/js-beautify": "^1.13.2",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"typescript": "^4.3.2",
"vscode-test": "^1.5.2"
},
"dependencies": {
"js-beautify": "^1.14.0"
}
}