@teambit/formatter 1.0.158 → 1.0.160

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,2815 @@
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": "formatter.aspect.ts",
20
+ "line": 3,
21
+ "character": 14
22
+ },
23
+ "signature": "const FormatterAspect: Aspect",
24
+ "name": "FormatterAspect",
25
+ "type": {
26
+ "__schema": "TypeRefSchema",
27
+ "location": {
28
+ "filePath": "formatter.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/formatter',\n})"
41
+ },
42
+ {
43
+ "__schema": "ClassSchema",
44
+ "location": {
45
+ "filePath": "formatter.main.runtime.ts",
46
+ "line": 14,
47
+ "character": 1
48
+ },
49
+ "signature": "class FormatterMain",
50
+ "name": "FormatterMain",
51
+ "members": [
52
+ {
53
+ "__schema": "VariableLikeSchema",
54
+ "location": {
55
+ "filePath": "formatter.main.runtime.ts",
56
+ "line": 15,
57
+ "character": 3
58
+ },
59
+ "signature": "(property) FormatterMain.runtime: RuntimeDefinition",
60
+ "name": "runtime",
61
+ "type": {
62
+ "__schema": "InferenceTypeSchema",
63
+ "location": {
64
+ "filePath": "formatter.main.runtime.ts",
65
+ "line": 15,
66
+ "character": 3
67
+ },
68
+ "type": "RuntimeDefinition"
69
+ },
70
+ "isOptional": true,
71
+ "defaultValue": "MainRuntime"
72
+ },
73
+ {
74
+ "__schema": "ConstructorSchema",
75
+ "location": {
76
+ "filePath": "formatter.main.runtime.ts",
77
+ "line": 17,
78
+ "character": 3
79
+ },
80
+ "signature": "constructor FormatterMain(envs: EnvsMain, formatterService: FormatterService): FormatterMain",
81
+ "name": "constructor",
82
+ "params": [
83
+ {
84
+ "__schema": "ParameterSchema",
85
+ "location": {
86
+ "filePath": "formatter.main.runtime.ts",
87
+ "line": 17,
88
+ "character": 15
89
+ },
90
+ "name": "envs",
91
+ "type": {
92
+ "__schema": "TypeRefSchema",
93
+ "location": {
94
+ "filePath": "formatter.main.runtime.ts",
95
+ "line": 17,
96
+ "character": 29
97
+ },
98
+ "name": "EnvsMain"
99
+ },
100
+ "isOptional": false,
101
+ "isSpread": false
102
+ },
103
+ {
104
+ "__schema": "ParameterSchema",
105
+ "location": {
106
+ "filePath": "formatter.main.runtime.ts",
107
+ "line": 17,
108
+ "character": 39
109
+ },
110
+ "name": "formatterService",
111
+ "type": {
112
+ "__schema": "TypeRefSchema",
113
+ "location": {
114
+ "filePath": "formatter.main.runtime.ts",
115
+ "line": 17,
116
+ "character": 65
117
+ },
118
+ "name": "FormatterService"
119
+ },
120
+ "isOptional": false,
121
+ "isSpread": false
122
+ }
123
+ ],
124
+ "returnType": {
125
+ "__schema": "ThisTypeSchema",
126
+ "location": {
127
+ "filePath": "formatter.main.runtime.ts",
128
+ "line": 14,
129
+ "character": 1
130
+ },
131
+ "name": "FormatterMain"
132
+ },
133
+ "modifiers": []
134
+ },
135
+ {
136
+ "__schema": "FunctionLikeSchema",
137
+ "location": {
138
+ "filePath": "formatter.main.runtime.ts",
139
+ "line": 22,
140
+ "character": 3
141
+ },
142
+ "doc": {
143
+ "__schema": "DocSchema",
144
+ "location": {
145
+ "filePath": "formatter.main.runtime.ts",
146
+ "line": 19,
147
+ "character": 3
148
+ },
149
+ "raw": "/**\n * format an array of components.\n */",
150
+ "comment": "format an array of components."
151
+ },
152
+ "signature": "(method) FormatterMain.format(components: Component[], opts: FormatterOptions): Promise<EnvsExecutionResult<FormatResults>>",
153
+ "name": "format",
154
+ "params": [
155
+ {
156
+ "__schema": "ParameterSchema",
157
+ "location": {
158
+ "filePath": "formatter.main.runtime.ts",
159
+ "line": 22,
160
+ "character": 16
161
+ },
162
+ "name": "components",
163
+ "type": {
164
+ "__schema": "TypeArraySchema",
165
+ "location": {
166
+ "filePath": "formatter.main.runtime.ts",
167
+ "line": 22,
168
+ "character": 28
169
+ },
170
+ "type": {
171
+ "__schema": "TypeRefSchema",
172
+ "location": {
173
+ "filePath": "formatter.main.runtime.ts",
174
+ "line": 22,
175
+ "character": 28
176
+ },
177
+ "name": "Component"
178
+ }
179
+ },
180
+ "isOptional": false,
181
+ "isSpread": false
182
+ },
183
+ {
184
+ "__schema": "ParameterSchema",
185
+ "location": {
186
+ "filePath": "formatter.main.runtime.ts",
187
+ "line": 22,
188
+ "character": 41
189
+ },
190
+ "name": "opts",
191
+ "type": {
192
+ "__schema": "TypeRefSchema",
193
+ "location": {
194
+ "filePath": "formatter.main.runtime.ts",
195
+ "line": 22,
196
+ "character": 47
197
+ },
198
+ "name": "FormatterOptions"
199
+ },
200
+ "isOptional": false,
201
+ "isSpread": false
202
+ }
203
+ ],
204
+ "returnType": {
205
+ "__schema": "InferenceTypeSchema",
206
+ "location": {
207
+ "filePath": "formatter.main.runtime.ts",
208
+ "line": 22,
209
+ "character": 3
210
+ },
211
+ "type": "Promise<EnvsExecutionResult<FormatResults>>"
212
+ },
213
+ "modifiers": [
214
+ "async"
215
+ ]
216
+ },
217
+ {
218
+ "__schema": "FunctionLikeSchema",
219
+ "location": {
220
+ "filePath": "formatter.main.runtime.ts",
221
+ "line": 31,
222
+ "character": 3
223
+ },
224
+ "doc": {
225
+ "__schema": "DocSchema",
226
+ "location": {
227
+ "filePath": "formatter.main.runtime.ts",
228
+ "line": 28,
229
+ "character": 3
230
+ },
231
+ "raw": "/**\n * check format an array of components.\n */",
232
+ "comment": "check format an array of components."
233
+ },
234
+ "signature": "(method) FormatterMain.check(components: Component[], opts: FormatterOptions): Promise<EnvsExecutionResult<FormatResults>>",
235
+ "name": "check",
236
+ "params": [
237
+ {
238
+ "__schema": "ParameterSchema",
239
+ "location": {
240
+ "filePath": "formatter.main.runtime.ts",
241
+ "line": 31,
242
+ "character": 15
243
+ },
244
+ "name": "components",
245
+ "type": {
246
+ "__schema": "TypeArraySchema",
247
+ "location": {
248
+ "filePath": "formatter.main.runtime.ts",
249
+ "line": 31,
250
+ "character": 27
251
+ },
252
+ "type": {
253
+ "__schema": "TypeRefSchema",
254
+ "location": {
255
+ "filePath": "formatter.main.runtime.ts",
256
+ "line": 31,
257
+ "character": 27
258
+ },
259
+ "name": "Component"
260
+ }
261
+ },
262
+ "isOptional": false,
263
+ "isSpread": false
264
+ },
265
+ {
266
+ "__schema": "ParameterSchema",
267
+ "location": {
268
+ "filePath": "formatter.main.runtime.ts",
269
+ "line": 31,
270
+ "character": 40
271
+ },
272
+ "name": "opts",
273
+ "type": {
274
+ "__schema": "TypeRefSchema",
275
+ "location": {
276
+ "filePath": "formatter.main.runtime.ts",
277
+ "line": 31,
278
+ "character": 46
279
+ },
280
+ "name": "FormatterOptions"
281
+ },
282
+ "isOptional": false,
283
+ "isSpread": false
284
+ }
285
+ ],
286
+ "returnType": {
287
+ "__schema": "InferenceTypeSchema",
288
+ "location": {
289
+ "filePath": "formatter.main.runtime.ts",
290
+ "line": 31,
291
+ "character": 3
292
+ },
293
+ "type": "Promise<EnvsExecutionResult<FormatResults>>"
294
+ },
295
+ "modifiers": [
296
+ "async"
297
+ ]
298
+ },
299
+ {
300
+ "__schema": "FunctionLikeSchema",
301
+ "location": {
302
+ "filePath": "formatter.main.runtime.ts",
303
+ "line": 37,
304
+ "character": 3
305
+ },
306
+ "signature": "(method) FormatterMain.getFormatter(context: ExecutionContext, options: FormatterOptions): Formatter",
307
+ "name": "getFormatter",
308
+ "params": [
309
+ {
310
+ "__schema": "ParameterSchema",
311
+ "location": {
312
+ "filePath": "formatter.main.runtime.ts",
313
+ "line": 37,
314
+ "character": 16
315
+ },
316
+ "name": "context",
317
+ "type": {
318
+ "__schema": "TypeRefSchema",
319
+ "location": {
320
+ "filePath": "formatter.main.runtime.ts",
321
+ "line": 37,
322
+ "character": 25
323
+ },
324
+ "name": "ExecutionContext"
325
+ },
326
+ "isOptional": false,
327
+ "isSpread": false
328
+ },
329
+ {
330
+ "__schema": "ParameterSchema",
331
+ "location": {
332
+ "filePath": "formatter.main.runtime.ts",
333
+ "line": 37,
334
+ "character": 43
335
+ },
336
+ "name": "options",
337
+ "type": {
338
+ "__schema": "TypeRefSchema",
339
+ "location": {
340
+ "filePath": "formatter.main.runtime.ts",
341
+ "line": 37,
342
+ "character": 52
343
+ },
344
+ "name": "FormatterOptions"
345
+ },
346
+ "isOptional": false,
347
+ "isSpread": false
348
+ }
349
+ ],
350
+ "returnType": {
351
+ "__schema": "TypeRefSchema",
352
+ "location": {
353
+ "filePath": "formatter.main.runtime.ts",
354
+ "line": 37,
355
+ "character": 3
356
+ },
357
+ "name": "Formatter"
358
+ },
359
+ "modifiers": []
360
+ },
361
+ {
362
+ "__schema": "FunctionLikeSchema",
363
+ "location": {
364
+ "filePath": "formatter.main.runtime.ts",
365
+ "line": 52,
366
+ "character": 3
367
+ },
368
+ "doc": {
369
+ "__schema": "DocSchema",
370
+ "location": {
371
+ "filePath": "formatter.main.runtime.ts",
372
+ "line": 48,
373
+ "character": 3
374
+ },
375
+ "raw": "/**\n * create a format task for build pipelines.\n * @param name name of the task.\n */",
376
+ "comment": "create a format task for build pipelines.",
377
+ "tags": [
378
+ {
379
+ "__schema": "PropertyLikeTagSchema",
380
+ "location": {
381
+ "filePath": "formatter.main.runtime.ts",
382
+ "line": 50,
383
+ "character": 6
384
+ },
385
+ "name": "name",
386
+ "tagName": "parameter",
387
+ "comment": "name of the task."
388
+ }
389
+ ]
390
+ },
391
+ "signature": "(method) FormatterMain.createTask(name?: string): FormatTask",
392
+ "name": "createTask",
393
+ "params": [
394
+ {
395
+ "__schema": "ParameterSchema",
396
+ "location": {
397
+ "filePath": "formatter.main.runtime.ts",
398
+ "line": 52,
399
+ "character": 14
400
+ },
401
+ "name": "name",
402
+ "type": {
403
+ "__schema": "KeywordTypeSchema",
404
+ "location": {
405
+ "filePath": "formatter.main.runtime.ts",
406
+ "line": 52,
407
+ "character": 21
408
+ },
409
+ "name": "string"
410
+ },
411
+ "isOptional": true,
412
+ "isSpread": false
413
+ }
414
+ ],
415
+ "returnType": {
416
+ "__schema": "TypeRefSchema",
417
+ "location": {
418
+ "filePath": "formatter.main.runtime.ts",
419
+ "line": 52,
420
+ "character": 3
421
+ },
422
+ "name": "FormatTask"
423
+ },
424
+ "modifiers": []
425
+ },
426
+ {
427
+ "__schema": "VariableLikeSchema",
428
+ "location": {
429
+ "filePath": "formatter.main.runtime.ts",
430
+ "line": 56,
431
+ "character": 3
432
+ },
433
+ "signature": "(property) FormatterMain.dependencies: Aspect[]",
434
+ "name": "dependencies",
435
+ "type": {
436
+ "__schema": "InferenceTypeSchema",
437
+ "location": {
438
+ "filePath": "formatter.main.runtime.ts",
439
+ "line": 56,
440
+ "character": 3
441
+ },
442
+ "type": "Aspect[]"
443
+ },
444
+ "isOptional": true,
445
+ "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
446
+ },
447
+ {
448
+ "__schema": "VariableLikeSchema",
449
+ "location": {
450
+ "filePath": "formatter.main.runtime.ts",
451
+ "line": 58,
452
+ "character": 3
453
+ },
454
+ "signature": "(property) FormatterMain.defaultConfig: FormatterConfig",
455
+ "name": "defaultConfig",
456
+ "type": {
457
+ "__schema": "TypeRefSchema",
458
+ "location": {
459
+ "filePath": "formatter.main.runtime.ts",
460
+ "line": 58,
461
+ "character": 3
462
+ },
463
+ "name": "FormatterConfig"
464
+ },
465
+ "isOptional": true,
466
+ "defaultValue": "{}"
467
+ },
468
+ {
469
+ "__schema": "FunctionLikeSchema",
470
+ "location": {
471
+ "filePath": "formatter.main.runtime.ts",
472
+ "line": 60,
473
+ "character": 3
474
+ },
475
+ "signature": "(method) FormatterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: FormatterConfig): Promise<FormatterMain>",
476
+ "name": "provider",
477
+ "params": [
478
+ {
479
+ "__schema": "ParameterSchema",
480
+ "location": {
481
+ "filePath": "formatter.main.runtime.ts",
482
+ "line": 61,
483
+ "character": 5
484
+ },
485
+ "name": "[ envs, cli, component, loggerAspect, workspace ]",
486
+ "type": {
487
+ "__schema": "TupleTypeSchema",
488
+ "location": {
489
+ "filePath": "formatter.main.runtime.ts",
490
+ "line": 61,
491
+ "character": 54
492
+ },
493
+ "elements": [
494
+ {
495
+ "__schema": "TypeRefSchema",
496
+ "location": {
497
+ "filePath": "formatter.main.runtime.ts",
498
+ "line": 61,
499
+ "character": 55
500
+ },
501
+ "name": "EnvsMain"
502
+ },
503
+ {
504
+ "__schema": "TypeRefSchema",
505
+ "location": {
506
+ "filePath": "formatter.main.runtime.ts",
507
+ "line": 61,
508
+ "character": 65
509
+ },
510
+ "name": "CLIMain"
511
+ },
512
+ {
513
+ "__schema": "TypeRefSchema",
514
+ "location": {
515
+ "filePath": "formatter.main.runtime.ts",
516
+ "line": 61,
517
+ "character": 74
518
+ },
519
+ "name": "ComponentMain"
520
+ },
521
+ {
522
+ "__schema": "TypeRefSchema",
523
+ "location": {
524
+ "filePath": "formatter.main.runtime.ts",
525
+ "line": 61,
526
+ "character": 89
527
+ },
528
+ "name": "LoggerMain"
529
+ },
530
+ {
531
+ "__schema": "TypeRefSchema",
532
+ "location": {
533
+ "filePath": "formatter.main.runtime.ts",
534
+ "line": 61,
535
+ "character": 101
536
+ },
537
+ "name": "Workspace"
538
+ }
539
+ ]
540
+ },
541
+ "isOptional": false,
542
+ "isSpread": false
543
+ },
544
+ {
545
+ "__schema": "ParameterSchema",
546
+ "location": {
547
+ "filePath": "formatter.main.runtime.ts",
548
+ "line": 62,
549
+ "character": 5
550
+ },
551
+ "name": "config",
552
+ "type": {
553
+ "__schema": "TypeRefSchema",
554
+ "location": {
555
+ "filePath": "formatter.main.runtime.ts",
556
+ "line": 62,
557
+ "character": 13
558
+ },
559
+ "name": "FormatterConfig"
560
+ },
561
+ "isOptional": false,
562
+ "isSpread": false
563
+ }
564
+ ],
565
+ "returnType": {
566
+ "__schema": "InferenceTypeSchema",
567
+ "location": {
568
+ "filePath": "formatter.main.runtime.ts",
569
+ "line": 60,
570
+ "character": 3
571
+ },
572
+ "type": "Promise<FormatterMain>"
573
+ },
574
+ "modifiers": [
575
+ "static",
576
+ "async"
577
+ ]
578
+ }
579
+ ],
580
+ "extendsNodes": [],
581
+ "implementNodes": []
582
+ },
583
+ {
584
+ "__schema": "TypeSchema",
585
+ "location": {
586
+ "filePath": "formatter.main.runtime.ts",
587
+ "line": 13,
588
+ "character": 1
589
+ },
590
+ "signature": "type FormatterConfig = {}",
591
+ "name": "FormatterConfig",
592
+ "type": {
593
+ "__schema": "TypeLiteralSchema",
594
+ "location": {
595
+ "filePath": "formatter.main.runtime.ts",
596
+ "line": 13,
597
+ "character": 31
598
+ },
599
+ "members": []
600
+ }
601
+ },
602
+ {
603
+ "__schema": "TypeSchema",
604
+ "location": {
605
+ "filePath": "formatter.ts",
606
+ "line": 33,
607
+ "character": 1
608
+ },
609
+ "signature": "type FormatResults = {\n results: ComponentFormatResult[];\n errors: Error[];\n}",
610
+ "name": "FormatResults",
611
+ "type": {
612
+ "__schema": "TypeLiteralSchema",
613
+ "location": {
614
+ "filePath": "formatter.ts",
615
+ "line": 33,
616
+ "character": 29
617
+ },
618
+ "members": [
619
+ {
620
+ "__schema": "VariableLikeSchema",
621
+ "location": {
622
+ "filePath": "formatter.ts",
623
+ "line": 34,
624
+ "character": 3
625
+ },
626
+ "signature": "(property) results: ComponentFormatResult[]",
627
+ "name": "results",
628
+ "type": {
629
+ "__schema": "TypeArraySchema",
630
+ "location": {
631
+ "filePath": "formatter.ts",
632
+ "line": 34,
633
+ "character": 12
634
+ },
635
+ "type": {
636
+ "__schema": "TypeRefSchema",
637
+ "location": {
638
+ "filePath": "formatter.ts",
639
+ "line": 34,
640
+ "character": 12
641
+ },
642
+ "name": "ComponentFormatResult"
643
+ }
644
+ },
645
+ "isOptional": false
646
+ },
647
+ {
648
+ "__schema": "VariableLikeSchema",
649
+ "location": {
650
+ "filePath": "formatter.ts",
651
+ "line": 35,
652
+ "character": 3
653
+ },
654
+ "signature": "(property) errors: Error[]",
655
+ "name": "errors",
656
+ "type": {
657
+ "__schema": "TypeArraySchema",
658
+ "location": {
659
+ "filePath": "formatter.ts",
660
+ "line": 35,
661
+ "character": 11
662
+ },
663
+ "type": {
664
+ "__schema": "TypeRefSchema",
665
+ "location": {
666
+ "filePath": "formatter.ts",
667
+ "line": 35,
668
+ "character": 11
669
+ },
670
+ "name": "Error"
671
+ }
672
+ },
673
+ "isOptional": false
674
+ }
675
+ ]
676
+ }
677
+ },
678
+ {
679
+ "__schema": "InterfaceSchema",
680
+ "location": {
681
+ "filePath": "formatter.ts",
682
+ "line": 38,
683
+ "character": 1
684
+ },
685
+ "signature": "interface Formatter",
686
+ "name": "Formatter",
687
+ "members": [
688
+ {
689
+ "__schema": "VariableLikeSchema",
690
+ "location": {
691
+ "filePath": "formatter.ts",
692
+ "line": 39,
693
+ "character": 3
694
+ },
695
+ "signature": "(property) Formatter.id: string",
696
+ "name": "id",
697
+ "type": {
698
+ "__schema": "KeywordTypeSchema",
699
+ "location": {
700
+ "filePath": "formatter.ts",
701
+ "line": 39,
702
+ "character": 7
703
+ },
704
+ "name": "string"
705
+ },
706
+ "isOptional": false
707
+ },
708
+ {
709
+ "__schema": "FunctionLikeSchema",
710
+ "location": {
711
+ "filePath": "formatter.ts",
712
+ "line": 40,
713
+ "character": 3
714
+ },
715
+ "signature": "(method) Formatter.format(context: FormatterContext): Promise<FormatResults>",
716
+ "name": "format",
717
+ "params": [
718
+ {
719
+ "__schema": "ParameterSchema",
720
+ "location": {
721
+ "filePath": "formatter.ts",
722
+ "line": 40,
723
+ "character": 10
724
+ },
725
+ "name": "context",
726
+ "type": {
727
+ "__schema": "TypeRefSchema",
728
+ "location": {
729
+ "filePath": "formatter.ts",
730
+ "line": 40,
731
+ "character": 19
732
+ },
733
+ "name": "FormatterContext"
734
+ },
735
+ "isOptional": false,
736
+ "isSpread": false
737
+ }
738
+ ],
739
+ "returnType": {
740
+ "__schema": "TypeRefSchema",
741
+ "location": {
742
+ "filePath": "formatter.ts",
743
+ "line": 40,
744
+ "character": 38
745
+ },
746
+ "name": "Promise",
747
+ "typeArgs": [
748
+ {
749
+ "__schema": "TypeRefSchema",
750
+ "location": {
751
+ "filePath": "formatter.ts",
752
+ "line": 40,
753
+ "character": 46
754
+ },
755
+ "name": "FormatResults"
756
+ }
757
+ ]
758
+ },
759
+ "modifiers": []
760
+ },
761
+ {
762
+ "__schema": "FunctionLikeSchema",
763
+ "location": {
764
+ "filePath": "formatter.ts",
765
+ "line": 41,
766
+ "character": 3
767
+ },
768
+ "signature": "(method) Formatter.formatSnippet(snippet: string, filepath?: string): Promise<string>",
769
+ "name": "formatSnippet",
770
+ "params": [
771
+ {
772
+ "__schema": "ParameterSchema",
773
+ "location": {
774
+ "filePath": "formatter.ts",
775
+ "line": 41,
776
+ "character": 17
777
+ },
778
+ "name": "snippet",
779
+ "type": {
780
+ "__schema": "KeywordTypeSchema",
781
+ "location": {
782
+ "filePath": "formatter.ts",
783
+ "line": 41,
784
+ "character": 26
785
+ },
786
+ "name": "string"
787
+ },
788
+ "isOptional": false,
789
+ "isSpread": false
790
+ },
791
+ {
792
+ "__schema": "ParameterSchema",
793
+ "location": {
794
+ "filePath": "formatter.ts",
795
+ "line": 41,
796
+ "character": 34
797
+ },
798
+ "name": "filepath",
799
+ "type": {
800
+ "__schema": "KeywordTypeSchema",
801
+ "location": {
802
+ "filePath": "formatter.ts",
803
+ "line": 41,
804
+ "character": 45
805
+ },
806
+ "name": "string"
807
+ },
808
+ "isOptional": true,
809
+ "isSpread": false
810
+ }
811
+ ],
812
+ "returnType": {
813
+ "__schema": "TypeRefSchema",
814
+ "location": {
815
+ "filePath": "formatter.ts",
816
+ "line": 41,
817
+ "character": 54
818
+ },
819
+ "name": "Promise",
820
+ "typeArgs": [
821
+ {
822
+ "__schema": "KeywordTypeSchema",
823
+ "location": {
824
+ "filePath": "formatter.ts",
825
+ "line": 41,
826
+ "character": 62
827
+ },
828
+ "name": "string"
829
+ }
830
+ ]
831
+ },
832
+ "modifiers": []
833
+ },
834
+ {
835
+ "__schema": "FunctionLikeSchema",
836
+ "location": {
837
+ "filePath": "formatter.ts",
838
+ "line": 42,
839
+ "character": 3
840
+ },
841
+ "signature": "(method) Formatter.check(context: FormatterContext): Promise<FormatResults>",
842
+ "name": "check",
843
+ "params": [
844
+ {
845
+ "__schema": "ParameterSchema",
846
+ "location": {
847
+ "filePath": "formatter.ts",
848
+ "line": 42,
849
+ "character": 9
850
+ },
851
+ "name": "context",
852
+ "type": {
853
+ "__schema": "TypeRefSchema",
854
+ "location": {
855
+ "filePath": "formatter.ts",
856
+ "line": 42,
857
+ "character": 18
858
+ },
859
+ "name": "FormatterContext"
860
+ },
861
+ "isOptional": false,
862
+ "isSpread": false
863
+ }
864
+ ],
865
+ "returnType": {
866
+ "__schema": "TypeRefSchema",
867
+ "location": {
868
+ "filePath": "formatter.ts",
869
+ "line": 42,
870
+ "character": 37
871
+ },
872
+ "name": "Promise",
873
+ "typeArgs": [
874
+ {
875
+ "__schema": "TypeRefSchema",
876
+ "location": {
877
+ "filePath": "formatter.ts",
878
+ "line": 42,
879
+ "character": 45
880
+ },
881
+ "name": "FormatResults"
882
+ }
883
+ ]
884
+ },
885
+ "modifiers": []
886
+ }
887
+ ],
888
+ "extendsNodes": []
889
+ },
890
+ {
891
+ "__schema": "TypeSchema",
892
+ "location": {
893
+ "filePath": "formatter.ts",
894
+ "line": 16,
895
+ "character": 1
896
+ },
897
+ "signature": "type FileFormatResult = {\n filePath: string;\n hasIssues: boolean;\n newContent?: string | undefined;\n}",
898
+ "name": "FileFormatResult",
899
+ "type": {
900
+ "__schema": "TypeLiteralSchema",
901
+ "location": {
902
+ "filePath": "formatter.ts",
903
+ "line": 16,
904
+ "character": 32
905
+ },
906
+ "members": [
907
+ {
908
+ "__schema": "VariableLikeSchema",
909
+ "location": {
910
+ "filePath": "formatter.ts",
911
+ "line": 20,
912
+ "character": 3
913
+ },
914
+ "doc": {
915
+ "__schema": "DocSchema",
916
+ "location": {
917
+ "filePath": "formatter.ts",
918
+ "line": 17,
919
+ "character": 3
920
+ },
921
+ "raw": "/**\n * path of the formatted file.\n */",
922
+ "comment": "path of the formatted file."
923
+ },
924
+ "signature": "(property) filePath: string",
925
+ "name": "filePath",
926
+ "type": {
927
+ "__schema": "KeywordTypeSchema",
928
+ "location": {
929
+ "filePath": "formatter.ts",
930
+ "line": 20,
931
+ "character": 13
932
+ },
933
+ "name": "string"
934
+ },
935
+ "isOptional": false
936
+ },
937
+ {
938
+ "__schema": "VariableLikeSchema",
939
+ "location": {
940
+ "filePath": "formatter.ts",
941
+ "line": 25,
942
+ "character": 3
943
+ },
944
+ "doc": {
945
+ "__schema": "DocSchema",
946
+ "location": {
947
+ "filePath": "formatter.ts",
948
+ "line": 22,
949
+ "character": 3
950
+ },
951
+ "raw": "/**\n * Does the file has formatting issues (needs format)\n */",
952
+ "comment": "Does the file has formatting issues (needs format)"
953
+ },
954
+ "signature": "(property) hasIssues: boolean",
955
+ "name": "hasIssues",
956
+ "type": {
957
+ "__schema": "KeywordTypeSchema",
958
+ "location": {
959
+ "filePath": "formatter.ts",
960
+ "line": 25,
961
+ "character": 14
962
+ },
963
+ "name": "boolean"
964
+ },
965
+ "isOptional": false
966
+ },
967
+ {
968
+ "__schema": "VariableLikeSchema",
969
+ "location": {
970
+ "filePath": "formatter.ts",
971
+ "line": 30,
972
+ "character": 3
973
+ },
974
+ "doc": {
975
+ "__schema": "DocSchema",
976
+ "location": {
977
+ "filePath": "formatter.ts",
978
+ "line": 27,
979
+ "character": 3
980
+ },
981
+ "raw": "/**\n * The new file content after the formatting\n */",
982
+ "comment": "The new file content after the formatting"
983
+ },
984
+ "signature": "(property) newContent?: string | undefined",
985
+ "name": "newContent",
986
+ "type": {
987
+ "__schema": "KeywordTypeSchema",
988
+ "location": {
989
+ "filePath": "formatter.ts",
990
+ "line": 30,
991
+ "character": 16
992
+ },
993
+ "name": "string"
994
+ },
995
+ "isOptional": true
996
+ }
997
+ ]
998
+ }
999
+ },
1000
+ {
1001
+ "__schema": "TypeSchema",
1002
+ "location": {
1003
+ "filePath": "formatter.ts",
1004
+ "line": 4,
1005
+ "character": 1
1006
+ },
1007
+ "signature": "type ComponentFormatResult = {\n component: Component;\n results: FileFormatResult[];\n}",
1008
+ "name": "ComponentFormatResult",
1009
+ "type": {
1010
+ "__schema": "TypeLiteralSchema",
1011
+ "location": {
1012
+ "filePath": "formatter.ts",
1013
+ "line": 4,
1014
+ "character": 37
1015
+ },
1016
+ "members": [
1017
+ {
1018
+ "__schema": "VariableLikeSchema",
1019
+ "location": {
1020
+ "filePath": "formatter.ts",
1021
+ "line": 8,
1022
+ "character": 3
1023
+ },
1024
+ "doc": {
1025
+ "__schema": "DocSchema",
1026
+ "location": {
1027
+ "filePath": "formatter.ts",
1028
+ "line": 5,
1029
+ "character": 3
1030
+ },
1031
+ "raw": "/**\n * the formatted component.\n */",
1032
+ "comment": "the formatted component."
1033
+ },
1034
+ "signature": "(property) component: Component",
1035
+ "name": "component",
1036
+ "type": {
1037
+ "__schema": "TypeRefSchema",
1038
+ "location": {
1039
+ "filePath": "formatter.ts",
1040
+ "line": 8,
1041
+ "character": 3
1042
+ },
1043
+ "name": "Component",
1044
+ "componentId": {
1045
+ "scope": "teambit.component",
1046
+ "name": "component"
1047
+ }
1048
+ },
1049
+ "isOptional": false
1050
+ },
1051
+ {
1052
+ "__schema": "VariableLikeSchema",
1053
+ "location": {
1054
+ "filePath": "formatter.ts",
1055
+ "line": 13,
1056
+ "character": 3
1057
+ },
1058
+ "doc": {
1059
+ "__schema": "DocSchema",
1060
+ "location": {
1061
+ "filePath": "formatter.ts",
1062
+ "line": 10,
1063
+ "character": 3
1064
+ },
1065
+ "raw": "/**\n * format results for each file of the component.\n */",
1066
+ "comment": "format results for each file of the component."
1067
+ },
1068
+ "signature": "(property) results: FileFormatResult[]",
1069
+ "name": "results",
1070
+ "type": {
1071
+ "__schema": "TypeArraySchema",
1072
+ "location": {
1073
+ "filePath": "formatter.ts",
1074
+ "line": 13,
1075
+ "character": 12
1076
+ },
1077
+ "type": {
1078
+ "__schema": "TypeRefSchema",
1079
+ "location": {
1080
+ "filePath": "formatter.ts",
1081
+ "line": 13,
1082
+ "character": 12
1083
+ },
1084
+ "name": "FileFormatResult"
1085
+ }
1086
+ },
1087
+ "isOptional": false
1088
+ }
1089
+ ]
1090
+ }
1091
+ },
1092
+ {
1093
+ "__schema": "ClassSchema",
1094
+ "location": {
1095
+ "filePath": "format.task.ts",
1096
+ "line": 4,
1097
+ "character": 1
1098
+ },
1099
+ "signature": "class FormatTask",
1100
+ "name": "FormatTask",
1101
+ "members": [
1102
+ {
1103
+ "__schema": "ConstructorSchema",
1104
+ "location": {
1105
+ "filePath": "format.task.ts",
1106
+ "line": 5,
1107
+ "character": 3
1108
+ },
1109
+ "signature": "constructor FormatTask(aspectId: string, name?: string): FormatTask",
1110
+ "name": "constructor",
1111
+ "params": [
1112
+ {
1113
+ "__schema": "ParameterSchema",
1114
+ "location": {
1115
+ "filePath": "format.task.ts",
1116
+ "line": 5,
1117
+ "character": 15
1118
+ },
1119
+ "name": "aspectId",
1120
+ "type": {
1121
+ "__schema": "KeywordTypeSchema",
1122
+ "location": {
1123
+ "filePath": "format.task.ts",
1124
+ "line": 5,
1125
+ "character": 34
1126
+ },
1127
+ "name": "string"
1128
+ },
1129
+ "isOptional": false,
1130
+ "isSpread": false
1131
+ },
1132
+ {
1133
+ "__schema": "ParameterSchema",
1134
+ "location": {
1135
+ "filePath": "format.task.ts",
1136
+ "line": 5,
1137
+ "character": 42
1138
+ },
1139
+ "name": "name",
1140
+ "type": {
1141
+ "__schema": "InferenceTypeSchema",
1142
+ "location": {
1143
+ "filePath": "format.task.ts",
1144
+ "line": 5,
1145
+ "character": 42
1146
+ },
1147
+ "type": "string"
1148
+ },
1149
+ "isOptional": true,
1150
+ "defaultValue": "'format'",
1151
+ "isSpread": false
1152
+ }
1153
+ ],
1154
+ "returnType": {
1155
+ "__schema": "ThisTypeSchema",
1156
+ "location": {
1157
+ "filePath": "format.task.ts",
1158
+ "line": 4,
1159
+ "character": 1
1160
+ },
1161
+ "name": "FormatTask"
1162
+ },
1163
+ "modifiers": []
1164
+ },
1165
+ {
1166
+ "__schema": "FunctionLikeSchema",
1167
+ "location": {
1168
+ "filePath": "format.task.ts",
1169
+ "line": 7,
1170
+ "character": 3
1171
+ },
1172
+ "signature": "(method) FormatTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
1173
+ "name": "execute",
1174
+ "params": [
1175
+ {
1176
+ "__schema": "ParameterSchema",
1177
+ "location": {
1178
+ "filePath": "format.task.ts",
1179
+ "line": 7,
1180
+ "character": 17
1181
+ },
1182
+ "name": "context",
1183
+ "type": {
1184
+ "__schema": "TypeRefSchema",
1185
+ "location": {
1186
+ "filePath": "format.task.ts",
1187
+ "line": 7,
1188
+ "character": 26
1189
+ },
1190
+ "name": "BuildContext"
1191
+ },
1192
+ "isOptional": false,
1193
+ "isSpread": false
1194
+ }
1195
+ ],
1196
+ "returnType": {
1197
+ "__schema": "TypeRefSchema",
1198
+ "location": {
1199
+ "filePath": "format.task.ts",
1200
+ "line": 7,
1201
+ "character": 41
1202
+ },
1203
+ "name": "Promise",
1204
+ "typeArgs": [
1205
+ {
1206
+ "__schema": "TypeRefSchema",
1207
+ "location": {
1208
+ "filePath": "format.task.ts",
1209
+ "line": 7,
1210
+ "character": 49
1211
+ },
1212
+ "name": "BuiltTaskResult"
1213
+ }
1214
+ ]
1215
+ },
1216
+ "modifiers": [
1217
+ "async"
1218
+ ]
1219
+ }
1220
+ ],
1221
+ "extendsNodes": [],
1222
+ "implementNodes": [
1223
+ {
1224
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1225
+ "location": {
1226
+ "filePath": "format.task.ts",
1227
+ "line": 4,
1228
+ "character": 36
1229
+ },
1230
+ "name": "implements BuildTask",
1231
+ "typeArgs": [],
1232
+ "expression": {
1233
+ "__schema": "TypeRefSchema",
1234
+ "location": {
1235
+ "filePath": "format.task.ts",
1236
+ "line": 4,
1237
+ "character": 36
1238
+ },
1239
+ "name": "BuildTask",
1240
+ "componentId": {
1241
+ "_legacy": {
1242
+ "scope": "teambit.defender",
1243
+ "name": "formatter",
1244
+ "version": "1.0.160"
1245
+ },
1246
+ "_scope": "teambit.defender"
1247
+ }
1248
+ }
1249
+ }
1250
+ ]
1251
+ },
1252
+ {
1253
+ "__schema": "InterfaceSchema",
1254
+ "location": {
1255
+ "filePath": "formatter-env-type.ts",
1256
+ "line": 4,
1257
+ "character": 1
1258
+ },
1259
+ "signature": "interface FormatterEnv",
1260
+ "name": "FormatterEnv",
1261
+ "members": [
1262
+ {
1263
+ "__schema": "FunctionLikeSchema",
1264
+ "location": {
1265
+ "filePath": "formatter-env-type.ts",
1266
+ "line": 8,
1267
+ "character": 3
1268
+ },
1269
+ "doc": {
1270
+ "__schema": "DocSchema",
1271
+ "location": {
1272
+ "filePath": "formatter-env-type.ts",
1273
+ "line": 5,
1274
+ "character": 3
1275
+ },
1276
+ "raw": "/**\n * return a Formatter instance.\n */",
1277
+ "comment": "return a Formatter instance."
1278
+ },
1279
+ "signature": "(method) FormatterEnv.formatter(): EnvHandler<Formatter>",
1280
+ "name": "formatter",
1281
+ "params": [],
1282
+ "returnType": {
1283
+ "__schema": "TypeRefSchema",
1284
+ "location": {
1285
+ "filePath": "formatter-env-type.ts",
1286
+ "line": 8,
1287
+ "character": 16
1288
+ },
1289
+ "name": "EnvHandler",
1290
+ "typeArgs": [
1291
+ {
1292
+ "__schema": "TypeRefSchema",
1293
+ "location": {
1294
+ "filePath": "formatter-env-type.ts",
1295
+ "line": 8,
1296
+ "character": 27
1297
+ },
1298
+ "name": "Formatter"
1299
+ }
1300
+ ]
1301
+ },
1302
+ "modifiers": []
1303
+ }
1304
+ ],
1305
+ "extendsNodes": []
1306
+ },
1307
+ {
1308
+ "__schema": "InterfaceSchema",
1309
+ "location": {
1310
+ "filePath": "formatter-context.ts",
1311
+ "line": 4,
1312
+ "character": 1
1313
+ },
1314
+ "signature": "interface FormatterContext",
1315
+ "name": "FormatterContext",
1316
+ "members": [],
1317
+ "extendsNodes": [
1318
+ {
1319
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1320
+ "location": {
1321
+ "filePath": "formatter-context.ts",
1322
+ "line": 4,
1323
+ "character": 43
1324
+ },
1325
+ "name": "extends ExecutionContext, FormatterOptions",
1326
+ "typeArgs": [],
1327
+ "expression": {
1328
+ "__schema": "TypeRefSchema",
1329
+ "location": {
1330
+ "filePath": "formatter-context.ts",
1331
+ "line": 4,
1332
+ "character": 43
1333
+ },
1334
+ "name": "ExecutionContext",
1335
+ "componentId": {
1336
+ "_legacy": {
1337
+ "scope": "teambit.defender",
1338
+ "name": "formatter",
1339
+ "version": "1.0.160"
1340
+ },
1341
+ "_scope": "teambit.defender"
1342
+ }
1343
+ }
1344
+ },
1345
+ {
1346
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1347
+ "location": {
1348
+ "filePath": "formatter-context.ts",
1349
+ "line": 4,
1350
+ "character": 61
1351
+ },
1352
+ "name": "extends ExecutionContext, FormatterOptions",
1353
+ "typeArgs": [],
1354
+ "expression": {
1355
+ "__schema": "TypeSchema",
1356
+ "location": {
1357
+ "filePath": "formatter-context.ts",
1358
+ "line": 3,
1359
+ "character": 1
1360
+ },
1361
+ "name": "FormatterOptions",
1362
+ "signature": "type FormatterOptions = {\n check?: boolean | undefined;\n}",
1363
+ "type": {
1364
+ "__schema": "TypeLiteralSchema",
1365
+ "location": {
1366
+ "filePath": "formatter-context.ts",
1367
+ "line": 3,
1368
+ "character": 32
1369
+ },
1370
+ "members": [
1371
+ {
1372
+ "__schema": "VariableLikeSchema",
1373
+ "location": {
1374
+ "filePath": "formatter-context.ts",
1375
+ "line": 3,
1376
+ "character": 34
1377
+ },
1378
+ "name": "check",
1379
+ "signature": "(property) check?: boolean | undefined",
1380
+ "isOptional": true,
1381
+ "type": {
1382
+ "__schema": "KeywordTypeSchema",
1383
+ "location": {
1384
+ "filePath": "formatter-context.ts",
1385
+ "line": 3,
1386
+ "character": 42
1387
+ },
1388
+ "name": "boolean"
1389
+ }
1390
+ }
1391
+ ]
1392
+ }
1393
+ }
1394
+ }
1395
+ ]
1396
+ },
1397
+ {
1398
+ "__schema": "TypeSchema",
1399
+ "location": {
1400
+ "filePath": "formatter-context.ts",
1401
+ "line": 3,
1402
+ "character": 1
1403
+ },
1404
+ "signature": "type FormatterOptions = {\n check?: boolean | undefined;\n}",
1405
+ "name": "FormatterOptions",
1406
+ "type": {
1407
+ "__schema": "TypeLiteralSchema",
1408
+ "location": {
1409
+ "filePath": "formatter-context.ts",
1410
+ "line": 3,
1411
+ "character": 32
1412
+ },
1413
+ "members": [
1414
+ {
1415
+ "__schema": "VariableLikeSchema",
1416
+ "location": {
1417
+ "filePath": "formatter-context.ts",
1418
+ "line": 3,
1419
+ "character": 34
1420
+ },
1421
+ "signature": "(property) check?: boolean | undefined",
1422
+ "name": "check",
1423
+ "type": {
1424
+ "__schema": "KeywordTypeSchema",
1425
+ "location": {
1426
+ "filePath": "formatter-context.ts",
1427
+ "line": 3,
1428
+ "character": 42
1429
+ },
1430
+ "name": "boolean"
1431
+ },
1432
+ "isOptional": true
1433
+ }
1434
+ ]
1435
+ }
1436
+ },
1437
+ {
1438
+ "__schema": "UnImplementedSchema",
1439
+ "location": {
1440
+ "filePath": "index.ts",
1441
+ "line": 9,
1442
+ "character": 16
1443
+ },
1444
+ "name": "FormatterAspect",
1445
+ "type": "Identifier"
1446
+ }
1447
+ ],
1448
+ "internals": []
1449
+ },
1450
+ "internals": [
1451
+ {
1452
+ "__schema": "ModuleSchema",
1453
+ "location": {
1454
+ "filePath": "formatter.aspect.ts",
1455
+ "line": 1,
1456
+ "character": 1
1457
+ },
1458
+ "exports": [
1459
+ {
1460
+ "__schema": "VariableLikeSchema",
1461
+ "location": {
1462
+ "filePath": "formatter.aspect.ts",
1463
+ "line": 3,
1464
+ "character": 14
1465
+ },
1466
+ "signature": "const FormatterAspect: Aspect",
1467
+ "name": "FormatterAspect",
1468
+ "type": {
1469
+ "__schema": "TypeRefSchema",
1470
+ "location": {
1471
+ "filePath": "formatter.aspect.ts",
1472
+ "line": 3,
1473
+ "character": 14
1474
+ },
1475
+ "name": "Aspect",
1476
+ "componentId": {
1477
+ "scope": "teambit.harmony",
1478
+ "name": "harmony",
1479
+ "version": "0.4.6"
1480
+ }
1481
+ },
1482
+ "isOptional": false,
1483
+ "defaultValue": "Aspect.create({\n id: 'teambit.defender/formatter',\n})"
1484
+ }
1485
+ ],
1486
+ "internals": []
1487
+ },
1488
+ {
1489
+ "__schema": "ModuleSchema",
1490
+ "location": {
1491
+ "filePath": "formatter.main.runtime.ts",
1492
+ "line": 1,
1493
+ "character": 1
1494
+ },
1495
+ "exports": [
1496
+ {
1497
+ "__schema": "TypeSchema",
1498
+ "location": {
1499
+ "filePath": "formatter.main.runtime.ts",
1500
+ "line": 13,
1501
+ "character": 1
1502
+ },
1503
+ "signature": "type FormatterConfig = {}",
1504
+ "name": "FormatterConfig",
1505
+ "type": {
1506
+ "__schema": "TypeLiteralSchema",
1507
+ "location": {
1508
+ "filePath": "formatter.main.runtime.ts",
1509
+ "line": 13,
1510
+ "character": 31
1511
+ },
1512
+ "members": []
1513
+ }
1514
+ },
1515
+ {
1516
+ "__schema": "ClassSchema",
1517
+ "location": {
1518
+ "filePath": "formatter.main.runtime.ts",
1519
+ "line": 14,
1520
+ "character": 1
1521
+ },
1522
+ "signature": "class FormatterMain",
1523
+ "name": "FormatterMain",
1524
+ "members": [
1525
+ {
1526
+ "__schema": "VariableLikeSchema",
1527
+ "location": {
1528
+ "filePath": "formatter.main.runtime.ts",
1529
+ "line": 15,
1530
+ "character": 3
1531
+ },
1532
+ "signature": "(property) FormatterMain.runtime: RuntimeDefinition",
1533
+ "name": "runtime",
1534
+ "type": {
1535
+ "__schema": "InferenceTypeSchema",
1536
+ "location": {
1537
+ "filePath": "formatter.main.runtime.ts",
1538
+ "line": 15,
1539
+ "character": 3
1540
+ },
1541
+ "type": "RuntimeDefinition"
1542
+ },
1543
+ "isOptional": true,
1544
+ "defaultValue": "MainRuntime"
1545
+ },
1546
+ {
1547
+ "__schema": "ConstructorSchema",
1548
+ "location": {
1549
+ "filePath": "formatter.main.runtime.ts",
1550
+ "line": 17,
1551
+ "character": 3
1552
+ },
1553
+ "signature": "constructor FormatterMain(envs: EnvsMain, formatterService: FormatterService): FormatterMain",
1554
+ "name": "constructor",
1555
+ "params": [
1556
+ {
1557
+ "__schema": "ParameterSchema",
1558
+ "location": {
1559
+ "filePath": "formatter.main.runtime.ts",
1560
+ "line": 17,
1561
+ "character": 15
1562
+ },
1563
+ "name": "envs",
1564
+ "type": {
1565
+ "__schema": "TypeRefSchema",
1566
+ "location": {
1567
+ "filePath": "formatter.main.runtime.ts",
1568
+ "line": 17,
1569
+ "character": 29
1570
+ },
1571
+ "name": "EnvsMain"
1572
+ },
1573
+ "isOptional": false,
1574
+ "isSpread": false
1575
+ },
1576
+ {
1577
+ "__schema": "ParameterSchema",
1578
+ "location": {
1579
+ "filePath": "formatter.main.runtime.ts",
1580
+ "line": 17,
1581
+ "character": 39
1582
+ },
1583
+ "name": "formatterService",
1584
+ "type": {
1585
+ "__schema": "TypeRefSchema",
1586
+ "location": {
1587
+ "filePath": "formatter.main.runtime.ts",
1588
+ "line": 17,
1589
+ "character": 65
1590
+ },
1591
+ "name": "FormatterService"
1592
+ },
1593
+ "isOptional": false,
1594
+ "isSpread": false
1595
+ }
1596
+ ],
1597
+ "returnType": {
1598
+ "__schema": "ThisTypeSchema",
1599
+ "location": {
1600
+ "filePath": "formatter.main.runtime.ts",
1601
+ "line": 14,
1602
+ "character": 1
1603
+ },
1604
+ "name": "FormatterMain"
1605
+ },
1606
+ "modifiers": []
1607
+ },
1608
+ {
1609
+ "__schema": "FunctionLikeSchema",
1610
+ "location": {
1611
+ "filePath": "formatter.main.runtime.ts",
1612
+ "line": 22,
1613
+ "character": 3
1614
+ },
1615
+ "doc": {
1616
+ "__schema": "DocSchema",
1617
+ "location": {
1618
+ "filePath": "formatter.main.runtime.ts",
1619
+ "line": 19,
1620
+ "character": 3
1621
+ },
1622
+ "raw": "/**\n * format an array of components.\n */",
1623
+ "comment": "format an array of components."
1624
+ },
1625
+ "signature": "(method) FormatterMain.format(components: Component[], opts: FormatterOptions): Promise<EnvsExecutionResult<FormatResults>>",
1626
+ "name": "format",
1627
+ "params": [
1628
+ {
1629
+ "__schema": "ParameterSchema",
1630
+ "location": {
1631
+ "filePath": "formatter.main.runtime.ts",
1632
+ "line": 22,
1633
+ "character": 16
1634
+ },
1635
+ "name": "components",
1636
+ "type": {
1637
+ "__schema": "TypeArraySchema",
1638
+ "location": {
1639
+ "filePath": "formatter.main.runtime.ts",
1640
+ "line": 22,
1641
+ "character": 28
1642
+ },
1643
+ "type": {
1644
+ "__schema": "TypeRefSchema",
1645
+ "location": {
1646
+ "filePath": "formatter.main.runtime.ts",
1647
+ "line": 22,
1648
+ "character": 28
1649
+ },
1650
+ "name": "Component"
1651
+ }
1652
+ },
1653
+ "isOptional": false,
1654
+ "isSpread": false
1655
+ },
1656
+ {
1657
+ "__schema": "ParameterSchema",
1658
+ "location": {
1659
+ "filePath": "formatter.main.runtime.ts",
1660
+ "line": 22,
1661
+ "character": 41
1662
+ },
1663
+ "name": "opts",
1664
+ "type": {
1665
+ "__schema": "TypeRefSchema",
1666
+ "location": {
1667
+ "filePath": "formatter.main.runtime.ts",
1668
+ "line": 22,
1669
+ "character": 47
1670
+ },
1671
+ "name": "FormatterOptions"
1672
+ },
1673
+ "isOptional": false,
1674
+ "isSpread": false
1675
+ }
1676
+ ],
1677
+ "returnType": {
1678
+ "__schema": "InferenceTypeSchema",
1679
+ "location": {
1680
+ "filePath": "formatter.main.runtime.ts",
1681
+ "line": 22,
1682
+ "character": 3
1683
+ },
1684
+ "type": "Promise<EnvsExecutionResult<FormatResults>>"
1685
+ },
1686
+ "modifiers": [
1687
+ "async"
1688
+ ]
1689
+ },
1690
+ {
1691
+ "__schema": "FunctionLikeSchema",
1692
+ "location": {
1693
+ "filePath": "formatter.main.runtime.ts",
1694
+ "line": 31,
1695
+ "character": 3
1696
+ },
1697
+ "doc": {
1698
+ "__schema": "DocSchema",
1699
+ "location": {
1700
+ "filePath": "formatter.main.runtime.ts",
1701
+ "line": 28,
1702
+ "character": 3
1703
+ },
1704
+ "raw": "/**\n * check format an array of components.\n */",
1705
+ "comment": "check format an array of components."
1706
+ },
1707
+ "signature": "(method) FormatterMain.check(components: Component[], opts: FormatterOptions): Promise<EnvsExecutionResult<FormatResults>>",
1708
+ "name": "check",
1709
+ "params": [
1710
+ {
1711
+ "__schema": "ParameterSchema",
1712
+ "location": {
1713
+ "filePath": "formatter.main.runtime.ts",
1714
+ "line": 31,
1715
+ "character": 15
1716
+ },
1717
+ "name": "components",
1718
+ "type": {
1719
+ "__schema": "TypeArraySchema",
1720
+ "location": {
1721
+ "filePath": "formatter.main.runtime.ts",
1722
+ "line": 31,
1723
+ "character": 27
1724
+ },
1725
+ "type": {
1726
+ "__schema": "TypeRefSchema",
1727
+ "location": {
1728
+ "filePath": "formatter.main.runtime.ts",
1729
+ "line": 31,
1730
+ "character": 27
1731
+ },
1732
+ "name": "Component"
1733
+ }
1734
+ },
1735
+ "isOptional": false,
1736
+ "isSpread": false
1737
+ },
1738
+ {
1739
+ "__schema": "ParameterSchema",
1740
+ "location": {
1741
+ "filePath": "formatter.main.runtime.ts",
1742
+ "line": 31,
1743
+ "character": 40
1744
+ },
1745
+ "name": "opts",
1746
+ "type": {
1747
+ "__schema": "TypeRefSchema",
1748
+ "location": {
1749
+ "filePath": "formatter.main.runtime.ts",
1750
+ "line": 31,
1751
+ "character": 46
1752
+ },
1753
+ "name": "FormatterOptions"
1754
+ },
1755
+ "isOptional": false,
1756
+ "isSpread": false
1757
+ }
1758
+ ],
1759
+ "returnType": {
1760
+ "__schema": "InferenceTypeSchema",
1761
+ "location": {
1762
+ "filePath": "formatter.main.runtime.ts",
1763
+ "line": 31,
1764
+ "character": 3
1765
+ },
1766
+ "type": "Promise<EnvsExecutionResult<FormatResults>>"
1767
+ },
1768
+ "modifiers": [
1769
+ "async"
1770
+ ]
1771
+ },
1772
+ {
1773
+ "__schema": "FunctionLikeSchema",
1774
+ "location": {
1775
+ "filePath": "formatter.main.runtime.ts",
1776
+ "line": 37,
1777
+ "character": 3
1778
+ },
1779
+ "signature": "(method) FormatterMain.getFormatter(context: ExecutionContext, options: FormatterOptions): Formatter",
1780
+ "name": "getFormatter",
1781
+ "params": [
1782
+ {
1783
+ "__schema": "ParameterSchema",
1784
+ "location": {
1785
+ "filePath": "formatter.main.runtime.ts",
1786
+ "line": 37,
1787
+ "character": 16
1788
+ },
1789
+ "name": "context",
1790
+ "type": {
1791
+ "__schema": "TypeRefSchema",
1792
+ "location": {
1793
+ "filePath": "formatter.main.runtime.ts",
1794
+ "line": 37,
1795
+ "character": 25
1796
+ },
1797
+ "name": "ExecutionContext"
1798
+ },
1799
+ "isOptional": false,
1800
+ "isSpread": false
1801
+ },
1802
+ {
1803
+ "__schema": "ParameterSchema",
1804
+ "location": {
1805
+ "filePath": "formatter.main.runtime.ts",
1806
+ "line": 37,
1807
+ "character": 43
1808
+ },
1809
+ "name": "options",
1810
+ "type": {
1811
+ "__schema": "TypeRefSchema",
1812
+ "location": {
1813
+ "filePath": "formatter.main.runtime.ts",
1814
+ "line": 37,
1815
+ "character": 52
1816
+ },
1817
+ "name": "FormatterOptions"
1818
+ },
1819
+ "isOptional": false,
1820
+ "isSpread": false
1821
+ }
1822
+ ],
1823
+ "returnType": {
1824
+ "__schema": "TypeRefSchema",
1825
+ "location": {
1826
+ "filePath": "formatter.main.runtime.ts",
1827
+ "line": 37,
1828
+ "character": 3
1829
+ },
1830
+ "name": "Formatter"
1831
+ },
1832
+ "modifiers": []
1833
+ },
1834
+ {
1835
+ "__schema": "FunctionLikeSchema",
1836
+ "location": {
1837
+ "filePath": "formatter.main.runtime.ts",
1838
+ "line": 52,
1839
+ "character": 3
1840
+ },
1841
+ "doc": {
1842
+ "__schema": "DocSchema",
1843
+ "location": {
1844
+ "filePath": "formatter.main.runtime.ts",
1845
+ "line": 48,
1846
+ "character": 3
1847
+ },
1848
+ "raw": "/**\n * create a format task for build pipelines.\n * @param name name of the task.\n */",
1849
+ "comment": "create a format task for build pipelines.",
1850
+ "tags": [
1851
+ {
1852
+ "__schema": "PropertyLikeTagSchema",
1853
+ "location": {
1854
+ "filePath": "formatter.main.runtime.ts",
1855
+ "line": 50,
1856
+ "character": 6
1857
+ },
1858
+ "name": "name",
1859
+ "tagName": "parameter",
1860
+ "comment": "name of the task."
1861
+ }
1862
+ ]
1863
+ },
1864
+ "signature": "(method) FormatterMain.createTask(name?: string): FormatTask",
1865
+ "name": "createTask",
1866
+ "params": [
1867
+ {
1868
+ "__schema": "ParameterSchema",
1869
+ "location": {
1870
+ "filePath": "formatter.main.runtime.ts",
1871
+ "line": 52,
1872
+ "character": 14
1873
+ },
1874
+ "name": "name",
1875
+ "type": {
1876
+ "__schema": "KeywordTypeSchema",
1877
+ "location": {
1878
+ "filePath": "formatter.main.runtime.ts",
1879
+ "line": 52,
1880
+ "character": 21
1881
+ },
1882
+ "name": "string"
1883
+ },
1884
+ "isOptional": true,
1885
+ "isSpread": false
1886
+ }
1887
+ ],
1888
+ "returnType": {
1889
+ "__schema": "TypeRefSchema",
1890
+ "location": {
1891
+ "filePath": "formatter.main.runtime.ts",
1892
+ "line": 52,
1893
+ "character": 3
1894
+ },
1895
+ "name": "FormatTask"
1896
+ },
1897
+ "modifiers": []
1898
+ },
1899
+ {
1900
+ "__schema": "VariableLikeSchema",
1901
+ "location": {
1902
+ "filePath": "formatter.main.runtime.ts",
1903
+ "line": 56,
1904
+ "character": 3
1905
+ },
1906
+ "signature": "(property) FormatterMain.dependencies: Aspect[]",
1907
+ "name": "dependencies",
1908
+ "type": {
1909
+ "__schema": "InferenceTypeSchema",
1910
+ "location": {
1911
+ "filePath": "formatter.main.runtime.ts",
1912
+ "line": 56,
1913
+ "character": 3
1914
+ },
1915
+ "type": "Aspect[]"
1916
+ },
1917
+ "isOptional": true,
1918
+ "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
1919
+ },
1920
+ {
1921
+ "__schema": "VariableLikeSchema",
1922
+ "location": {
1923
+ "filePath": "formatter.main.runtime.ts",
1924
+ "line": 58,
1925
+ "character": 3
1926
+ },
1927
+ "signature": "(property) FormatterMain.defaultConfig: FormatterConfig",
1928
+ "name": "defaultConfig",
1929
+ "type": {
1930
+ "__schema": "TypeRefSchema",
1931
+ "location": {
1932
+ "filePath": "formatter.main.runtime.ts",
1933
+ "line": 58,
1934
+ "character": 3
1935
+ },
1936
+ "name": "FormatterConfig"
1937
+ },
1938
+ "isOptional": true,
1939
+ "defaultValue": "{}"
1940
+ },
1941
+ {
1942
+ "__schema": "FunctionLikeSchema",
1943
+ "location": {
1944
+ "filePath": "formatter.main.runtime.ts",
1945
+ "line": 60,
1946
+ "character": 3
1947
+ },
1948
+ "signature": "(method) FormatterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: FormatterConfig): Promise<FormatterMain>",
1949
+ "name": "provider",
1950
+ "params": [
1951
+ {
1952
+ "__schema": "ParameterSchema",
1953
+ "location": {
1954
+ "filePath": "formatter.main.runtime.ts",
1955
+ "line": 61,
1956
+ "character": 5
1957
+ },
1958
+ "name": "[ envs, cli, component, loggerAspect, workspace ]",
1959
+ "type": {
1960
+ "__schema": "TupleTypeSchema",
1961
+ "location": {
1962
+ "filePath": "formatter.main.runtime.ts",
1963
+ "line": 61,
1964
+ "character": 54
1965
+ },
1966
+ "elements": [
1967
+ {
1968
+ "__schema": "TypeRefSchema",
1969
+ "location": {
1970
+ "filePath": "formatter.main.runtime.ts",
1971
+ "line": 61,
1972
+ "character": 55
1973
+ },
1974
+ "name": "EnvsMain"
1975
+ },
1976
+ {
1977
+ "__schema": "TypeRefSchema",
1978
+ "location": {
1979
+ "filePath": "formatter.main.runtime.ts",
1980
+ "line": 61,
1981
+ "character": 65
1982
+ },
1983
+ "name": "CLIMain"
1984
+ },
1985
+ {
1986
+ "__schema": "TypeRefSchema",
1987
+ "location": {
1988
+ "filePath": "formatter.main.runtime.ts",
1989
+ "line": 61,
1990
+ "character": 74
1991
+ },
1992
+ "name": "ComponentMain"
1993
+ },
1994
+ {
1995
+ "__schema": "TypeRefSchema",
1996
+ "location": {
1997
+ "filePath": "formatter.main.runtime.ts",
1998
+ "line": 61,
1999
+ "character": 89
2000
+ },
2001
+ "name": "LoggerMain"
2002
+ },
2003
+ {
2004
+ "__schema": "TypeRefSchema",
2005
+ "location": {
2006
+ "filePath": "formatter.main.runtime.ts",
2007
+ "line": 61,
2008
+ "character": 101
2009
+ },
2010
+ "name": "Workspace"
2011
+ }
2012
+ ]
2013
+ },
2014
+ "isOptional": false,
2015
+ "isSpread": false
2016
+ },
2017
+ {
2018
+ "__schema": "ParameterSchema",
2019
+ "location": {
2020
+ "filePath": "formatter.main.runtime.ts",
2021
+ "line": 62,
2022
+ "character": 5
2023
+ },
2024
+ "name": "config",
2025
+ "type": {
2026
+ "__schema": "TypeRefSchema",
2027
+ "location": {
2028
+ "filePath": "formatter.main.runtime.ts",
2029
+ "line": 62,
2030
+ "character": 13
2031
+ },
2032
+ "name": "FormatterConfig"
2033
+ },
2034
+ "isOptional": false,
2035
+ "isSpread": false
2036
+ }
2037
+ ],
2038
+ "returnType": {
2039
+ "__schema": "InferenceTypeSchema",
2040
+ "location": {
2041
+ "filePath": "formatter.main.runtime.ts",
2042
+ "line": 60,
2043
+ "character": 3
2044
+ },
2045
+ "type": "Promise<FormatterMain>"
2046
+ },
2047
+ "modifiers": [
2048
+ "static",
2049
+ "async"
2050
+ ]
2051
+ }
2052
+ ],
2053
+ "extendsNodes": [],
2054
+ "implementNodes": []
2055
+ }
2056
+ ],
2057
+ "internals": [
2058
+ {
2059
+ "__schema": "UnImplementedSchema",
2060
+ "location": {
2061
+ "filePath": "formatter.main.runtime.ts",
2062
+ "line": 75,
2063
+ "character": 1
2064
+ },
2065
+ "name": "FormatterAspect.addRuntime(FormatterMain);",
2066
+ "type": "ExpressionStatement"
2067
+ }
2068
+ ]
2069
+ },
2070
+ {
2071
+ "__schema": "ModuleSchema",
2072
+ "location": {
2073
+ "filePath": "formatter.ts",
2074
+ "line": 1,
2075
+ "character": 1
2076
+ },
2077
+ "exports": [
2078
+ {
2079
+ "__schema": "TypeSchema",
2080
+ "location": {
2081
+ "filePath": "formatter.ts",
2082
+ "line": 4,
2083
+ "character": 1
2084
+ },
2085
+ "signature": "type ComponentFormatResult = {\n component: Component;\n results: FileFormatResult[];\n}",
2086
+ "name": "ComponentFormatResult",
2087
+ "type": {
2088
+ "__schema": "TypeLiteralSchema",
2089
+ "location": {
2090
+ "filePath": "formatter.ts",
2091
+ "line": 4,
2092
+ "character": 37
2093
+ },
2094
+ "members": [
2095
+ {
2096
+ "__schema": "VariableLikeSchema",
2097
+ "location": {
2098
+ "filePath": "formatter.ts",
2099
+ "line": 8,
2100
+ "character": 3
2101
+ },
2102
+ "doc": {
2103
+ "__schema": "DocSchema",
2104
+ "location": {
2105
+ "filePath": "formatter.ts",
2106
+ "line": 5,
2107
+ "character": 3
2108
+ },
2109
+ "raw": "/**\n * the formatted component.\n */",
2110
+ "comment": "the formatted component."
2111
+ },
2112
+ "signature": "(property) component: Component",
2113
+ "name": "component",
2114
+ "type": {
2115
+ "__schema": "TypeRefSchema",
2116
+ "location": {
2117
+ "filePath": "formatter.ts",
2118
+ "line": 8,
2119
+ "character": 3
2120
+ },
2121
+ "name": "Component",
2122
+ "componentId": {
2123
+ "scope": "teambit.component",
2124
+ "name": "component"
2125
+ }
2126
+ },
2127
+ "isOptional": false
2128
+ },
2129
+ {
2130
+ "__schema": "VariableLikeSchema",
2131
+ "location": {
2132
+ "filePath": "formatter.ts",
2133
+ "line": 13,
2134
+ "character": 3
2135
+ },
2136
+ "doc": {
2137
+ "__schema": "DocSchema",
2138
+ "location": {
2139
+ "filePath": "formatter.ts",
2140
+ "line": 10,
2141
+ "character": 3
2142
+ },
2143
+ "raw": "/**\n * format results for each file of the component.\n */",
2144
+ "comment": "format results for each file of the component."
2145
+ },
2146
+ "signature": "(property) results: FileFormatResult[]",
2147
+ "name": "results",
2148
+ "type": {
2149
+ "__schema": "TypeArraySchema",
2150
+ "location": {
2151
+ "filePath": "formatter.ts",
2152
+ "line": 13,
2153
+ "character": 12
2154
+ },
2155
+ "type": {
2156
+ "__schema": "TypeRefSchema",
2157
+ "location": {
2158
+ "filePath": "formatter.ts",
2159
+ "line": 13,
2160
+ "character": 12
2161
+ },
2162
+ "name": "FileFormatResult"
2163
+ }
2164
+ },
2165
+ "isOptional": false
2166
+ }
2167
+ ]
2168
+ }
2169
+ },
2170
+ {
2171
+ "__schema": "TypeSchema",
2172
+ "location": {
2173
+ "filePath": "formatter.ts",
2174
+ "line": 16,
2175
+ "character": 1
2176
+ },
2177
+ "signature": "type FileFormatResult = {\n filePath: string;\n hasIssues: boolean;\n newContent?: string | undefined;\n}",
2178
+ "name": "FileFormatResult",
2179
+ "type": {
2180
+ "__schema": "TypeLiteralSchema",
2181
+ "location": {
2182
+ "filePath": "formatter.ts",
2183
+ "line": 16,
2184
+ "character": 32
2185
+ },
2186
+ "members": [
2187
+ {
2188
+ "__schema": "VariableLikeSchema",
2189
+ "location": {
2190
+ "filePath": "formatter.ts",
2191
+ "line": 20,
2192
+ "character": 3
2193
+ },
2194
+ "doc": {
2195
+ "__schema": "DocSchema",
2196
+ "location": {
2197
+ "filePath": "formatter.ts",
2198
+ "line": 17,
2199
+ "character": 3
2200
+ },
2201
+ "raw": "/**\n * path of the formatted file.\n */",
2202
+ "comment": "path of the formatted file."
2203
+ },
2204
+ "signature": "(property) filePath: string",
2205
+ "name": "filePath",
2206
+ "type": {
2207
+ "__schema": "KeywordTypeSchema",
2208
+ "location": {
2209
+ "filePath": "formatter.ts",
2210
+ "line": 20,
2211
+ "character": 13
2212
+ },
2213
+ "name": "string"
2214
+ },
2215
+ "isOptional": false
2216
+ },
2217
+ {
2218
+ "__schema": "VariableLikeSchema",
2219
+ "location": {
2220
+ "filePath": "formatter.ts",
2221
+ "line": 25,
2222
+ "character": 3
2223
+ },
2224
+ "doc": {
2225
+ "__schema": "DocSchema",
2226
+ "location": {
2227
+ "filePath": "formatter.ts",
2228
+ "line": 22,
2229
+ "character": 3
2230
+ },
2231
+ "raw": "/**\n * Does the file has formatting issues (needs format)\n */",
2232
+ "comment": "Does the file has formatting issues (needs format)"
2233
+ },
2234
+ "signature": "(property) hasIssues: boolean",
2235
+ "name": "hasIssues",
2236
+ "type": {
2237
+ "__schema": "KeywordTypeSchema",
2238
+ "location": {
2239
+ "filePath": "formatter.ts",
2240
+ "line": 25,
2241
+ "character": 14
2242
+ },
2243
+ "name": "boolean"
2244
+ },
2245
+ "isOptional": false
2246
+ },
2247
+ {
2248
+ "__schema": "VariableLikeSchema",
2249
+ "location": {
2250
+ "filePath": "formatter.ts",
2251
+ "line": 30,
2252
+ "character": 3
2253
+ },
2254
+ "doc": {
2255
+ "__schema": "DocSchema",
2256
+ "location": {
2257
+ "filePath": "formatter.ts",
2258
+ "line": 27,
2259
+ "character": 3
2260
+ },
2261
+ "raw": "/**\n * The new file content after the formatting\n */",
2262
+ "comment": "The new file content after the formatting"
2263
+ },
2264
+ "signature": "(property) newContent?: string | undefined",
2265
+ "name": "newContent",
2266
+ "type": {
2267
+ "__schema": "KeywordTypeSchema",
2268
+ "location": {
2269
+ "filePath": "formatter.ts",
2270
+ "line": 30,
2271
+ "character": 16
2272
+ },
2273
+ "name": "string"
2274
+ },
2275
+ "isOptional": true
2276
+ }
2277
+ ]
2278
+ }
2279
+ },
2280
+ {
2281
+ "__schema": "TypeSchema",
2282
+ "location": {
2283
+ "filePath": "formatter.ts",
2284
+ "line": 33,
2285
+ "character": 1
2286
+ },
2287
+ "signature": "type FormatResults = {\n results: ComponentFormatResult[];\n errors: Error[];\n}",
2288
+ "name": "FormatResults",
2289
+ "type": {
2290
+ "__schema": "TypeLiteralSchema",
2291
+ "location": {
2292
+ "filePath": "formatter.ts",
2293
+ "line": 33,
2294
+ "character": 29
2295
+ },
2296
+ "members": [
2297
+ {
2298
+ "__schema": "VariableLikeSchema",
2299
+ "location": {
2300
+ "filePath": "formatter.ts",
2301
+ "line": 34,
2302
+ "character": 3
2303
+ },
2304
+ "signature": "(property) results: ComponentFormatResult[]",
2305
+ "name": "results",
2306
+ "type": {
2307
+ "__schema": "TypeArraySchema",
2308
+ "location": {
2309
+ "filePath": "formatter.ts",
2310
+ "line": 34,
2311
+ "character": 12
2312
+ },
2313
+ "type": {
2314
+ "__schema": "TypeRefSchema",
2315
+ "location": {
2316
+ "filePath": "formatter.ts",
2317
+ "line": 34,
2318
+ "character": 12
2319
+ },
2320
+ "name": "ComponentFormatResult"
2321
+ }
2322
+ },
2323
+ "isOptional": false
2324
+ },
2325
+ {
2326
+ "__schema": "VariableLikeSchema",
2327
+ "location": {
2328
+ "filePath": "formatter.ts",
2329
+ "line": 35,
2330
+ "character": 3
2331
+ },
2332
+ "signature": "(property) errors: Error[]",
2333
+ "name": "errors",
2334
+ "type": {
2335
+ "__schema": "TypeArraySchema",
2336
+ "location": {
2337
+ "filePath": "formatter.ts",
2338
+ "line": 35,
2339
+ "character": 11
2340
+ },
2341
+ "type": {
2342
+ "__schema": "TypeRefSchema",
2343
+ "location": {
2344
+ "filePath": "formatter.ts",
2345
+ "line": 35,
2346
+ "character": 11
2347
+ },
2348
+ "name": "Error"
2349
+ }
2350
+ },
2351
+ "isOptional": false
2352
+ }
2353
+ ]
2354
+ }
2355
+ },
2356
+ {
2357
+ "__schema": "InterfaceSchema",
2358
+ "location": {
2359
+ "filePath": "formatter.ts",
2360
+ "line": 38,
2361
+ "character": 1
2362
+ },
2363
+ "signature": "interface Formatter",
2364
+ "name": "Formatter",
2365
+ "members": [
2366
+ {
2367
+ "__schema": "VariableLikeSchema",
2368
+ "location": {
2369
+ "filePath": "formatter.ts",
2370
+ "line": 39,
2371
+ "character": 3
2372
+ },
2373
+ "signature": "(property) Formatter.id: string",
2374
+ "name": "id",
2375
+ "type": {
2376
+ "__schema": "KeywordTypeSchema",
2377
+ "location": {
2378
+ "filePath": "formatter.ts",
2379
+ "line": 39,
2380
+ "character": 7
2381
+ },
2382
+ "name": "string"
2383
+ },
2384
+ "isOptional": false
2385
+ },
2386
+ {
2387
+ "__schema": "FunctionLikeSchema",
2388
+ "location": {
2389
+ "filePath": "formatter.ts",
2390
+ "line": 40,
2391
+ "character": 3
2392
+ },
2393
+ "signature": "(method) Formatter.format(context: FormatterContext): Promise<FormatResults>",
2394
+ "name": "format",
2395
+ "params": [
2396
+ {
2397
+ "__schema": "ParameterSchema",
2398
+ "location": {
2399
+ "filePath": "formatter.ts",
2400
+ "line": 40,
2401
+ "character": 10
2402
+ },
2403
+ "name": "context",
2404
+ "type": {
2405
+ "__schema": "TypeRefSchema",
2406
+ "location": {
2407
+ "filePath": "formatter.ts",
2408
+ "line": 40,
2409
+ "character": 19
2410
+ },
2411
+ "name": "FormatterContext"
2412
+ },
2413
+ "isOptional": false,
2414
+ "isSpread": false
2415
+ }
2416
+ ],
2417
+ "returnType": {
2418
+ "__schema": "TypeRefSchema",
2419
+ "location": {
2420
+ "filePath": "formatter.ts",
2421
+ "line": 40,
2422
+ "character": 38
2423
+ },
2424
+ "name": "Promise",
2425
+ "typeArgs": [
2426
+ {
2427
+ "__schema": "TypeRefSchema",
2428
+ "location": {
2429
+ "filePath": "formatter.ts",
2430
+ "line": 40,
2431
+ "character": 46
2432
+ },
2433
+ "name": "FormatResults"
2434
+ }
2435
+ ]
2436
+ },
2437
+ "modifiers": []
2438
+ },
2439
+ {
2440
+ "__schema": "FunctionLikeSchema",
2441
+ "location": {
2442
+ "filePath": "formatter.ts",
2443
+ "line": 41,
2444
+ "character": 3
2445
+ },
2446
+ "signature": "(method) Formatter.formatSnippet(snippet: string, filepath?: string): Promise<string>",
2447
+ "name": "formatSnippet",
2448
+ "params": [
2449
+ {
2450
+ "__schema": "ParameterSchema",
2451
+ "location": {
2452
+ "filePath": "formatter.ts",
2453
+ "line": 41,
2454
+ "character": 17
2455
+ },
2456
+ "name": "snippet",
2457
+ "type": {
2458
+ "__schema": "KeywordTypeSchema",
2459
+ "location": {
2460
+ "filePath": "formatter.ts",
2461
+ "line": 41,
2462
+ "character": 26
2463
+ },
2464
+ "name": "string"
2465
+ },
2466
+ "isOptional": false,
2467
+ "isSpread": false
2468
+ },
2469
+ {
2470
+ "__schema": "ParameterSchema",
2471
+ "location": {
2472
+ "filePath": "formatter.ts",
2473
+ "line": 41,
2474
+ "character": 34
2475
+ },
2476
+ "name": "filepath",
2477
+ "type": {
2478
+ "__schema": "KeywordTypeSchema",
2479
+ "location": {
2480
+ "filePath": "formatter.ts",
2481
+ "line": 41,
2482
+ "character": 45
2483
+ },
2484
+ "name": "string"
2485
+ },
2486
+ "isOptional": true,
2487
+ "isSpread": false
2488
+ }
2489
+ ],
2490
+ "returnType": {
2491
+ "__schema": "TypeRefSchema",
2492
+ "location": {
2493
+ "filePath": "formatter.ts",
2494
+ "line": 41,
2495
+ "character": 54
2496
+ },
2497
+ "name": "Promise",
2498
+ "typeArgs": [
2499
+ {
2500
+ "__schema": "KeywordTypeSchema",
2501
+ "location": {
2502
+ "filePath": "formatter.ts",
2503
+ "line": 41,
2504
+ "character": 62
2505
+ },
2506
+ "name": "string"
2507
+ }
2508
+ ]
2509
+ },
2510
+ "modifiers": []
2511
+ },
2512
+ {
2513
+ "__schema": "FunctionLikeSchema",
2514
+ "location": {
2515
+ "filePath": "formatter.ts",
2516
+ "line": 42,
2517
+ "character": 3
2518
+ },
2519
+ "signature": "(method) Formatter.check(context: FormatterContext): Promise<FormatResults>",
2520
+ "name": "check",
2521
+ "params": [
2522
+ {
2523
+ "__schema": "ParameterSchema",
2524
+ "location": {
2525
+ "filePath": "formatter.ts",
2526
+ "line": 42,
2527
+ "character": 9
2528
+ },
2529
+ "name": "context",
2530
+ "type": {
2531
+ "__schema": "TypeRefSchema",
2532
+ "location": {
2533
+ "filePath": "formatter.ts",
2534
+ "line": 42,
2535
+ "character": 18
2536
+ },
2537
+ "name": "FormatterContext"
2538
+ },
2539
+ "isOptional": false,
2540
+ "isSpread": false
2541
+ }
2542
+ ],
2543
+ "returnType": {
2544
+ "__schema": "TypeRefSchema",
2545
+ "location": {
2546
+ "filePath": "formatter.ts",
2547
+ "line": 42,
2548
+ "character": 37
2549
+ },
2550
+ "name": "Promise",
2551
+ "typeArgs": [
2552
+ {
2553
+ "__schema": "TypeRefSchema",
2554
+ "location": {
2555
+ "filePath": "formatter.ts",
2556
+ "line": 42,
2557
+ "character": 45
2558
+ },
2559
+ "name": "FormatResults"
2560
+ }
2561
+ ]
2562
+ },
2563
+ "modifiers": []
2564
+ }
2565
+ ],
2566
+ "extendsNodes": []
2567
+ }
2568
+ ],
2569
+ "internals": []
2570
+ },
2571
+ {
2572
+ "__schema": "ModuleSchema",
2573
+ "location": {
2574
+ "filePath": "format.task.ts",
2575
+ "line": 1,
2576
+ "character": 1
2577
+ },
2578
+ "exports": [
2579
+ {
2580
+ "__schema": "ClassSchema",
2581
+ "location": {
2582
+ "filePath": "format.task.ts",
2583
+ "line": 4,
2584
+ "character": 1
2585
+ },
2586
+ "signature": "class FormatTask",
2587
+ "name": "FormatTask",
2588
+ "members": [
2589
+ {
2590
+ "__schema": "ConstructorSchema",
2591
+ "location": {
2592
+ "filePath": "format.task.ts",
2593
+ "line": 5,
2594
+ "character": 3
2595
+ },
2596
+ "signature": "constructor FormatTask(aspectId: string, name?: string): FormatTask",
2597
+ "name": "constructor",
2598
+ "params": [
2599
+ {
2600
+ "__schema": "ParameterSchema",
2601
+ "location": {
2602
+ "filePath": "format.task.ts",
2603
+ "line": 5,
2604
+ "character": 15
2605
+ },
2606
+ "name": "aspectId",
2607
+ "type": {
2608
+ "__schema": "KeywordTypeSchema",
2609
+ "location": {
2610
+ "filePath": "format.task.ts",
2611
+ "line": 5,
2612
+ "character": 34
2613
+ },
2614
+ "name": "string"
2615
+ },
2616
+ "isOptional": false,
2617
+ "isSpread": false
2618
+ },
2619
+ {
2620
+ "__schema": "ParameterSchema",
2621
+ "location": {
2622
+ "filePath": "format.task.ts",
2623
+ "line": 5,
2624
+ "character": 42
2625
+ },
2626
+ "name": "name",
2627
+ "type": {
2628
+ "__schema": "InferenceTypeSchema",
2629
+ "location": {
2630
+ "filePath": "format.task.ts",
2631
+ "line": 5,
2632
+ "character": 42
2633
+ },
2634
+ "type": "string"
2635
+ },
2636
+ "isOptional": true,
2637
+ "defaultValue": "'format'",
2638
+ "isSpread": false
2639
+ }
2640
+ ],
2641
+ "returnType": {
2642
+ "__schema": "ThisTypeSchema",
2643
+ "location": {
2644
+ "filePath": "format.task.ts",
2645
+ "line": 4,
2646
+ "character": 1
2647
+ },
2648
+ "name": "FormatTask"
2649
+ },
2650
+ "modifiers": []
2651
+ },
2652
+ {
2653
+ "__schema": "FunctionLikeSchema",
2654
+ "location": {
2655
+ "filePath": "format.task.ts",
2656
+ "line": 7,
2657
+ "character": 3
2658
+ },
2659
+ "signature": "(method) FormatTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
2660
+ "name": "execute",
2661
+ "params": [
2662
+ {
2663
+ "__schema": "ParameterSchema",
2664
+ "location": {
2665
+ "filePath": "format.task.ts",
2666
+ "line": 7,
2667
+ "character": 17
2668
+ },
2669
+ "name": "context",
2670
+ "type": {
2671
+ "__schema": "TypeRefSchema",
2672
+ "location": {
2673
+ "filePath": "format.task.ts",
2674
+ "line": 7,
2675
+ "character": 26
2676
+ },
2677
+ "name": "BuildContext"
2678
+ },
2679
+ "isOptional": false,
2680
+ "isSpread": false
2681
+ }
2682
+ ],
2683
+ "returnType": {
2684
+ "__schema": "TypeRefSchema",
2685
+ "location": {
2686
+ "filePath": "format.task.ts",
2687
+ "line": 7,
2688
+ "character": 41
2689
+ },
2690
+ "name": "Promise",
2691
+ "typeArgs": [
2692
+ {
2693
+ "__schema": "TypeRefSchema",
2694
+ "location": {
2695
+ "filePath": "format.task.ts",
2696
+ "line": 7,
2697
+ "character": 49
2698
+ },
2699
+ "name": "BuiltTaskResult"
2700
+ }
2701
+ ]
2702
+ },
2703
+ "modifiers": [
2704
+ "async"
2705
+ ]
2706
+ }
2707
+ ],
2708
+ "extendsNodes": [],
2709
+ "implementNodes": [
2710
+ {
2711
+ "__schema": "ExpressionWithTypeArgumentsSchema",
2712
+ "location": {
2713
+ "filePath": "format.task.ts",
2714
+ "line": 4,
2715
+ "character": 36
2716
+ },
2717
+ "name": "implements BuildTask",
2718
+ "typeArgs": [],
2719
+ "expression": {
2720
+ "__schema": "TypeRefSchema",
2721
+ "location": {
2722
+ "filePath": "format.task.ts",
2723
+ "line": 4,
2724
+ "character": 36
2725
+ },
2726
+ "name": "BuildTask",
2727
+ "componentId": {
2728
+ "_legacy": {
2729
+ "scope": "teambit.defender",
2730
+ "name": "formatter",
2731
+ "version": "1.0.160"
2732
+ },
2733
+ "_scope": "teambit.defender"
2734
+ }
2735
+ }
2736
+ }
2737
+ ]
2738
+ }
2739
+ ],
2740
+ "internals": []
2741
+ },
2742
+ {
2743
+ "__schema": "ModuleSchema",
2744
+ "location": {
2745
+ "filePath": "formatter-env-type.ts",
2746
+ "line": 1,
2747
+ "character": 1
2748
+ },
2749
+ "exports": [
2750
+ {
2751
+ "__schema": "InterfaceSchema",
2752
+ "location": {
2753
+ "filePath": "formatter-env-type.ts",
2754
+ "line": 4,
2755
+ "character": 1
2756
+ },
2757
+ "signature": "interface FormatterEnv",
2758
+ "name": "FormatterEnv",
2759
+ "members": [
2760
+ {
2761
+ "__schema": "FunctionLikeSchema",
2762
+ "location": {
2763
+ "filePath": "formatter-env-type.ts",
2764
+ "line": 8,
2765
+ "character": 3
2766
+ },
2767
+ "doc": {
2768
+ "__schema": "DocSchema",
2769
+ "location": {
2770
+ "filePath": "formatter-env-type.ts",
2771
+ "line": 5,
2772
+ "character": 3
2773
+ },
2774
+ "raw": "/**\n * return a Formatter instance.\n */",
2775
+ "comment": "return a Formatter instance."
2776
+ },
2777
+ "signature": "(method) FormatterEnv.formatter(): EnvHandler<Formatter>",
2778
+ "name": "formatter",
2779
+ "params": [],
2780
+ "returnType": {
2781
+ "__schema": "TypeRefSchema",
2782
+ "location": {
2783
+ "filePath": "formatter-env-type.ts",
2784
+ "line": 8,
2785
+ "character": 16
2786
+ },
2787
+ "name": "EnvHandler",
2788
+ "typeArgs": [
2789
+ {
2790
+ "__schema": "TypeRefSchema",
2791
+ "location": {
2792
+ "filePath": "formatter-env-type.ts",
2793
+ "line": 8,
2794
+ "character": 27
2795
+ },
2796
+ "name": "Formatter"
2797
+ }
2798
+ ]
2799
+ },
2800
+ "modifiers": []
2801
+ }
2802
+ ],
2803
+ "extendsNodes": []
2804
+ }
2805
+ ],
2806
+ "internals": []
2807
+ }
2808
+ ],
2809
+ "componentId": {
2810
+ "scope": "teambit.defender",
2811
+ "name": "formatter",
2812
+ "version": "1.0.160"
2813
+ },
2814
+ "taggedModuleExports": []
2815
+ }