@teambit/prettier 1.0.188 → 1.0.190

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