forked from pascalre/vscode-yaml-sort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
293 lines (293 loc) · 8.9 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
{
"name": "vscode-yaml-sort",
"displayName": "YAML Sort",
"description": "This VS Code extension exposes the possibility to sort, format and validate yaml files.",
"version": "6.5.17",
"engines": {
"vscode": "^1.49.0"
},
"license": "MIT",
"publisher": "PascalReitermann93",
"repository": {
"type": "git",
"url": "https://github.com/pascalre/vscode-yaml-sort"
},
"icon": "images/icon.png",
"galleryBanner": {
"color": "#203342",
"theme": "dark"
},
"keywords": [
"yaml",
"yml",
"sorting",
"formatting"
],
"categories": [
"Programming Languages",
"Formatters"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "yaml",
"aliases": [
"YAML",
"yaml"
],
"extensions": [
".yml",
".eyaml",
".eyml",
".yaml"
]
}
],
"configuration": {
"properties": {
"vscode-yaml-sort.emptyLinesUntilLevel": {
"type": "number",
"default": 0,
"description": "When bigger than 0, will add a new line before each keyword on level n."
},
"vscode-yaml-sort.customSortKeywords_1": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"apiVersion",
"kind",
"metadata",
"spec",
"data"
],
"description": "List of keywords for Custom Sort 1."
},
"vscode-yaml-sort.customSortKeywords_2": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of keywords for Custom Sort 2."
},
"vscode-yaml-sort.customSortKeywords_3": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of keywords for Custom Sort 3."
},
"vscode-yaml-sort.extensions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"yaml",
"yml"
],
"description": "Files with matching extensions will be processed in recursive sort"
},
"vscode-yaml-sort.forceQuotes": {
"type": "boolean",
"default": false,
"description": "When true, all non-key strings will be quoted even if they normally don't need to."
},
"vscode-yaml-sort.indent": {
"type": "integer",
"default": 2,
"description": "Indentation width in spaces."
},
"vscode-yaml-sort.lineWidth": {
"type": "integer",
"default": 500,
"description": "Maximum line width for YAML files."
},
"vscode-yaml-sort.locale": {
"type": "string",
"default": "en",
"description": "Language whose sort order should be used."
},
"vscode-yaml-sort.noArrayIndent": {
"type": "boolean",
"default": false,
"description": "When true, will not add an indentation level to array elements."
},
"vscode-yaml-sort.noCompatMode": {
"type": "boolean",
"default": false,
"description": "When true, don't try to be compatible with older yaml versions. Currently: don't quote 'yes', 'no' and so on, as required for YAML 1.1"
},
"vscode-yaml-sort.notifySuccess": {
"type": "boolean",
"default": true,
"description": "When true, will notify on successfully performed tasks."
},
"vscode-yaml-sort.quotingType": {
"type": "string",
"default": "'",
"enum": [
"'",
"\""
],
"description": "Strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters."
},
"vscode-yaml-sort.schema": {
"type": "string",
"default": "DEFAULT_SCHEMA",
"enum": [
"HOMEASSISTANT_SCHEMA",
"CLOUDFORMATION_SCHEMA",
"CORE_SCHEMA",
"DEFAULT_SCHEMA",
"FAILSAFE_SCHEMA",
"JSON_SCHEMA"
],
"description": "Schema to use"
},
"vscode-yaml-sort.sortArrays": {
"type": "boolean",
"default": false,
"description": "When `true`, will sort arrays"
},
"vscode-yaml-sort.sortOrderReverse": {
"type": "boolean",
"default": false,
"description": "When `true`, will sort in reverse order"
},
"vscode-yaml-sort.sortOnSave": {
"type": "number",
"default": 0,
"description": "When `0`, will sort files when saving. When `1`, `2` or `3`, will use customSortKeywords. Set to negative value to disable sortOnSave."
},
"vscode-yaml-sort.useCustomSortRecursively": {
"type": "boolean",
"default": false,
"description": "When true, will use the custom sort keywords recursively on a file, when using custom sort"
},
"vscode-yaml-sort.useLeadingDashes": {
"type": "boolean",
"default": true,
"description": "Define if sorted YAML files should begin with leading dashes."
},
"vscode-yaml-sort.useArrayProcessor": {
"type": "boolean",
"default": true,
"description": "When `true`, will activate ArrayProcessor"
},
"vscode-yaml-sort.useBlockProcessor": {
"type": "boolean",
"default": true,
"description": "When `true`, will activate BlockProcessor"
},
"vscode-yaml-sort.useCommentProcessor": {
"type": "boolean",
"default": true,
"description": "When `true`, will activate CommentProcessor"
},
"vscode-yaml-sort.useHelmProcessor": {
"type": "boolean",
"default": true,
"description": "When `true`, will activate HelmProcessor"
},
"vscode-yaml-sort.useOctalProcessor": {
"type": "boolean",
"default": true,
"description": "When `true`, will activate OctalProcessor"
}
}
},
"commands": [
{
"command": "vscode-yaml-sort.customSortYaml_1",
"title": "YAML Sort: Custom sort 1",
"when": "editorLangId == yaml"
},
{
"command": "vscode-yaml-sort.customSortYaml_2",
"title": "YAML Sort: Custom sort 2",
"when": "editorLangId == yaml"
},
{
"command": "vscode-yaml-sort.customSortYaml_3",
"title": "YAML Sort: Custom sort 3",
"when": "editorLangId == yaml"
},
{
"command": "vscode-yaml-sort.formatYaml",
"title": "YAML Sort: Format YAML",
"when": "editorLangId == yaml"
},
{
"command": "vscode-yaml-sort.sortYaml",
"title": "YAML Sort: Sort YAML",
"when": "editorLangId == yaml"
},
{
"command": "vscode-yaml-sort.sortYamlFilesInDirectory",
"title": "YAML Sort: Recursively sort YAML files"
},
{
"command": "vscode-yaml-sort.validateYaml",
"title": "YAML Sort: Validate YAML",
"when": "editorLangId == yaml"
}
],
"menus": {
"explorer/context": [
{
"command": "vscode-yaml-sort.sortYamlFilesInDirectory",
"title": "Recursively sort YAML files"
}
]
}
},
"scripts": {
"code-analysis": "npx depcruise --validate .dependency-cruiser.js src",
"compile": "tsc -p ./",
"coverage": "rm -rf .nyc_output && rm -rf coverage && nyc npm run test",
"lint": "eslint . --ext .ts",
"lint:fix": "npm run lint -- --fix",
"pretest": "npm run compile",
"sonar": "node sonar-project.js",
"test": "node ./out/test/runTest.js",
"vscode:prepublish": "npm run compile",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/mocha": "^10.0.4",
"@types/node": "^20.11.5",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"coveralls": "3.1.1",
"dependency-cruiser": "^16.0.0",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"jsdoc": "^4.0.2",
"mocha": "^10.2.0",
"nyc": "15.1.0",
"sinon": "^17.0.0",
"sonarqube-scanner": "^3.0.1",
"ts-node": "10.9.2",
"typescript": "^5.3.3",
"typescript-require": "0.3.0"
},
"dependencies": {
"@types/js-yaml": "^4.0.6",
"@types/vscode": "^1.88.0",
"@vscode/test-electron": "^2.1.5",
"cloudformation-js-yaml-schema": "^0.4.2",
"glob": "^10.3.5",
"homeassistant-js-yaml-schema": "^1.1.0",
"js-yaml": "^4.1.0"
}
}