-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
259 lines (259 loc) · 9.59 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
{
"name": "stylus-supremacy",
"displayName": "Manta's Stylus Supremacy",
"description": "Format your Stylus files with ease.",
"version": "4.0.0",
"publisher": "thisismanta",
"categories": [
"Formatters",
"Programming Languages"
],
"keywords": [
"stylus",
"css",
"format",
"pretty",
"beautify"
],
"homepage": "https://thisismanta.github.io/stylus-supremacy",
"repository": {
"type": "git",
"url": "https://github.com/ThisIsManta/vscode-stylus-supremacy.git"
},
"bugs": "https://github.com/ThisIsManta/vscode-stylus-supremacy/issues",
"icon": "docs/logo.png",
"galleryBanner": {
"color": "#D50000",
"theme": "dark"
},
"engines": {
"node": ">=18.0.0",
"vscode": "^1.92.0"
},
"activationEvents": [
"onLanguage:stylus"
],
"main": "dist/extension.js",
"contributes": {
"configuration": {
"title": "Stylus Supremacy",
"properties": {
"stylusSupremacy.insertColons": {
"description": "Insert or remove a colon between a property name and its value.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertSemicolons": {
"description": "Insert or remove a semi-colon after a property value, a variable declaration, a variable assignment and a mixin/function call.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertBraces": {
"description": "Insert or remove a pair of curly braces where they are supposed to be. Note that this option does not affect @block construction, see alwaysUseAtBlock.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertNewLineAroundImports": {
"description": "Insert a new-line around a group of @import/@require(s).\nOnly apply to imports outside a block when set to \"root\", or only apply to imports inside a block when set to \"nested\".",
"enum": [
true,
false,
"root",
"nested"
],
"default": true
},
"stylusSupremacy.insertNewLineAroundBlocks": {
"description": "Insert a new-line around blocks.\nOnly apply to top-level blocks when set to \"root\", or only apply to nested blocks when set to \"nested\".",
"enum": [
true,
false,
"root",
"nested"
],
"default": true
},
"stylusSupremacy.insertNewLineAroundProperties": {
"description": "Insert a new-line around a group of CSS properties.\nUnlike insertNewLineAroundBlocks and insertNewLineAroundOthers, this option cannot be set to \"root\" nor \"nested\" because CSS properties cannot be placed at the top level.",
"type": "boolean",
"default": false
},
"stylusSupremacy.insertNewLineAroundOthers": {
"description": "Insert a new-line around a group of non-properties, non-imports and non-blocks.\nOnly apply to others outside a block when set to \"root\", or only apply to others inside a block when set to \"nested\".",
"enum": [
true,
false,
"root",
"nested"
],
"default": false
},
"stylusSupremacy.insertNewLineBetweenSelectors": {
"deprecated": true,
"description": "Insert or remove a new-line between selectors.\nPlease use selectorSeparator option instead.",
"type": "boolean",
"default": false
},
"stylusSupremacy.preserveNewLinesBetweenPropertyValues": {
"description": "Preserve the new-lines between property values instead of flattening the lines. This also adds/keeps the colon after the property name according to Stylus syntax.",
"enum": [
true,
false
],
"default": false
},
"stylusSupremacy.insertSpaceBeforeComment": {
"description": "Insert or remove a white-space before a comment.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertSpaceAfterComment": {
"description": "Insert or remove a white-space after a comment.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertSpaceAfterComma": {
"description": "Insert or remove a white-space after a comma.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertSpaceInsideParenthesis": {
"description": "Insert or remove a white-space after an open parenthesis and before a close parenthesis.",
"type": "boolean",
"default": false
},
"stylusSupremacy.insertParenthesisAfterNegation": {
"description": "Insert a pair of parentheses or a white-space after a negation operator. This does nothing if a pair of parentheses is already after the negation operator.",
"type": "boolean",
"default": false
},
"stylusSupremacy.insertParenthesisAroundIfCondition": {
"description": "Insert a pair of parentheses around if-condition but does not remove the existing pair of parentheses.",
"type": "boolean",
"default": true
},
"stylusSupremacy.insertNewLineBeforeElse": {
"description": "Insert or remove a new-line before else keyword.",
"type": "boolean",
"default": false
},
"stylusSupremacy.insertLeadingZeroBeforeFraction": {
"description": "Insert or remove a zero before a number that between 1 and 0.",
"type": "boolean",
"default": true
},
"stylusSupremacy.selectorSeparator": {
"description": "Represent a separator between selectors.\nIf the option insertNewLineBetweenSelectors is set to true, then \",\\n\" or \"\\n\" will be used. Also \\r\\n may be used in place of \\n according to newLineChar option.",
"enum": [
",",
", ",
",\n",
"\n"
],
"default": ", "
},
"stylusSupremacy.quoteChar": {
"description": "Represent a quote character that is used to begin and terminate a string. You must choose either a single-quote or a double-quote.\nThis replaces the original quote characters with the given one, unless the string contains the given quote character (see font-family in .class2.) However, if the string starts with data:image/svg+xml;utf8,, the given quote character will be used, and the quote characters in the string will be escaped (see background-image in .class2.)",
"enum": [
"'",
"\""
],
"default": "'"
},
"stylusSupremacy.sortProperties": {
"description": "Can be either false for not sorting, \"alphabetical\" for sorting CSS properties from A to Z, \"grouped\" for sorting CSS properties according to Stylint and nib, or an array of property names that defines the property order, for example [\"color\", \"background\", \"display\"].",
"oneOf": [
{
"enum": [
false,
"alphabetical",
"grouped"
]
},
{
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
],
"default": false
},
"stylusSupremacy.alwaysUseImport": {
"description": "Replace @require with @import, or do nothing.",
"type": "boolean",
"default": false
},
"stylusSupremacy.alwaysUseNot": {
"description": "Replace ! operator with not keyword, or vice versa.",
"type": "boolean",
"default": false
},
"stylusSupremacy.alwaysUseAtBlock": {
"description": "Replace an increased-indent at-block construction with an explicit one with @block keyword or vice versa.\nNote that this option does not incorporate insertBraces option.",
"type": "boolean",
"default": false
},
"stylusSupremacy.alwaysUseExtends": {
"description": "Convert @extend keyword to @extends keyword, or vice versa.",
"type": "boolean",
"default": false
},
"stylusSupremacy.alwaysUseNoneOverZero": {
"description": "Replace 0 (regardless of its unit) with none for border and outline properties, or do nothing.",
"type": "boolean",
"default": false
},
"stylusSupremacy.alwaysUseZeroWithoutUnit": {
"description": "Replace 0 (regardless of its unit) with 0 (without units), or do nothing.\nThere is an exception for flex-basis, which 0 will always have the unit of %, because of the problem with Internet Explorer.",
"type": "boolean",
"default": false
},
"stylusSupremacy.reduceMarginAndPaddingValues": {
"description": "Reduce margin and padding duplicate values by converting margin x x x x to margin x, margin x y x y to margin x y, and margin x y y y to margin x y y where x, y is a unique property value.",
"type": "boolean",
"default": false
},
"stylusSupremacy.ignoreFiles": {
"description": "Do not format the files that match the given Glob patterns.\nFor example, ignoreFiles: [\"bin/**\", \"src/vendors/**\"]",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
}
},
"scripts": {
"upgrade": "npm install --force stylus-supremacy@latest && git commit --all --message=\"Updated stylus-supremacy engine\"",
"postinstall": "code --install-extension connor4312.esbuild-problem-matchers",
"build": "rm -rf ./dist && esbuild edge/extension.ts --bundle --minify --platform=node --outfile=dist/extension.js --external:vscode --format=cjs",
"watch": "npm run build -- --watch --sourcemap",
"vscode:prepublish": "npm run build -- --minify",
"preversion": "tsx ./edge/configurationGenerator.ts",
"version": "npx @vscode/vsce publish --pat $VSCE_PUBLISH_TOKEN"
},
"devDependencies": {
"@thisismanta/semantic-version": "^9.1.0",
"@types/cheerio": "^0.22.35",
"@types/json5": "^2.2.0",
"@types/node": "^18.17.0",
"@types/vscode": "^1.92.0",
"cheerio": "^1.0.0",
"esbuild": "^0.23.1",
"execa": "^9.3.1",
"lefthook": "^1.7.14",
"stylus-supremacy": "^4.0.0",
"tsx": "^4.18.0",
"typescript": "^5.5.4"
},
"overrides": {
"mout": "1.2.4",
"yargs-parser": "5.0.1"
},
"extensionDependencies": [
"sysoev.language-stylus"
]
}