forked from prettier/prettier-vscode
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
382 lines (382 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
382
{
"name": "prettier-plus",
"displayName": "Prettier+",
"description": "Prettier (code formatter) for the VS Code.",
"version": "4.2.2",
"publisher": "svipas",
"main": "./dist/main.js",
"icon": "icon.png",
"galleryBanner": {
"color": "#ffe04b",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/svipas/vscode-prettier-plus.git"
},
"bugs": {
"url": "https://github.com/svipas/vscode-prettier-plus/issues"
},
"engines": {
"vscode": "^1.30.0"
},
"extensionKind": [
"workspace"
],
"categories": [
"Formatters"
],
"activationEvents": [
"*"
],
"contributes": {
"configuration": {
"title": "Prettier+",
"properties": {
"prettier.disableLanguages": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of languages IDs to ignore. Restart required.",
"scope": "window"
},
"prettier.eslintIntegration": {
"type": "boolean",
"default": false,
"description": "Use 'prettier-eslint' to format JavaScript, TypeScript and Vue.",
"scope": "resource"
},
"prettier.tslintIntegration": {
"type": "boolean",
"default": false,
"description": "Use 'prettier-tslint' to format TypeScript.",
"scope": "resource"
},
"prettier.stylelintIntegration": {
"type": "boolean",
"default": false,
"description": "Use 'prettier-stylelint' to format CSS, SCSS and Less.",
"scope": "resource"
},
"prettier.requireConfig": {
"type": "boolean",
"default": false,
"description": "Require a config file to format code.",
"scope": "resource"
},
"prettier.ignorePath": {
"type": "string",
"default": ".prettierignore",
"description": "Path to a '.prettierignore' or similar file such as '.gitignore'. Files which match will not be formatted. Set to 'null' to not read ignore files. Restart required.",
"scope": "resource"
},
"prettier.printWidth": {
"type": "integer",
"default": 80,
"description": "Specify the line length that the printer will wrap on.",
"scope": "resource"
},
"prettier.tabWidth": {
"type": "integer",
"default": 2,
"description": "Specify the number of spaces per indentation-level.",
"scope": "resource"
},
"prettier.singleQuote": {
"type": "boolean",
"default": false,
"description": "Use single quotes instead of double quotes.",
"scope": "resource"
},
"prettier.trailingComma": {
"type": "string",
"enum": [
"es5",
"none",
"all"
],
"default": "es5",
"description": "Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)",
"enumDescriptions": [
"Trailing commas where valid in ES5 (objects, arrays, etc.)",
"No trailing commas.",
"Trailing commas wherever possible (including function arguments). This requires node 8 or a transform."
],
"scope": "resource"
},
"prettier.bracketSpacing": {
"type": "boolean",
"default": true,
"description": "Print spaces between brackets in object literals.",
"scope": "resource"
},
"prettier.jsxBracketSameLine": {
"type": "boolean",
"default": false,
"description": "Put the '>' of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
"scope": "resource"
},
"prettier.parser": {
"type": "string",
"enum": [
"",
"babel",
"babel-flow",
"babel-ts",
"flow",
"typescript",
"css",
"scss",
"less",
"json",
"json5",
"json-stringify",
"graphql",
"markdown",
"mdx",
"html",
"vue",
"angular",
"lwc",
"yaml"
],
"default": "",
"description": "Specify which parser to use.\nPrettier automatically infers the parser from the input file path, so you shouldn't have to change this setting.\nBoth the 'babel' and 'flow' parsers support the same set of JavaScript features (including Flow type annotations).\nThey might differ in some edge cases, so if you run into one of those you can try 'flow' instead of 'babel'.",
"enumDescriptions": [
"Automatically infers the parser from the input file path.",
"Via '@babel/parser' named 'babylon' until v1.16.0",
"Same as 'babel' but enables Flow parsing explicitly to avoid ambiguity. First available in v1.16.0",
"Similar to 'typescript' but uses Babel and its TypeScript plugin. First available in v2.0.0",
"Via 'flow-parser'",
"Via '@typescript-eslint/typescript-estree'. First available in v1.4.0",
"Via 'postcss-scss' and 'postcss-less', autodetects which to use. First available in v1.7.1",
"Same parsers as 'css', prefers 'postcss-scss'. First available in v1.7.1",
"Same parsers as 'css', prefers 'postcss-less'. First available in v1.7.1",
"Via '@babel/parser parseExpression'. First available in v1.5.0",
"Same parser as 'json', but outputs as 'json5'. First available in v1.13.0",
"Same parser as 'json', but outputs like 'JSON.stringify'. First available in v1.13.0",
"Via 'graphql/language'. First available in v1.5.0",
"Via 'remark-parse'. First available in v1.8.0",
"Via 'remark-parse' and '@mdx-js/mdx'. First available in v1.15.0",
"Via 'angular-html-parser'. First available in 1.15.0",
"Same parser as 'html', but also formats vue-specific syntax. First available in 1.10.0",
"Same parser as 'html', but also formats angular-specific syntax via 'angular-estree-parser'. First available in 1.15.0",
"Same parser as 'html', but also formats LWC-specific syntax for unquoted template attributes. First available in 1.17.0",
"Via 'yaml' and 'yaml-unist-parser'. First available in 1.14.0"
],
"scope": "resource"
},
"prettier.semi": {
"type": "boolean",
"default": true,
"description": "Print semicolons at the ends of statements.",
"scope": "resource"
},
"prettier.useTabs": {
"type": "boolean",
"default": false,
"description": "Indent lines with tabs instead of spaces.",
"scope": "resource"
},
"prettier.proseWrap": {
"type": "string",
"enum": [
"preserve",
"always",
"never"
],
"default": "preserve",
"description": "By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out with 'never'.",
"enumDescriptions": [
"Wrap prose as-is. First available in v1.9.0",
"Wrap prose if it exceeds the print width.",
"Do not wrap prose."
],
"scope": "resource"
},
"prettier.arrowParens": {
"type": "string",
"enum": [
"always",
"avoid"
],
"default": "always",
"description": "Include parentheses around a sole arrow function parameter.",
"enumDescriptions": [
"Always include parens. Example: (x) => x",
"Omit parens when possible. Example: x => x"
],
"scope": "resource"
},
"prettier.jsxSingleQuote": {
"type": "boolean",
"default": false,
"description": "Use single quotes instead of double quotes in JSX.",
"scope": "resource"
},
"prettier.htmlWhitespaceSensitivity": {
"type": "string",
"enum": [
"css",
"strict",
"ignore"
],
"default": "css",
"description": "Specify the global whitespace sensitivity for HTML files.",
"enumDescriptions": [
"Respect the default value of CSS 'display' property.",
"Whitespaces are considered sensitive.",
"Whitespaces are considered insensitive."
],
"scope": "resource"
},
"prettier.vueIndentScriptAndStyle": {
"type": "boolean",
"default": false,
"description": "Whether or not to indent the code inside <script> and <style> tags in Vue files. Some people (like the creator of Vue) don’t indent to save an indentation level, but this might break code folding in your editor.",
"scope": "resource"
},
"prettier.endOfLine": {
"type": "string",
"enum": [
"lf",
"crlf",
"cr",
"auto"
],
"default": "auto",
"description": "Specify the end of line used by Prettier.",
"enumDescriptions": [
"Line Feed only (\\n), common on Linux and macOS as well as inside git repos",
"Carriage Return + Line Feed characters (\\r\\n), common on Windows",
"Carriage Return character only (\\r), used very rarely",
"Maintain existing line endings (mixed values within one file are normalised by looking at what's used after the first line)"
],
"scope": "resource"
},
"prettier.quoteProps": {
"type": "string",
"enum": [
"as-needed",
"consistent",
"preserve"
],
"default": "as-needed",
"description": "Change when properties in objects are quoted.",
"enumDescriptions": [
"Only add quotes around object properties where required.",
"If at least one property in an object requires quotes, quote all properties.",
"Respect the input use of quotes in object properties."
],
"scope": "resource"
}
}
},
"jsonValidation": [
{
"fileMatch": ".prettierrc",
"url": "http://json.schemastore.org/prettierrc"
},
{
"fileMatch": ".prettierrc.json",
"url": "http://json.schemastore.org/prettierrc"
},
{
"fileMatch": "package.json",
"url": "./package-json-schema.json"
}
],
"languages": [
{
"id": "json",
"filenames": [
".prettierrc"
]
},
{
"id": "ignore",
"filenames": [
".prettierignore"
]
},
{
"id": "graphql",
"extensions": [
".graphql"
]
},
{
"id": "vue",
"extensions": [
".vue"
]
}
]
},
"scripts": {
"build": "node scripts/fixPrettierIntegrations.js && webpack --mode production",
"pretest": "tsc -p ./ && yarn build && cd test-fixtures/eslint && yarn && cd ../tslint && yarn && cd ../stylelint && yarn",
"test": "node ./out/test/runTest.js",
"vscode:publish": "vsce publish --yarn",
"vscode:prepublish": "yarn build"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.18",
"@types/vscode": "^1.30.0",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"ts-loader": "^7.0.5",
"typescript": "^3.9.6",
"vscode-test": "^1.4.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"core-js": "^3.6.5",
"ignore": "^5.1.8",
"prettier": "2.0.5",
"prettier-eslint": "^11.0.0",
"prettier-stylelint": "^0.4.2",
"prettier-tslint": "^0.4.2"
},
"keywords": [
"prettier",
"opinionated",
"code",
"formatter",
"javascript",
"js",
"jsx",
"flow",
"typescript",
"ts",
"json",
"css",
"less",
"scss",
"styled-components",
"styled-jsx",
"markdown",
"md",
"commonmark",
"mdx",
"php",
"pug",
"ruby",
"swift",
"xml",
"html",
"vue",
"angular",
"graphql",
"yaml",
"yml",
"react",
"reactjs",
"node",
"nodejs"
]
}