-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
239 lines (239 loc) · 9.25 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
{
"name": "vscode-sort-json",
"version": "1.20.0",
"description": "Sorts the keys within JSON objects",
"publisher": "richie5um2",
"author": "Rich Somerfield",
"license": "MIT",
"homepage": "https://github.com/richie5um/vscode-sort-json",
"repository": {
"type": "git",
"url": "https://github.com/richie5um/vscode-sort-json"
},
"bugs": {
"url": "https://github.com/richie5um/vscode-sort-json/issues"
},
"main": "lib/index.js",
"scripts": {
"test": "mocha test/internal"
},
"dependencies": {
"comment-json": "^4.1.0",
"json5": "^0.5.0",
"lodash": "^4.17.13"
},
"devDependencies": {
"chai": "^4.2.0",
"vscode": "0.10.x",
"mocha": "~2.3.3"
},
"displayName": "Sort JSON objects",
"icon": "resources/Icon.png",
"engines": {
"vscode": "0.10.x"
},
"categories": [
"Other"
],
"contributors": [
"Rich Somerfield (https://github.com/richie5um)",
"Jeff Dickey (https://github.com/jdxcode)"
],
"activationEvents": [
"onCommand:sortJSON.sortJSON",
"onCommand:sortJSON.sortJSONReverse",
"onCommand:sortJSON.sortJSONKeyLength",
"onCommand:sortJSON.sortJSONKeyLengthReverse",
"onCommand:sortJSON.sortJSONAlphaNum",
"onCommand:sortJSON.sortJSONAlphaNumReverse",
"onCommand:sortJSON.sortJSONValues",
"onCommand:sortJSON.sortJSONValuesReverse",
"onCommand:sortJSON.sortJSONType",
"onCommand:sortJSON.sortJSONTypeReverse",
"onLanguage:json"
],
"contributes": {
"commands": [
{
"command": "sortJSON.sortJSON",
"title": "Sort JSON"
},
{
"command": "sortJSON.sortJSONReverse",
"title": "Sort JSON (reverse)"
},
{
"command": "sortJSON.sortJSONKeyLength",
"title": "Sort JSON (by key length)"
},
{
"command": "sortJSON.sortJSONKeyLengthReverse",
"title": "Sort JSON (by reverse key length)"
},
{
"command": "sortJSON.sortJSONAlphaNum",
"title": "Sort JSON (by alphanum)"
},
{
"command": "sortJSON.sortJSONAlphaNumReverse",
"title": "Sort JSON (by reverse alphanum)"
},
{
"command": "sortJSON.sortJSONValues",
"title": "Sort JSON (by values)"
},
{
"command": "sortJSON.sortJSONValuesReverse",
"title": "Sort JSON (by reverse values)"
},
{
"command": "sortJSON.sortJSONType",
"title": "Sort JSON (by type)"
},
{
"command": "sortJSON.sortJSONTypeReverse",
"title": "Sort JSON (by reverse type)"
}
],
"configuration": {
"type": "object",
"properties": {
"sortJSON.contextMenu": {
"type": "object",
"additionalProperties": false,
"properties": {
"sortJSON": {
"type": "boolean"
},
"sortJSONReverse": {
"type": "boolean"
},
"sortJSONKeyLength": {
"type": "boolean"
},
"sortJSONKeyLengthReverse": {
"type": "boolean"
},
"sortJSONAlphaNum": {
"type": "boolean"
},
"sortJSONAlphaNumReverse": {
"type": "boolean"
},
"sortJSONValues": {
"type": "boolean"
},
"sortJSONValuesReverse": {
"type": "boolean"
},
"sortJSONType": {
"type": "boolean"
},
"sortJSONTypeReverse": {
"type": "boolean"
}
},
"default": {
"sortJSON": true,
"sortJSONReverse": true,
"sortJSONKeyLength": true,
"sortJSONKeyLengthReverse": true,
"sortJSONAlphaNum": true,
"sortJSONAlphaNumReverse": true,
"sortJSONValues": true,
"sortJSONValuesReverse": true,
"sortJSONType": true,
"sortJSONTypeReverse": true
},
"description": "Which editor context menu commands to show"
},
"sortJSON.orderOverride": {
"type": "array",
"default": [],
"description": "Settings to override the sort order (i.e. to be at the start of the order)"
},
"sortJSON.orderUnderride": {
"type": "array",
"default": [],
"description": "Settings to underride the sort order (i.e. to be at the end of the order)"
},
"sortJSON.excludedFiles": {
"type": "array",
"default": [
"package.json"
],
"description": "Settings to exclude some files for which the sortJSON shouldn't get triggered"
},
"sortJSON.excludedPaths": {
"type": "array",
"default": [],
"description": "Settings to exclude some paths for which the sortJSON shouldn't get triggered"
}
}
},
"menus": {
"editor/context": [
{
"command": "sortJSON.sortJSON",
"group": "7_modification",
"title": "Sort JSON",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSON"
},
{
"command": "sortJSON.sortJSONReverse",
"group": "7_modification",
"title": "Sort JSON (reverse)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONReverse"
},
{
"command": "sortJSON.sortJSONKeyLength",
"group": "7_modification",
"title": "Sort JSON (by key length)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONKeyLength"
},
{
"command": "sortJSON.sortJSONKeyLengthReverse",
"group": "7_modification",
"title": "Sort JSON (by reverse key length)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONKeyLengthReverse"
},
{
"command": "sortJSON.sortJSONAlphaNum",
"group": "7_modification",
"title": "Sort JSON (by alphanum)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONAlphaNum"
},
{
"command": "sortJSON.sortJSONAlphaNumReverse",
"group": "7_modification",
"title": "Sort JSON (by reverse alphanum)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONAlphaNumReverse"
},
{
"command": "sortJSON.sortJSONValues",
"group": "7_modification",
"title": "Sort JSON (by values)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONValues"
},
{
"command": "sortJSON.sortJSONValuesReverse",
"group": "7_modification",
"title": "Sort JSON (by reverse values)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONValuesReverse"
},
{
"command": "sortJSON.sortJSONType",
"group": "7_modification",
"title": "Sort JSON (by type)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONType"
},
{
"command": "sortJSON.sortJSONTypeReverse",
"group": "7_modification",
"title": "Sort JSON (by reverse type)",
"when": "editorLangId =~ /(json|jsonc)/ && config.sortJSON.contextMenu.sortJSONTypeReverse"
}
]
}
}
}