@teambit/prettier 1.0.186 → 1.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.defender/prettier@1.0.186" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/prettier@1.0.188" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={43005:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.186",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(41594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},41594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>e,compositions_metadata:()=>i,overview:()=>t});const e=[o(43005)],t=[],i={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={55888:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.188",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(41594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},41594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>e,compositions_metadata:()=>i,overview:()=>t});const e=[o(55888)],t=[],i={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -1,4 +1,4 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_prettier@1.0.186/dist/prettier.composition.js';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_prettier@1.0.188/dist/prettier.composition.js';
2
2
  ;
3
3
 
4
4
  export const compositions = [compositions_0];
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@teambit/prettier",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "homepage": "https://bit.cloud/teambit/defender/prettier",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "prettier",
9
- "version": "1.0.186"
9
+ "version": "1.0.188"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
- "prettier": "2.3.2",
13
+ "prettier": "2.8.8",
14
14
  "@teambit/harmony": "0.4.6",
15
- "@teambit/envs": "1.0.186",
16
- "@teambit/formatter": "1.0.186",
17
- "@teambit/logger": "0.0.947",
18
- "@teambit/cli": "0.0.854",
19
- "@teambit/defender.prettier.config-mutator": "0.0.96",
20
- "@teambit/workspace-config-files": "1.0.186"
15
+ "@teambit/envs": "1.0.188",
16
+ "@teambit/formatter": "1.0.188",
17
+ "@teambit/logger": "0.0.948",
18
+ "@teambit/cli": "0.0.855",
19
+ "@teambit/defender.prettier.config-mutator": "0.0.97",
20
+ "@teambit/workspace-config-files": "1.0.188"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/prettier": "2.3.2",
@@ -1,1208 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "VariableLikeSchema",
18
- "location": {
19
- "filePath": "prettier.aspect.ts",
20
- "line": 3,
21
- "character": 14
22
- },
23
- "signature": "const PrettierAspect: Aspect",
24
- "name": "PrettierAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
27
- "location": {
28
- "filePath": "prettier.aspect.ts",
29
- "line": 3,
30
- "character": 14
31
- },
32
- "name": "Aspect",
33
- "componentId": {
34
- "scope": "teambit.harmony",
35
- "name": "harmony",
36
- "version": "0.4.6"
37
- }
38
- },
39
- "isOptional": false,
40
- "defaultValue": "Aspect.create({\n id: 'teambit.defender/prettier',\n})"
41
- },
42
- {
43
- "__schema": "ClassSchema",
44
- "location": {
45
- "filePath": "prettier.main.runtime.ts",
46
- "line": 26,
47
- "character": 1
48
- },
49
- "signature": "class PrettierMain",
50
- "name": "PrettierMain",
51
- "members": [
52
- {
53
- "__schema": "ConstructorSchema",
54
- "location": {
55
- "filePath": "prettier.main.runtime.ts",
56
- "line": 27,
57
- "character": 3
58
- },
59
- "signature": "constructor PrettierMain(logger: Logger): PrettierMain",
60
- "name": "constructor",
61
- "params": [
62
- {
63
- "__schema": "ParameterSchema",
64
- "location": {
65
- "filePath": "prettier.main.runtime.ts",
66
- "line": 27,
67
- "character": 15
68
- },
69
- "name": "logger",
70
- "type": {
71
- "__schema": "TypeRefSchema",
72
- "location": {
73
- "filePath": "prettier.main.runtime.ts",
74
- "line": 27,
75
- "character": 31
76
- },
77
- "name": "Logger"
78
- },
79
- "isOptional": false,
80
- "isSpread": false
81
- }
82
- ],
83
- "returnType": {
84
- "__schema": "ThisTypeSchema",
85
- "location": {
86
- "filePath": "prettier.main.runtime.ts",
87
- "line": 26,
88
- "character": 1
89
- },
90
- "name": "PrettierMain"
91
- },
92
- "modifiers": []
93
- },
94
- {
95
- "__schema": "FunctionLikeSchema",
96
- "location": {
97
- "filePath": "prettier.main.runtime.ts",
98
- "line": 33,
99
- "character": 3
100
- },
101
- "doc": {
102
- "__schema": "DocSchema",
103
- "location": {
104
- "filePath": "prettier.main.runtime.ts",
105
- "line": 28,
106
- "character": 3
107
- },
108
- "raw": "/**\n * create a prettier formatter instance.\n * @param options prettier options.\n * @param PrettierModule reference to an `prettier` module.\n */",
109
- "comment": "create a prettier formatter instance.",
110
- "tags": [
111
- {
112
- "__schema": "PropertyLikeTagSchema",
113
- "location": {
114
- "filePath": "prettier.main.runtime.ts",
115
- "line": 30,
116
- "character": 6
117
- },
118
- "name": "options",
119
- "tagName": "parameter",
120
- "comment": "prettier options."
121
- },
122
- {
123
- "__schema": "PropertyLikeTagSchema",
124
- "location": {
125
- "filePath": "prettier.main.runtime.ts",
126
- "line": 31,
127
- "character": 6
128
- },
129
- "name": "PrettierModule",
130
- "tagName": "parameter",
131
- "comment": "reference to an `prettier` module."
132
- }
133
- ]
134
- },
135
- "signature": "(method) PrettierMain.createFormatter(formatterOptions: FormatterOptions | undefined, options: PrettierOptions, transformers?: PrettierConfigTransformer[], PrettierModule?: any): Formatter",
136
- "name": "createFormatter",
137
- "params": [
138
- {
139
- "__schema": "ParameterSchema",
140
- "location": {
141
- "filePath": "prettier.main.runtime.ts",
142
- "line": 34,
143
- "character": 5
144
- },
145
- "name": "formatterOptions",
146
- "type": {
147
- "__schema": "TypeRefSchema",
148
- "location": {
149
- "filePath": "prettier.main.runtime.ts",
150
- "line": 34,
151
- "character": 23
152
- },
153
- "name": "FormatterOptions"
154
- },
155
- "isOptional": true,
156
- "defaultValue": "{}",
157
- "isSpread": false
158
- },
159
- {
160
- "__schema": "ParameterSchema",
161
- "location": {
162
- "filePath": "prettier.main.runtime.ts",
163
- "line": 35,
164
- "character": 5
165
- },
166
- "name": "options",
167
- "type": {
168
- "__schema": "TypeRefSchema",
169
- "location": {
170
- "filePath": "prettier.main.runtime.ts",
171
- "line": 35,
172
- "character": 14
173
- },
174
- "name": "PrettierOptions"
175
- },
176
- "isOptional": false,
177
- "isSpread": false
178
- },
179
- {
180
- "__schema": "ParameterSchema",
181
- "location": {
182
- "filePath": "prettier.main.runtime.ts",
183
- "line": 36,
184
- "character": 5
185
- },
186
- "name": "transformers",
187
- "type": {
188
- "__schema": "TypeArraySchema",
189
- "location": {
190
- "filePath": "prettier.main.runtime.ts",
191
- "line": 36,
192
- "character": 19
193
- },
194
- "type": {
195
- "__schema": "TypeRefSchema",
196
- "location": {
197
- "filePath": "prettier.main.runtime.ts",
198
- "line": 36,
199
- "character": 19
200
- },
201
- "name": "PrettierConfigTransformer"
202
- }
203
- },
204
- "isOptional": true,
205
- "defaultValue": "[]",
206
- "isSpread": false
207
- },
208
- {
209
- "__schema": "ParameterSchema",
210
- "location": {
211
- "filePath": "prettier.main.runtime.ts",
212
- "line": 37,
213
- "character": 5
214
- },
215
- "name": "PrettierModule",
216
- "type": {
217
- "__schema": "KeywordTypeSchema",
218
- "location": {
219
- "filePath": "prettier.main.runtime.ts",
220
- "line": 37,
221
- "character": 22
222
- },
223
- "name": "any"
224
- },
225
- "isOptional": true,
226
- "isSpread": false
227
- }
228
- ],
229
- "returnType": {
230
- "__schema": "TypeRefSchema",
231
- "location": {
232
- "filePath": "prettier.main.runtime.ts",
233
- "line": 33,
234
- "character": 3
235
- },
236
- "name": "Formatter",
237
- "componentId": {
238
- "scope": "teambit.defender",
239
- "name": "formatter"
240
- }
241
- },
242
- "modifiers": []
243
- },
244
- {
245
- "__schema": "VariableLikeSchema",
246
- "location": {
247
- "filePath": "prettier.main.runtime.ts",
248
- "line": 45,
249
- "character": 3
250
- },
251
- "signature": "(property) PrettierMain.runtime: RuntimeDefinition",
252
- "name": "runtime",
253
- "type": {
254
- "__schema": "InferenceTypeSchema",
255
- "location": {
256
- "filePath": "prettier.main.runtime.ts",
257
- "line": 45,
258
- "character": 3
259
- },
260
- "type": "RuntimeDefinition"
261
- },
262
- "isOptional": true,
263
- "defaultValue": "MainRuntime"
264
- },
265
- {
266
- "__schema": "VariableLikeSchema",
267
- "location": {
268
- "filePath": "prettier.main.runtime.ts",
269
- "line": 47,
270
- "character": 3
271
- },
272
- "signature": "(property) PrettierMain.dependencies: Aspect[]",
273
- "name": "dependencies",
274
- "type": {
275
- "__schema": "InferenceTypeSchema",
276
- "location": {
277
- "filePath": "prettier.main.runtime.ts",
278
- "line": 47,
279
- "character": 3
280
- },
281
- "type": "Aspect[]"
282
- },
283
- "isOptional": true,
284
- "defaultValue": "[LoggerAspect]"
285
- },
286
- {
287
- "__schema": "FunctionLikeSchema",
288
- "location": {
289
- "filePath": "prettier.main.runtime.ts",
290
- "line": 49,
291
- "character": 3
292
- },
293
- "signature": "(method) PrettierMain.provider([loggerExt]: [LoggerMain, FormatterMain, WorkspaceConfigFilesMain]): Promise<PrettierMain>",
294
- "name": "provider",
295
- "params": [
296
- {
297
- "__schema": "ParameterSchema",
298
- "location": {
299
- "filePath": "prettier.main.runtime.ts",
300
- "line": 49,
301
- "character": 25
302
- },
303
- "name": "[ loggerExt ]",
304
- "type": {
305
- "__schema": "TupleTypeSchema",
306
- "location": {
307
- "filePath": "prettier.main.runtime.ts",
308
- "line": 49,
309
- "character": 38
310
- },
311
- "elements": [
312
- {
313
- "__schema": "TypeRefSchema",
314
- "location": {
315
- "filePath": "prettier.main.runtime.ts",
316
- "line": 49,
317
- "character": 39
318
- },
319
- "name": "LoggerMain"
320
- },
321
- {
322
- "__schema": "TypeRefSchema",
323
- "location": {
324
- "filePath": "prettier.main.runtime.ts",
325
- "line": 49,
326
- "character": 51
327
- },
328
- "name": "FormatterMain"
329
- },
330
- {
331
- "__schema": "TypeRefSchema",
332
- "location": {
333
- "filePath": "prettier.main.runtime.ts",
334
- "line": 49,
335
- "character": 66
336
- },
337
- "name": "WorkspaceConfigFilesMain"
338
- }
339
- ]
340
- },
341
- "isOptional": false,
342
- "isSpread": false
343
- }
344
- ],
345
- "returnType": {
346
- "__schema": "TypeRefSchema",
347
- "location": {
348
- "filePath": "prettier.main.runtime.ts",
349
- "line": 49,
350
- "character": 94
351
- },
352
- "name": "Promise",
353
- "typeArgs": [
354
- {
355
- "__schema": "TypeRefSchema",
356
- "location": {
357
- "filePath": "prettier.main.runtime.ts",
358
- "line": 49,
359
- "character": 102
360
- },
361
- "name": "PrettierMain"
362
- }
363
- ]
364
- },
365
- "modifiers": [
366
- "static",
367
- "async"
368
- ]
369
- }
370
- ],
371
- "extendsNodes": [],
372
- "implementNodes": []
373
- },
374
- {
375
- "__schema": "TypeSchema",
376
- "location": {
377
- "filePath": "prettier.main.runtime.ts",
378
- "line": 10,
379
- "character": 1
380
- },
381
- "signature": "type PrettierOptions = {\n config: PrettierModuleOptions;\n}",
382
- "name": "PrettierOptions",
383
- "type": {
384
- "__schema": "TypeLiteralSchema",
385
- "location": {
386
- "filePath": "prettier.main.runtime.ts",
387
- "line": 10,
388
- "character": 31
389
- },
390
- "members": [
391
- {
392
- "__schema": "VariableLikeSchema",
393
- "location": {
394
- "filePath": "prettier.main.runtime.ts",
395
- "line": 14,
396
- "character": 3
397
- },
398
- "doc": {
399
- "__schema": "DocSchema",
400
- "location": {
401
- "filePath": "prettier.main.runtime.ts",
402
- "line": 11,
403
- "character": 3
404
- },
405
- "raw": "/**\n * formatter config for prettier.\n */",
406
- "comment": "formatter config for prettier."
407
- },
408
- "signature": "(property) config: PrettierModuleOptions",
409
- "name": "config",
410
- "type": {
411
- "__schema": "TypeRefSchema",
412
- "location": {
413
- "filePath": "prettier.main.runtime.ts",
414
- "line": 14,
415
- "character": 11
416
- },
417
- "name": "PrettierModuleOptions"
418
- },
419
- "isOptional": false
420
- }
421
- ]
422
- }
423
- },
424
- {
425
- "__schema": "TypeSchema",
426
- "location": {
427
- "filePath": "prettier.main.runtime.ts",
428
- "line": 21,
429
- "character": 1
430
- },
431
- "signature": "type PrettierConfigTransformer = (config: PrettierConfigMutator, context: PrettierConfigTransformContext) => PrettierConfigMutator",
432
- "name": "PrettierConfigTransformer",
433
- "type": {
434
- "__schema": "FunctionLikeSchema",
435
- "location": {
436
- "filePath": "prettier.main.runtime.ts",
437
- "line": 21,
438
- "character": 41
439
- },
440
- "signature": "(config: PrettierConfigMutator, context: PrettierConfigTransformContext): PrettierConfigMutator",
441
- "name": "",
442
- "params": [
443
- {
444
- "__schema": "ParameterSchema",
445
- "location": {
446
- "filePath": "prettier.main.runtime.ts",
447
- "line": 22,
448
- "character": 3
449
- },
450
- "name": "config",
451
- "type": {
452
- "__schema": "TypeRefSchema",
453
- "location": {
454
- "filePath": "prettier.main.runtime.ts",
455
- "line": 22,
456
- "character": 11
457
- },
458
- "name": "PrettierConfigMutator"
459
- },
460
- "isOptional": false,
461
- "isSpread": false
462
- },
463
- {
464
- "__schema": "ParameterSchema",
465
- "location": {
466
- "filePath": "prettier.main.runtime.ts",
467
- "line": 23,
468
- "character": 3
469
- },
470
- "name": "context",
471
- "type": {
472
- "__schema": "TypeRefSchema",
473
- "location": {
474
- "filePath": "prettier.main.runtime.ts",
475
- "line": 23,
476
- "character": 12
477
- },
478
- "name": "PrettierConfigTransformContext"
479
- },
480
- "isOptional": false,
481
- "isSpread": false
482
- }
483
- ],
484
- "returnType": {
485
- "__schema": "TypeRefSchema",
486
- "location": {
487
- "filePath": "prettier.main.runtime.ts",
488
- "line": 24,
489
- "character": 6
490
- },
491
- "name": "PrettierConfigMutator"
492
- },
493
- "modifiers": []
494
- }
495
- },
496
- {
497
- "__schema": "TypeSchema",
498
- "location": {
499
- "filePath": "prettier.main.runtime.ts",
500
- "line": 17,
501
- "character": 1
502
- },
503
- "signature": "type PrettierConfigTransformContext = {\n check: boolean;\n}",
504
- "name": "PrettierConfigTransformContext",
505
- "type": {
506
- "__schema": "TypeLiteralSchema",
507
- "location": {
508
- "filePath": "prettier.main.runtime.ts",
509
- "line": 17,
510
- "character": 46
511
- },
512
- "members": [
513
- {
514
- "__schema": "VariableLikeSchema",
515
- "location": {
516
- "filePath": "prettier.main.runtime.ts",
517
- "line": 18,
518
- "character": 3
519
- },
520
- "signature": "(property) check: boolean",
521
- "name": "check",
522
- "type": {
523
- "__schema": "KeywordTypeSchema",
524
- "location": {
525
- "filePath": "prettier.main.runtime.ts",
526
- "line": 18,
527
- "character": 10
528
- },
529
- "name": "boolean"
530
- },
531
- "isOptional": false
532
- }
533
- ]
534
- }
535
- },
536
- {
537
- "__schema": "UnImplementedSchema",
538
- "location": {
539
- "filePath": "index.ts",
540
- "line": 10,
541
- "character": 16
542
- },
543
- "name": "PrettierAspect",
544
- "type": "Identifier"
545
- }
546
- ],
547
- "internals": []
548
- },
549
- "internals": [
550
- {
551
- "__schema": "ModuleSchema",
552
- "location": {
553
- "filePath": "prettier.aspect.ts",
554
- "line": 1,
555
- "character": 1
556
- },
557
- "exports": [
558
- {
559
- "__schema": "VariableLikeSchema",
560
- "location": {
561
- "filePath": "prettier.aspect.ts",
562
- "line": 3,
563
- "character": 14
564
- },
565
- "signature": "const PrettierAspect: Aspect",
566
- "name": "PrettierAspect",
567
- "type": {
568
- "__schema": "TypeRefSchema",
569
- "location": {
570
- "filePath": "prettier.aspect.ts",
571
- "line": 3,
572
- "character": 14
573
- },
574
- "name": "Aspect",
575
- "componentId": {
576
- "scope": "teambit.harmony",
577
- "name": "harmony",
578
- "version": "0.4.6"
579
- }
580
- },
581
- "isOptional": false,
582
- "defaultValue": "Aspect.create({\n id: 'teambit.defender/prettier',\n})"
583
- }
584
- ],
585
- "internals": []
586
- },
587
- {
588
- "__schema": "ModuleSchema",
589
- "location": {
590
- "filePath": "prettier.main.runtime.ts",
591
- "line": 1,
592
- "character": 1
593
- },
594
- "exports": [
595
- {
596
- "__schema": "TypeSchema",
597
- "location": {
598
- "filePath": "prettier.main.runtime.ts",
599
- "line": 10,
600
- "character": 1
601
- },
602
- "signature": "type PrettierOptions = {\n config: PrettierModuleOptions;\n}",
603
- "name": "PrettierOptions",
604
- "type": {
605
- "__schema": "TypeLiteralSchema",
606
- "location": {
607
- "filePath": "prettier.main.runtime.ts",
608
- "line": 10,
609
- "character": 31
610
- },
611
- "members": [
612
- {
613
- "__schema": "VariableLikeSchema",
614
- "location": {
615
- "filePath": "prettier.main.runtime.ts",
616
- "line": 14,
617
- "character": 3
618
- },
619
- "doc": {
620
- "__schema": "DocSchema",
621
- "location": {
622
- "filePath": "prettier.main.runtime.ts",
623
- "line": 11,
624
- "character": 3
625
- },
626
- "raw": "/**\n * formatter config for prettier.\n */",
627
- "comment": "formatter config for prettier."
628
- },
629
- "signature": "(property) config: PrettierModuleOptions",
630
- "name": "config",
631
- "type": {
632
- "__schema": "TypeRefSchema",
633
- "location": {
634
- "filePath": "prettier.main.runtime.ts",
635
- "line": 14,
636
- "character": 11
637
- },
638
- "name": "PrettierModuleOptions"
639
- },
640
- "isOptional": false
641
- }
642
- ]
643
- }
644
- },
645
- {
646
- "__schema": "TypeSchema",
647
- "location": {
648
- "filePath": "prettier.main.runtime.ts",
649
- "line": 17,
650
- "character": 1
651
- },
652
- "signature": "type PrettierConfigTransformContext = {\n check: boolean;\n}",
653
- "name": "PrettierConfigTransformContext",
654
- "type": {
655
- "__schema": "TypeLiteralSchema",
656
- "location": {
657
- "filePath": "prettier.main.runtime.ts",
658
- "line": 17,
659
- "character": 46
660
- },
661
- "members": [
662
- {
663
- "__schema": "VariableLikeSchema",
664
- "location": {
665
- "filePath": "prettier.main.runtime.ts",
666
- "line": 18,
667
- "character": 3
668
- },
669
- "signature": "(property) check: boolean",
670
- "name": "check",
671
- "type": {
672
- "__schema": "KeywordTypeSchema",
673
- "location": {
674
- "filePath": "prettier.main.runtime.ts",
675
- "line": 18,
676
- "character": 10
677
- },
678
- "name": "boolean"
679
- },
680
- "isOptional": false
681
- }
682
- ]
683
- }
684
- },
685
- {
686
- "__schema": "TypeSchema",
687
- "location": {
688
- "filePath": "prettier.main.runtime.ts",
689
- "line": 21,
690
- "character": 1
691
- },
692
- "signature": "type PrettierConfigTransformer = (config: PrettierConfigMutator, context: PrettierConfigTransformContext) => PrettierConfigMutator",
693
- "name": "PrettierConfigTransformer",
694
- "type": {
695
- "__schema": "FunctionLikeSchema",
696
- "location": {
697
- "filePath": "prettier.main.runtime.ts",
698
- "line": 21,
699
- "character": 41
700
- },
701
- "signature": "(config: PrettierConfigMutator, context: PrettierConfigTransformContext): PrettierConfigMutator",
702
- "name": "",
703
- "params": [
704
- {
705
- "__schema": "ParameterSchema",
706
- "location": {
707
- "filePath": "prettier.main.runtime.ts",
708
- "line": 22,
709
- "character": 3
710
- },
711
- "name": "config",
712
- "type": {
713
- "__schema": "TypeRefSchema",
714
- "location": {
715
- "filePath": "prettier.main.runtime.ts",
716
- "line": 22,
717
- "character": 11
718
- },
719
- "name": "PrettierConfigMutator"
720
- },
721
- "isOptional": false,
722
- "isSpread": false
723
- },
724
- {
725
- "__schema": "ParameterSchema",
726
- "location": {
727
- "filePath": "prettier.main.runtime.ts",
728
- "line": 23,
729
- "character": 3
730
- },
731
- "name": "context",
732
- "type": {
733
- "__schema": "TypeRefSchema",
734
- "location": {
735
- "filePath": "prettier.main.runtime.ts",
736
- "line": 23,
737
- "character": 12
738
- },
739
- "name": "PrettierConfigTransformContext"
740
- },
741
- "isOptional": false,
742
- "isSpread": false
743
- }
744
- ],
745
- "returnType": {
746
- "__schema": "TypeRefSchema",
747
- "location": {
748
- "filePath": "prettier.main.runtime.ts",
749
- "line": 24,
750
- "character": 6
751
- },
752
- "name": "PrettierConfigMutator"
753
- },
754
- "modifiers": []
755
- }
756
- },
757
- {
758
- "__schema": "ClassSchema",
759
- "location": {
760
- "filePath": "prettier.main.runtime.ts",
761
- "line": 26,
762
- "character": 1
763
- },
764
- "signature": "class PrettierMain",
765
- "name": "PrettierMain",
766
- "members": [
767
- {
768
- "__schema": "ConstructorSchema",
769
- "location": {
770
- "filePath": "prettier.main.runtime.ts",
771
- "line": 27,
772
- "character": 3
773
- },
774
- "signature": "constructor PrettierMain(logger: Logger): PrettierMain",
775
- "name": "constructor",
776
- "params": [
777
- {
778
- "__schema": "ParameterSchema",
779
- "location": {
780
- "filePath": "prettier.main.runtime.ts",
781
- "line": 27,
782
- "character": 15
783
- },
784
- "name": "logger",
785
- "type": {
786
- "__schema": "TypeRefSchema",
787
- "location": {
788
- "filePath": "prettier.main.runtime.ts",
789
- "line": 27,
790
- "character": 31
791
- },
792
- "name": "Logger"
793
- },
794
- "isOptional": false,
795
- "isSpread": false
796
- }
797
- ],
798
- "returnType": {
799
- "__schema": "ThisTypeSchema",
800
- "location": {
801
- "filePath": "prettier.main.runtime.ts",
802
- "line": 26,
803
- "character": 1
804
- },
805
- "name": "PrettierMain"
806
- },
807
- "modifiers": []
808
- },
809
- {
810
- "__schema": "FunctionLikeSchema",
811
- "location": {
812
- "filePath": "prettier.main.runtime.ts",
813
- "line": 33,
814
- "character": 3
815
- },
816
- "doc": {
817
- "__schema": "DocSchema",
818
- "location": {
819
- "filePath": "prettier.main.runtime.ts",
820
- "line": 28,
821
- "character": 3
822
- },
823
- "raw": "/**\n * create a prettier formatter instance.\n * @param options prettier options.\n * @param PrettierModule reference to an `prettier` module.\n */",
824
- "comment": "create a prettier formatter instance.",
825
- "tags": [
826
- {
827
- "__schema": "PropertyLikeTagSchema",
828
- "location": {
829
- "filePath": "prettier.main.runtime.ts",
830
- "line": 30,
831
- "character": 6
832
- },
833
- "name": "options",
834
- "tagName": "parameter",
835
- "comment": "prettier options."
836
- },
837
- {
838
- "__schema": "PropertyLikeTagSchema",
839
- "location": {
840
- "filePath": "prettier.main.runtime.ts",
841
- "line": 31,
842
- "character": 6
843
- },
844
- "name": "PrettierModule",
845
- "tagName": "parameter",
846
- "comment": "reference to an `prettier` module."
847
- }
848
- ]
849
- },
850
- "signature": "(method) PrettierMain.createFormatter(formatterOptions: FormatterOptions | undefined, options: PrettierOptions, transformers?: PrettierConfigTransformer[], PrettierModule?: any): Formatter",
851
- "name": "createFormatter",
852
- "params": [
853
- {
854
- "__schema": "ParameterSchema",
855
- "location": {
856
- "filePath": "prettier.main.runtime.ts",
857
- "line": 34,
858
- "character": 5
859
- },
860
- "name": "formatterOptions",
861
- "type": {
862
- "__schema": "TypeRefSchema",
863
- "location": {
864
- "filePath": "prettier.main.runtime.ts",
865
- "line": 34,
866
- "character": 23
867
- },
868
- "name": "FormatterOptions"
869
- },
870
- "isOptional": true,
871
- "defaultValue": "{}",
872
- "isSpread": false
873
- },
874
- {
875
- "__schema": "ParameterSchema",
876
- "location": {
877
- "filePath": "prettier.main.runtime.ts",
878
- "line": 35,
879
- "character": 5
880
- },
881
- "name": "options",
882
- "type": {
883
- "__schema": "TypeRefSchema",
884
- "location": {
885
- "filePath": "prettier.main.runtime.ts",
886
- "line": 35,
887
- "character": 14
888
- },
889
- "name": "PrettierOptions"
890
- },
891
- "isOptional": false,
892
- "isSpread": false
893
- },
894
- {
895
- "__schema": "ParameterSchema",
896
- "location": {
897
- "filePath": "prettier.main.runtime.ts",
898
- "line": 36,
899
- "character": 5
900
- },
901
- "name": "transformers",
902
- "type": {
903
- "__schema": "TypeArraySchema",
904
- "location": {
905
- "filePath": "prettier.main.runtime.ts",
906
- "line": 36,
907
- "character": 19
908
- },
909
- "type": {
910
- "__schema": "TypeRefSchema",
911
- "location": {
912
- "filePath": "prettier.main.runtime.ts",
913
- "line": 36,
914
- "character": 19
915
- },
916
- "name": "PrettierConfigTransformer"
917
- }
918
- },
919
- "isOptional": true,
920
- "defaultValue": "[]",
921
- "isSpread": false
922
- },
923
- {
924
- "__schema": "ParameterSchema",
925
- "location": {
926
- "filePath": "prettier.main.runtime.ts",
927
- "line": 37,
928
- "character": 5
929
- },
930
- "name": "PrettierModule",
931
- "type": {
932
- "__schema": "KeywordTypeSchema",
933
- "location": {
934
- "filePath": "prettier.main.runtime.ts",
935
- "line": 37,
936
- "character": 22
937
- },
938
- "name": "any"
939
- },
940
- "isOptional": true,
941
- "isSpread": false
942
- }
943
- ],
944
- "returnType": {
945
- "__schema": "TypeRefSchema",
946
- "location": {
947
- "filePath": "prettier.main.runtime.ts",
948
- "line": 33,
949
- "character": 3
950
- },
951
- "name": "Formatter",
952
- "componentId": {
953
- "scope": "teambit.defender",
954
- "name": "formatter"
955
- }
956
- },
957
- "modifiers": []
958
- },
959
- {
960
- "__schema": "VariableLikeSchema",
961
- "location": {
962
- "filePath": "prettier.main.runtime.ts",
963
- "line": 45,
964
- "character": 3
965
- },
966
- "signature": "(property) PrettierMain.runtime: RuntimeDefinition",
967
- "name": "runtime",
968
- "type": {
969
- "__schema": "InferenceTypeSchema",
970
- "location": {
971
- "filePath": "prettier.main.runtime.ts",
972
- "line": 45,
973
- "character": 3
974
- },
975
- "type": "RuntimeDefinition"
976
- },
977
- "isOptional": true,
978
- "defaultValue": "MainRuntime"
979
- },
980
- {
981
- "__schema": "VariableLikeSchema",
982
- "location": {
983
- "filePath": "prettier.main.runtime.ts",
984
- "line": 47,
985
- "character": 3
986
- },
987
- "signature": "(property) PrettierMain.dependencies: Aspect[]",
988
- "name": "dependencies",
989
- "type": {
990
- "__schema": "InferenceTypeSchema",
991
- "location": {
992
- "filePath": "prettier.main.runtime.ts",
993
- "line": 47,
994
- "character": 3
995
- },
996
- "type": "Aspect[]"
997
- },
998
- "isOptional": true,
999
- "defaultValue": "[LoggerAspect]"
1000
- },
1001
- {
1002
- "__schema": "FunctionLikeSchema",
1003
- "location": {
1004
- "filePath": "prettier.main.runtime.ts",
1005
- "line": 49,
1006
- "character": 3
1007
- },
1008
- "signature": "(method) PrettierMain.provider([loggerExt]: [LoggerMain, FormatterMain, WorkspaceConfigFilesMain]): Promise<PrettierMain>",
1009
- "name": "provider",
1010
- "params": [
1011
- {
1012
- "__schema": "ParameterSchema",
1013
- "location": {
1014
- "filePath": "prettier.main.runtime.ts",
1015
- "line": 49,
1016
- "character": 25
1017
- },
1018
- "name": "[ loggerExt ]",
1019
- "type": {
1020
- "__schema": "TupleTypeSchema",
1021
- "location": {
1022
- "filePath": "prettier.main.runtime.ts",
1023
- "line": 49,
1024
- "character": 38
1025
- },
1026
- "elements": [
1027
- {
1028
- "__schema": "TypeRefSchema",
1029
- "location": {
1030
- "filePath": "prettier.main.runtime.ts",
1031
- "line": 49,
1032
- "character": 39
1033
- },
1034
- "name": "LoggerMain"
1035
- },
1036
- {
1037
- "__schema": "TypeRefSchema",
1038
- "location": {
1039
- "filePath": "prettier.main.runtime.ts",
1040
- "line": 49,
1041
- "character": 51
1042
- },
1043
- "name": "FormatterMain"
1044
- },
1045
- {
1046
- "__schema": "TypeRefSchema",
1047
- "location": {
1048
- "filePath": "prettier.main.runtime.ts",
1049
- "line": 49,
1050
- "character": 66
1051
- },
1052
- "name": "WorkspaceConfigFilesMain"
1053
- }
1054
- ]
1055
- },
1056
- "isOptional": false,
1057
- "isSpread": false
1058
- }
1059
- ],
1060
- "returnType": {
1061
- "__schema": "TypeRefSchema",
1062
- "location": {
1063
- "filePath": "prettier.main.runtime.ts",
1064
- "line": 49,
1065
- "character": 94
1066
- },
1067
- "name": "Promise",
1068
- "typeArgs": [
1069
- {
1070
- "__schema": "TypeRefSchema",
1071
- "location": {
1072
- "filePath": "prettier.main.runtime.ts",
1073
- "line": 49,
1074
- "character": 102
1075
- },
1076
- "name": "PrettierMain"
1077
- }
1078
- ]
1079
- },
1080
- "modifiers": [
1081
- "static",
1082
- "async"
1083
- ]
1084
- }
1085
- ],
1086
- "extendsNodes": [],
1087
- "implementNodes": []
1088
- },
1089
- {
1090
- "__schema": "FunctionLikeSchema",
1091
- "location": {
1092
- "filePath": "prettier.main.runtime.ts",
1093
- "line": 57,
1094
- "character": 1
1095
- },
1096
- "signature": "function runTransformersWithContext(config: PrettierConfigMutator, transformers: PrettierConfigTransformer[] | undefined, context: PrettierConfigTransformContext): PrettierConfigMutator",
1097
- "name": "runTransformersWithContext",
1098
- "params": [
1099
- {
1100
- "__schema": "ParameterSchema",
1101
- "location": {
1102
- "filePath": "prettier.main.runtime.ts",
1103
- "line": 58,
1104
- "character": 3
1105
- },
1106
- "name": "config",
1107
- "type": {
1108
- "__schema": "TypeRefSchema",
1109
- "location": {
1110
- "filePath": "prettier.main.runtime.ts",
1111
- "line": 58,
1112
- "character": 11
1113
- },
1114
- "name": "PrettierConfigMutator"
1115
- },
1116
- "isOptional": false,
1117
- "isSpread": false
1118
- },
1119
- {
1120
- "__schema": "ParameterSchema",
1121
- "location": {
1122
- "filePath": "prettier.main.runtime.ts",
1123
- "line": 59,
1124
- "character": 3
1125
- },
1126
- "name": "transformers",
1127
- "type": {
1128
- "__schema": "TypeArraySchema",
1129
- "location": {
1130
- "filePath": "prettier.main.runtime.ts",
1131
- "line": 59,
1132
- "character": 17
1133
- },
1134
- "type": {
1135
- "__schema": "TypeRefSchema",
1136
- "location": {
1137
- "filePath": "prettier.main.runtime.ts",
1138
- "line": 59,
1139
- "character": 17
1140
- },
1141
- "name": "PrettierConfigTransformer"
1142
- }
1143
- },
1144
- "isOptional": true,
1145
- "defaultValue": "[]",
1146
- "isSpread": false
1147
- },
1148
- {
1149
- "__schema": "ParameterSchema",
1150
- "location": {
1151
- "filePath": "prettier.main.runtime.ts",
1152
- "line": 60,
1153
- "character": 3
1154
- },
1155
- "name": "context",
1156
- "type": {
1157
- "__schema": "TypeRefSchema",
1158
- "location": {
1159
- "filePath": "prettier.main.runtime.ts",
1160
- "line": 60,
1161
- "character": 12
1162
- },
1163
- "name": "PrettierConfigTransformContext"
1164
- },
1165
- "isOptional": false,
1166
- "isSpread": false
1167
- }
1168
- ],
1169
- "returnType": {
1170
- "__schema": "TypeRefSchema",
1171
- "location": {
1172
- "filePath": "prettier.main.runtime.ts",
1173
- "line": 57,
1174
- "character": 1
1175
- },
1176
- "name": "PrettierConfigMutator",
1177
- "componentId": {
1178
- "scope": "teambit.defender",
1179
- "name": "prettier/config-mutator",
1180
- "version": "0.0.96"
1181
- }
1182
- },
1183
- "modifiers": [
1184
- "export"
1185
- ]
1186
- }
1187
- ],
1188
- "internals": [
1189
- {
1190
- "__schema": "UnImplementedSchema",
1191
- "location": {
1192
- "filePath": "prettier.main.runtime.ts",
1193
- "line": 55,
1194
- "character": 1
1195
- },
1196
- "name": "PrettierAspect.addRuntime(PrettierMain);",
1197
- "type": "ExpressionStatement"
1198
- }
1199
- ]
1200
- }
1201
- ],
1202
- "componentId": {
1203
- "scope": "teambit.defender",
1204
- "name": "prettier",
1205
- "version": "1.0.186"
1206
- },
1207
- "taggedModuleExports": []
1208
- }