@teambit/linter 1.0.187 → 1.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4657 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "VariableLikeSchema",
18
- "location": {
19
- "filePath": "linter.aspect.ts",
20
- "line": 3,
21
- "character": 14
22
- },
23
- "signature": "const LinterAspect: Aspect",
24
- "name": "LinterAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
27
- "location": {
28
- "filePath": "linter.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/linter',\n})"
41
- },
42
- {
43
- "__schema": "ClassSchema",
44
- "location": {
45
- "filePath": "linter.main.runtime.ts",
46
- "line": 21,
47
- "character": 1
48
- },
49
- "signature": "class LinterMain",
50
- "name": "LinterMain",
51
- "members": [
52
- {
53
- "__schema": "VariableLikeSchema",
54
- "location": {
55
- "filePath": "linter.main.runtime.ts",
56
- "line": 22,
57
- "character": 3
58
- },
59
- "signature": "(property) LinterMain.runtime: RuntimeDefinition",
60
- "name": "runtime",
61
- "type": {
62
- "__schema": "InferenceTypeSchema",
63
- "location": {
64
- "filePath": "linter.main.runtime.ts",
65
- "line": 22,
66
- "character": 3
67
- },
68
- "type": "RuntimeDefinition"
69
- },
70
- "isOptional": true,
71
- "defaultValue": "MainRuntime"
72
- },
73
- {
74
- "__schema": "ConstructorSchema",
75
- "location": {
76
- "filePath": "linter.main.runtime.ts",
77
- "line": 24,
78
- "character": 3
79
- },
80
- "signature": "constructor LinterMain(envs: EnvsMain, linterService: LinterService): LinterMain",
81
- "name": "constructor",
82
- "params": [
83
- {
84
- "__schema": "ParameterSchema",
85
- "location": {
86
- "filePath": "linter.main.runtime.ts",
87
- "line": 24,
88
- "character": 15
89
- },
90
- "name": "envs",
91
- "type": {
92
- "__schema": "TypeRefSchema",
93
- "location": {
94
- "filePath": "linter.main.runtime.ts",
95
- "line": 24,
96
- "character": 29
97
- },
98
- "name": "EnvsMain"
99
- },
100
- "isOptional": false,
101
- "isSpread": false
102
- },
103
- {
104
- "__schema": "ParameterSchema",
105
- "location": {
106
- "filePath": "linter.main.runtime.ts",
107
- "line": 24,
108
- "character": 39
109
- },
110
- "name": "linterService",
111
- "type": {
112
- "__schema": "TypeRefSchema",
113
- "location": {
114
- "filePath": "linter.main.runtime.ts",
115
- "line": 24,
116
- "character": 62
117
- },
118
- "name": "LinterService"
119
- },
120
- "isOptional": false,
121
- "isSpread": false
122
- }
123
- ],
124
- "returnType": {
125
- "__schema": "ThisTypeSchema",
126
- "location": {
127
- "filePath": "linter.main.runtime.ts",
128
- "line": 21,
129
- "character": 1
130
- },
131
- "name": "LinterMain"
132
- },
133
- "modifiers": []
134
- },
135
- {
136
- "__schema": "FunctionLikeSchema",
137
- "location": {
138
- "filePath": "linter.main.runtime.ts",
139
- "line": 29,
140
- "character": 3
141
- },
142
- "doc": {
143
- "__schema": "DocSchema",
144
- "location": {
145
- "filePath": "linter.main.runtime.ts",
146
- "line": 26,
147
- "character": 3
148
- },
149
- "raw": "/**\n * lint an array of components.\n */",
150
- "comment": "lint an array of components."
151
- },
152
- "signature": "(method) LinterMain.lint(components: Component[], opts: LinterOptions): Promise<EnvsExecutionResult<LintResults>>",
153
- "name": "lint",
154
- "params": [
155
- {
156
- "__schema": "ParameterSchema",
157
- "location": {
158
- "filePath": "linter.main.runtime.ts",
159
- "line": 29,
160
- "character": 14
161
- },
162
- "name": "components",
163
- "type": {
164
- "__schema": "TypeArraySchema",
165
- "location": {
166
- "filePath": "linter.main.runtime.ts",
167
- "line": 29,
168
- "character": 26
169
- },
170
- "type": {
171
- "__schema": "TypeRefSchema",
172
- "location": {
173
- "filePath": "linter.main.runtime.ts",
174
- "line": 29,
175
- "character": 26
176
- },
177
- "name": "Component"
178
- }
179
- },
180
- "isOptional": false,
181
- "isSpread": false
182
- },
183
- {
184
- "__schema": "ParameterSchema",
185
- "location": {
186
- "filePath": "linter.main.runtime.ts",
187
- "line": 29,
188
- "character": 39
189
- },
190
- "name": "opts",
191
- "type": {
192
- "__schema": "TypeRefSchema",
193
- "location": {
194
- "filePath": "linter.main.runtime.ts",
195
- "line": 29,
196
- "character": 45
197
- },
198
- "name": "LinterOptions"
199
- },
200
- "isOptional": false,
201
- "isSpread": false
202
- }
203
- ],
204
- "returnType": {
205
- "__schema": "InferenceTypeSchema",
206
- "location": {
207
- "filePath": "linter.main.runtime.ts",
208
- "line": 29,
209
- "character": 3
210
- },
211
- "type": "Promise<EnvsExecutionResult<LintResults>>"
212
- },
213
- "modifiers": [
214
- "async"
215
- ]
216
- },
217
- {
218
- "__schema": "FunctionLikeSchema",
219
- "location": {
220
- "filePath": "linter.main.runtime.ts",
221
- "line": 35,
222
- "character": 3
223
- },
224
- "signature": "(method) LinterMain.getLinter(context: ExecutionContext, options: LinterOptions): Linter",
225
- "name": "getLinter",
226
- "params": [
227
- {
228
- "__schema": "ParameterSchema",
229
- "location": {
230
- "filePath": "linter.main.runtime.ts",
231
- "line": 35,
232
- "character": 13
233
- },
234
- "name": "context",
235
- "type": {
236
- "__schema": "TypeRefSchema",
237
- "location": {
238
- "filePath": "linter.main.runtime.ts",
239
- "line": 35,
240
- "character": 22
241
- },
242
- "name": "ExecutionContext"
243
- },
244
- "isOptional": false,
245
- "isSpread": false
246
- },
247
- {
248
- "__schema": "ParameterSchema",
249
- "location": {
250
- "filePath": "linter.main.runtime.ts",
251
- "line": 35,
252
- "character": 40
253
- },
254
- "name": "options",
255
- "type": {
256
- "__schema": "TypeRefSchema",
257
- "location": {
258
- "filePath": "linter.main.runtime.ts",
259
- "line": 35,
260
- "character": 49
261
- },
262
- "name": "LinterOptions"
263
- },
264
- "isOptional": false,
265
- "isSpread": false
266
- }
267
- ],
268
- "returnType": {
269
- "__schema": "TypeRefSchema",
270
- "location": {
271
- "filePath": "linter.main.runtime.ts",
272
- "line": 35,
273
- "character": 3
274
- },
275
- "name": "Linter"
276
- },
277
- "modifiers": []
278
- },
279
- {
280
- "__schema": "FunctionLikeSchema",
281
- "location": {
282
- "filePath": "linter.main.runtime.ts",
283
- "line": 43,
284
- "character": 3
285
- },
286
- "doc": {
287
- "__schema": "DocSchema",
288
- "location": {
289
- "filePath": "linter.main.runtime.ts",
290
- "line": 39,
291
- "character": 3
292
- },
293
- "raw": "/**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */",
294
- "comment": "create a lint task for build pipelines.",
295
- "tags": [
296
- {
297
- "__schema": "PropertyLikeTagSchema",
298
- "location": {
299
- "filePath": "linter.main.runtime.ts",
300
- "line": 41,
301
- "character": 6
302
- },
303
- "name": "name",
304
- "tagName": "parameter",
305
- "comment": "name of the task."
306
- }
307
- ]
308
- },
309
- "signature": "(method) LinterMain.createTask(name?: string): LintTask",
310
- "name": "createTask",
311
- "params": [
312
- {
313
- "__schema": "ParameterSchema",
314
- "location": {
315
- "filePath": "linter.main.runtime.ts",
316
- "line": 43,
317
- "character": 14
318
- },
319
- "name": "name",
320
- "type": {
321
- "__schema": "KeywordTypeSchema",
322
- "location": {
323
- "filePath": "linter.main.runtime.ts",
324
- "line": 43,
325
- "character": 21
326
- },
327
- "name": "string"
328
- },
329
- "isOptional": true,
330
- "isSpread": false
331
- }
332
- ],
333
- "returnType": {
334
- "__schema": "TypeRefSchema",
335
- "location": {
336
- "filePath": "linter.main.runtime.ts",
337
- "line": 43,
338
- "character": 3
339
- },
340
- "name": "LintTask"
341
- },
342
- "modifiers": []
343
- },
344
- {
345
- "__schema": "VariableLikeSchema",
346
- "location": {
347
- "filePath": "linter.main.runtime.ts",
348
- "line": 47,
349
- "character": 3
350
- },
351
- "signature": "(property) LinterMain.dependencies: Aspect[]",
352
- "name": "dependencies",
353
- "type": {
354
- "__schema": "InferenceTypeSchema",
355
- "location": {
356
- "filePath": "linter.main.runtime.ts",
357
- "line": 47,
358
- "character": 3
359
- },
360
- "type": "Aspect[]"
361
- },
362
- "isOptional": true,
363
- "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
364
- },
365
- {
366
- "__schema": "VariableLikeSchema",
367
- "location": {
368
- "filePath": "linter.main.runtime.ts",
369
- "line": 49,
370
- "character": 3
371
- },
372
- "signature": "(property) LinterMain.defaultConfig: LinterConfig",
373
- "name": "defaultConfig",
374
- "type": {
375
- "__schema": "TypeRefSchema",
376
- "location": {
377
- "filePath": "linter.main.runtime.ts",
378
- "line": 49,
379
- "character": 3
380
- },
381
- "name": "LinterConfig"
382
- },
383
- "isOptional": true,
384
- "defaultValue": "{\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n }"
385
- },
386
- {
387
- "__schema": "FunctionLikeSchema",
388
- "location": {
389
- "filePath": "linter.main.runtime.ts",
390
- "line": 54,
391
- "character": 3
392
- },
393
- "signature": "(method) LinterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: LinterConfig): Promise<LinterMain>",
394
- "name": "provider",
395
- "params": [
396
- {
397
- "__schema": "ParameterSchema",
398
- "location": {
399
- "filePath": "linter.main.runtime.ts",
400
- "line": 55,
401
- "character": 5
402
- },
403
- "name": "[ envs, cli, component, loggerAspect, workspace ]",
404
- "type": {
405
- "__schema": "TupleTypeSchema",
406
- "location": {
407
- "filePath": "linter.main.runtime.ts",
408
- "line": 55,
409
- "character": 54
410
- },
411
- "elements": [
412
- {
413
- "__schema": "TypeRefSchema",
414
- "location": {
415
- "filePath": "linter.main.runtime.ts",
416
- "line": 55,
417
- "character": 55
418
- },
419
- "name": "EnvsMain"
420
- },
421
- {
422
- "__schema": "TypeRefSchema",
423
- "location": {
424
- "filePath": "linter.main.runtime.ts",
425
- "line": 55,
426
- "character": 65
427
- },
428
- "name": "CLIMain"
429
- },
430
- {
431
- "__schema": "TypeRefSchema",
432
- "location": {
433
- "filePath": "linter.main.runtime.ts",
434
- "line": 55,
435
- "character": 74
436
- },
437
- "name": "ComponentMain"
438
- },
439
- {
440
- "__schema": "TypeRefSchema",
441
- "location": {
442
- "filePath": "linter.main.runtime.ts",
443
- "line": 55,
444
- "character": 89
445
- },
446
- "name": "LoggerMain"
447
- },
448
- {
449
- "__schema": "TypeRefSchema",
450
- "location": {
451
- "filePath": "linter.main.runtime.ts",
452
- "line": 55,
453
- "character": 101
454
- },
455
- "name": "Workspace"
456
- }
457
- ]
458
- },
459
- "isOptional": false,
460
- "isSpread": false
461
- },
462
- {
463
- "__schema": "ParameterSchema",
464
- "location": {
465
- "filePath": "linter.main.runtime.ts",
466
- "line": 56,
467
- "character": 5
468
- },
469
- "name": "config",
470
- "type": {
471
- "__schema": "TypeRefSchema",
472
- "location": {
473
- "filePath": "linter.main.runtime.ts",
474
- "line": 56,
475
- "character": 13
476
- },
477
- "name": "LinterConfig"
478
- },
479
- "isOptional": false,
480
- "isSpread": false
481
- }
482
- ],
483
- "returnType": {
484
- "__schema": "InferenceTypeSchema",
485
- "location": {
486
- "filePath": "linter.main.runtime.ts",
487
- "line": 54,
488
- "character": 3
489
- },
490
- "type": "Promise<LinterMain>"
491
- },
492
- "modifiers": [
493
- "static",
494
- "async"
495
- ]
496
- }
497
- ],
498
- "extendsNodes": [],
499
- "implementNodes": []
500
- },
501
- {
502
- "__schema": "TypeSchema",
503
- "location": {
504
- "filePath": "linter.main.runtime.ts",
505
- "line": 13,
506
- "character": 1
507
- },
508
- "signature": "type LinterConfig = {\n extensionFormats: string[];\n fixTypes?: FixTypes | undefined;\n}",
509
- "name": "LinterConfig",
510
- "type": {
511
- "__schema": "TypeLiteralSchema",
512
- "location": {
513
- "filePath": "linter.main.runtime.ts",
514
- "line": 13,
515
- "character": 28
516
- },
517
- "members": [
518
- {
519
- "__schema": "VariableLikeSchema",
520
- "location": {
521
- "filePath": "linter.main.runtime.ts",
522
- "line": 17,
523
- "character": 3
524
- },
525
- "doc": {
526
- "__schema": "DocSchema",
527
- "location": {
528
- "filePath": "linter.main.runtime.ts",
529
- "line": 14,
530
- "character": 3
531
- },
532
- "raw": "/**\n * extension formats to lint.\n */",
533
- "comment": "extension formats to lint."
534
- },
535
- "signature": "(property) extensionFormats: string[]",
536
- "name": "extensionFormats",
537
- "type": {
538
- "__schema": "TypeArraySchema",
539
- "location": {
540
- "filePath": "linter.main.runtime.ts",
541
- "line": 17,
542
- "character": 21
543
- },
544
- "type": {
545
- "__schema": "KeywordTypeSchema",
546
- "location": {
547
- "filePath": "linter.main.runtime.ts",
548
- "line": 17,
549
- "character": 21
550
- },
551
- "name": "string"
552
- }
553
- },
554
- "isOptional": false
555
- },
556
- {
557
- "__schema": "VariableLikeSchema",
558
- "location": {
559
- "filePath": "linter.main.runtime.ts",
560
- "line": 18,
561
- "character": 3
562
- },
563
- "signature": "(property) fixTypes?: FixTypes | undefined",
564
- "name": "fixTypes",
565
- "type": {
566
- "__schema": "TypeRefSchema",
567
- "location": {
568
- "filePath": "linter.main.runtime.ts",
569
- "line": 18,
570
- "character": 14
571
- },
572
- "name": "FixTypes"
573
- },
574
- "isOptional": true
575
- }
576
- ]
577
- }
578
- },
579
- {
580
- "__schema": "TypeSchema",
581
- "location": {
582
- "filePath": "linter.ts",
583
- "line": 121,
584
- "character": 1
585
- },
586
- "signature": "type LintResults = {\n results: ComponentLintResult[];\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n ... 5 more ...;\n errors: Error[];\n}",
587
- "name": "LintResults",
588
- "type": {
589
- "__schema": "TypeLiteralSchema",
590
- "location": {
591
- "filePath": "linter.ts",
592
- "line": 121,
593
- "character": 27
594
- },
595
- "members": [
596
- {
597
- "__schema": "VariableLikeSchema",
598
- "location": {
599
- "filePath": "linter.ts",
600
- "line": 122,
601
- "character": 3
602
- },
603
- "signature": "(property) results: ComponentLintResult[]",
604
- "name": "results",
605
- "type": {
606
- "__schema": "TypeArraySchema",
607
- "location": {
608
- "filePath": "linter.ts",
609
- "line": 122,
610
- "character": 12
611
- },
612
- "type": {
613
- "__schema": "TypeRefSchema",
614
- "location": {
615
- "filePath": "linter.ts",
616
- "line": 122,
617
- "character": 12
618
- },
619
- "name": "ComponentLintResult"
620
- }
621
- },
622
- "isOptional": false
623
- },
624
- {
625
- "__schema": "VariableLikeSchema",
626
- "location": {
627
- "filePath": "linter.ts",
628
- "line": 126,
629
- "character": 3
630
- },
631
- "doc": {
632
- "__schema": "DocSchema",
633
- "location": {
634
- "filePath": "linter.ts",
635
- "line": 123,
636
- "character": 3
637
- },
638
- "raw": "/**\n * total errors count of the component (from all of the components).\n */",
639
- "comment": "total errors count of the component (from all of the components)."
640
- },
641
- "signature": "(property) totalErrorCount: number",
642
- "name": "totalErrorCount",
643
- "type": {
644
- "__schema": "KeywordTypeSchema",
645
- "location": {
646
- "filePath": "linter.ts",
647
- "line": 126,
648
- "character": 20
649
- },
650
- "name": "number"
651
- },
652
- "isOptional": false
653
- },
654
- {
655
- "__schema": "VariableLikeSchema",
656
- "location": {
657
- "filePath": "linter.ts",
658
- "line": 130,
659
- "character": 3
660
- },
661
- "doc": {
662
- "__schema": "DocSchema",
663
- "location": {
664
- "filePath": "linter.ts",
665
- "line": 127,
666
- "character": 3
667
- },
668
- "raw": "/**\n * total fatal errors count of the component (from all of the components).\n */",
669
- "comment": "total fatal errors count of the component (from all of the components)."
670
- },
671
- "signature": "(property) totalFatalErrorCount?: number | undefined",
672
- "name": "totalFatalErrorCount",
673
- "type": {
674
- "__schema": "KeywordTypeSchema",
675
- "location": {
676
- "filePath": "linter.ts",
677
- "line": 130,
678
- "character": 26
679
- },
680
- "name": "number"
681
- },
682
- "isOptional": true
683
- },
684
- {
685
- "__schema": "VariableLikeSchema",
686
- "location": {
687
- "filePath": "linter.ts",
688
- "line": 134,
689
- "character": 3
690
- },
691
- "doc": {
692
- "__schema": "DocSchema",
693
- "location": {
694
- "filePath": "linter.ts",
695
- "line": 131,
696
- "character": 3
697
- },
698
- "raw": "/**\n * total fixable errors count of the component (from all of the components).\n */",
699
- "comment": "total fixable errors count of the component (from all of the components)."
700
- },
701
- "signature": "(property) totalFixableErrorCount?: number | undefined",
702
- "name": "totalFixableErrorCount",
703
- "type": {
704
- "__schema": "KeywordTypeSchema",
705
- "location": {
706
- "filePath": "linter.ts",
707
- "line": 134,
708
- "character": 28
709
- },
710
- "name": "number"
711
- },
712
- "isOptional": true
713
- },
714
- {
715
- "__schema": "VariableLikeSchema",
716
- "location": {
717
- "filePath": "linter.ts",
718
- "line": 138,
719
- "character": 3
720
- },
721
- "doc": {
722
- "__schema": "DocSchema",
723
- "location": {
724
- "filePath": "linter.ts",
725
- "line": 135,
726
- "character": 3
727
- },
728
- "raw": "/**\n * total fatal warning count of the component (from all of the components).\n */",
729
- "comment": "total fatal warning count of the component (from all of the components)."
730
- },
731
- "signature": "(property) totalFixableWarningCount?: number | undefined",
732
- "name": "totalFixableWarningCount",
733
- "type": {
734
- "__schema": "KeywordTypeSchema",
735
- "location": {
736
- "filePath": "linter.ts",
737
- "line": 138,
738
- "character": 30
739
- },
740
- "name": "number"
741
- },
742
- "isOptional": true
743
- },
744
- {
745
- "__schema": "VariableLikeSchema",
746
- "location": {
747
- "filePath": "linter.ts",
748
- "line": 142,
749
- "character": 3
750
- },
751
- "doc": {
752
- "__schema": "DocSchema",
753
- "location": {
754
- "filePath": "linter.ts",
755
- "line": 139,
756
- "character": 3
757
- },
758
- "raw": "/**\n * total warning count of the component (from all of the components).\n */",
759
- "comment": "total warning count of the component (from all of the components)."
760
- },
761
- "signature": "(property) totalWarningCount: number",
762
- "name": "totalWarningCount",
763
- "type": {
764
- "__schema": "KeywordTypeSchema",
765
- "location": {
766
- "filePath": "linter.ts",
767
- "line": 142,
768
- "character": 22
769
- },
770
- "name": "number"
771
- },
772
- "isOptional": false
773
- },
774
- {
775
- "__schema": "VariableLikeSchema",
776
- "location": {
777
- "filePath": "linter.ts",
778
- "line": 144,
779
- "character": 3
780
- },
781
- "signature": "(property) totalComponentsWithErrorCount: number",
782
- "name": "totalComponentsWithErrorCount",
783
- "type": {
784
- "__schema": "KeywordTypeSchema",
785
- "location": {
786
- "filePath": "linter.ts",
787
- "line": 144,
788
- "character": 34
789
- },
790
- "name": "number"
791
- },
792
- "isOptional": false
793
- },
794
- {
795
- "__schema": "VariableLikeSchema",
796
- "location": {
797
- "filePath": "linter.ts",
798
- "line": 145,
799
- "character": 3
800
- },
801
- "signature": "(property) totalComponentsWithFatalErrorCount?: number | undefined",
802
- "name": "totalComponentsWithFatalErrorCount",
803
- "type": {
804
- "__schema": "KeywordTypeSchema",
805
- "location": {
806
- "filePath": "linter.ts",
807
- "line": 145,
808
- "character": 40
809
- },
810
- "name": "number"
811
- },
812
- "isOptional": true
813
- },
814
- {
815
- "__schema": "VariableLikeSchema",
816
- "location": {
817
- "filePath": "linter.ts",
818
- "line": 146,
819
- "character": 3
820
- },
821
- "signature": "(property) totalComponentsWithFixableErrorCount?: number | undefined",
822
- "name": "totalComponentsWithFixableErrorCount",
823
- "type": {
824
- "__schema": "KeywordTypeSchema",
825
- "location": {
826
- "filePath": "linter.ts",
827
- "line": 146,
828
- "character": 42
829
- },
830
- "name": "number"
831
- },
832
- "isOptional": true
833
- },
834
- {
835
- "__schema": "VariableLikeSchema",
836
- "location": {
837
- "filePath": "linter.ts",
838
- "line": 147,
839
- "character": 3
840
- },
841
- "signature": "(property) totalComponentsWithFixableWarningCount?: number | undefined",
842
- "name": "totalComponentsWithFixableWarningCount",
843
- "type": {
844
- "__schema": "KeywordTypeSchema",
845
- "location": {
846
- "filePath": "linter.ts",
847
- "line": 147,
848
- "character": 44
849
- },
850
- "name": "number"
851
- },
852
- "isOptional": true
853
- },
854
- {
855
- "__schema": "VariableLikeSchema",
856
- "location": {
857
- "filePath": "linter.ts",
858
- "line": 148,
859
- "character": 3
860
- },
861
- "signature": "(property) totalComponentsWithWarningCount: number",
862
- "name": "totalComponentsWithWarningCount",
863
- "type": {
864
- "__schema": "KeywordTypeSchema",
865
- "location": {
866
- "filePath": "linter.ts",
867
- "line": 148,
868
- "character": 36
869
- },
870
- "name": "number"
871
- },
872
- "isOptional": false
873
- },
874
- {
875
- "__schema": "VariableLikeSchema",
876
- "location": {
877
- "filePath": "linter.ts",
878
- "line": 150,
879
- "character": 3
880
- },
881
- "signature": "(property) errors: Error[]",
882
- "name": "errors",
883
- "type": {
884
- "__schema": "TypeArraySchema",
885
- "location": {
886
- "filePath": "linter.ts",
887
- "line": 150,
888
- "character": 11
889
- },
890
- "type": {
891
- "__schema": "TypeRefSchema",
892
- "location": {
893
- "filePath": "linter.ts",
894
- "line": 150,
895
- "character": 11
896
- },
897
- "name": "Error"
898
- }
899
- },
900
- "isOptional": false
901
- }
902
- ]
903
- }
904
- },
905
- {
906
- "__schema": "InterfaceSchema",
907
- "location": {
908
- "filePath": "linter.ts",
909
- "line": 153,
910
- "character": 1
911
- },
912
- "signature": "interface Linter",
913
- "name": "Linter",
914
- "members": [
915
- {
916
- "__schema": "VariableLikeSchema",
917
- "location": {
918
- "filePath": "linter.ts",
919
- "line": 154,
920
- "character": 3
921
- },
922
- "signature": "(property) Linter.id: string",
923
- "name": "id",
924
- "type": {
925
- "__schema": "KeywordTypeSchema",
926
- "location": {
927
- "filePath": "linter.ts",
928
- "line": 154,
929
- "character": 7
930
- },
931
- "name": "string"
932
- },
933
- "isOptional": false
934
- },
935
- {
936
- "__schema": "FunctionLikeSchema",
937
- "location": {
938
- "filePath": "linter.ts",
939
- "line": 155,
940
- "character": 3
941
- },
942
- "signature": "(method) Linter.lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>",
943
- "name": "lint",
944
- "params": [
945
- {
946
- "__schema": "ParameterSchema",
947
- "location": {
948
- "filePath": "linter.ts",
949
- "line": 155,
950
- "character": 8
951
- },
952
- "name": "context",
953
- "type": {
954
- "__schema": "TypeRefSchema",
955
- "location": {
956
- "filePath": "linter.ts",
957
- "line": 155,
958
- "character": 17
959
- },
960
- "name": "LinterContext"
961
- },
962
- "isOptional": false,
963
- "isSpread": false
964
- },
965
- {
966
- "__schema": "ParameterSchema",
967
- "location": {
968
- "filePath": "linter.ts",
969
- "line": 155,
970
- "character": 32
971
- },
972
- "name": "buildContext",
973
- "type": {
974
- "__schema": "TypeRefSchema",
975
- "location": {
976
- "filePath": "linter.ts",
977
- "line": 155,
978
- "character": 47
979
- },
980
- "name": "BuildContext"
981
- },
982
- "isOptional": true,
983
- "isSpread": false
984
- }
985
- ],
986
- "returnType": {
987
- "__schema": "TypeRefSchema",
988
- "location": {
989
- "filePath": "linter.ts",
990
- "line": 155,
991
- "character": 62
992
- },
993
- "name": "Promise",
994
- "typeArgs": [
995
- {
996
- "__schema": "TypeRefSchema",
997
- "location": {
998
- "filePath": "linter.ts",
999
- "line": 155,
1000
- "character": 70
1001
- },
1002
- "name": "LintResults"
1003
- }
1004
- ]
1005
- },
1006
- "modifiers": []
1007
- }
1008
- ],
1009
- "extendsNodes": []
1010
- },
1011
- {
1012
- "__schema": "TypeSchema",
1013
- "location": {
1014
- "filePath": "linter.ts",
1015
- "line": 43,
1016
- "character": 1
1017
- },
1018
- "signature": "type LintResult = {\n filePath: string;\n errorCount: number;\n fatalErrorCount?: number | undefined;\n fixableErrorCount?: number | undefined;\n fixableWarningCount?: number | undefined;\n warningCount: number;\n messages: LintMessage[];\n raw: any;\n}",
1019
- "name": "LintResult",
1020
- "type": {
1021
- "__schema": "TypeLiteralSchema",
1022
- "location": {
1023
- "filePath": "linter.ts",
1024
- "line": 43,
1025
- "character": 26
1026
- },
1027
- "members": [
1028
- {
1029
- "__schema": "VariableLikeSchema",
1030
- "location": {
1031
- "filePath": "linter.ts",
1032
- "line": 47,
1033
- "character": 3
1034
- },
1035
- "doc": {
1036
- "__schema": "DocSchema",
1037
- "location": {
1038
- "filePath": "linter.ts",
1039
- "line": 44,
1040
- "character": 3
1041
- },
1042
- "raw": "/**\n * path of the linted file.\n */",
1043
- "comment": "path of the linted file."
1044
- },
1045
- "signature": "(property) filePath: string",
1046
- "name": "filePath",
1047
- "type": {
1048
- "__schema": "KeywordTypeSchema",
1049
- "location": {
1050
- "filePath": "linter.ts",
1051
- "line": 47,
1052
- "character": 13
1053
- },
1054
- "name": "string"
1055
- },
1056
- "isOptional": false
1057
- },
1058
- {
1059
- "__schema": "VariableLikeSchema",
1060
- "location": {
1061
- "filePath": "linter.ts",
1062
- "line": 52,
1063
- "character": 3
1064
- },
1065
- "doc": {
1066
- "__schema": "DocSchema",
1067
- "location": {
1068
- "filePath": "linter.ts",
1069
- "line": 49,
1070
- "character": 3
1071
- },
1072
- "raw": "/**\n * numbers of errors found.\n */",
1073
- "comment": "numbers of errors found."
1074
- },
1075
- "signature": "(property) errorCount: number",
1076
- "name": "errorCount",
1077
- "type": {
1078
- "__schema": "KeywordTypeSchema",
1079
- "location": {
1080
- "filePath": "linter.ts",
1081
- "line": 52,
1082
- "character": 15
1083
- },
1084
- "name": "number"
1085
- },
1086
- "isOptional": false
1087
- },
1088
- {
1089
- "__schema": "VariableLikeSchema",
1090
- "location": {
1091
- "filePath": "linter.ts",
1092
- "line": 57,
1093
- "character": 3
1094
- },
1095
- "doc": {
1096
- "__schema": "DocSchema",
1097
- "location": {
1098
- "filePath": "linter.ts",
1099
- "line": 54,
1100
- "character": 3
1101
- },
1102
- "raw": "/**\n * numbers of errors found.\n */",
1103
- "comment": "numbers of errors found."
1104
- },
1105
- "signature": "(property) fatalErrorCount?: number | undefined",
1106
- "name": "fatalErrorCount",
1107
- "type": {
1108
- "__schema": "KeywordTypeSchema",
1109
- "location": {
1110
- "filePath": "linter.ts",
1111
- "line": 57,
1112
- "character": 21
1113
- },
1114
- "name": "number"
1115
- },
1116
- "isOptional": true
1117
- },
1118
- {
1119
- "__schema": "VariableLikeSchema",
1120
- "location": {
1121
- "filePath": "linter.ts",
1122
- "line": 62,
1123
- "character": 3
1124
- },
1125
- "doc": {
1126
- "__schema": "DocSchema",
1127
- "location": {
1128
- "filePath": "linter.ts",
1129
- "line": 59,
1130
- "character": 3
1131
- },
1132
- "raw": "/**\n * numbers of fixable errors found.\n */",
1133
- "comment": "numbers of fixable errors found."
1134
- },
1135
- "signature": "(property) fixableErrorCount?: number | undefined",
1136
- "name": "fixableErrorCount",
1137
- "type": {
1138
- "__schema": "KeywordTypeSchema",
1139
- "location": {
1140
- "filePath": "linter.ts",
1141
- "line": 62,
1142
- "character": 23
1143
- },
1144
- "name": "number"
1145
- },
1146
- "isOptional": true
1147
- },
1148
- {
1149
- "__schema": "VariableLikeSchema",
1150
- "location": {
1151
- "filePath": "linter.ts",
1152
- "line": 67,
1153
- "character": 3
1154
- },
1155
- "doc": {
1156
- "__schema": "DocSchema",
1157
- "location": {
1158
- "filePath": "linter.ts",
1159
- "line": 64,
1160
- "character": 3
1161
- },
1162
- "raw": "/**\n * numbers of fixable warning found.\n */",
1163
- "comment": "numbers of fixable warning found."
1164
- },
1165
- "signature": "(property) fixableWarningCount?: number | undefined",
1166
- "name": "fixableWarningCount",
1167
- "type": {
1168
- "__schema": "KeywordTypeSchema",
1169
- "location": {
1170
- "filePath": "linter.ts",
1171
- "line": 67,
1172
- "character": 25
1173
- },
1174
- "name": "number"
1175
- },
1176
- "isOptional": true
1177
- },
1178
- {
1179
- "__schema": "VariableLikeSchema",
1180
- "location": {
1181
- "filePath": "linter.ts",
1182
- "line": 72,
1183
- "character": 3
1184
- },
1185
- "doc": {
1186
- "__schema": "DocSchema",
1187
- "location": {
1188
- "filePath": "linter.ts",
1189
- "line": 69,
1190
- "character": 3
1191
- },
1192
- "raw": "/**\n * number of found warnings.\n */",
1193
- "comment": "number of found warnings."
1194
- },
1195
- "signature": "(property) warningCount: number",
1196
- "name": "warningCount",
1197
- "type": {
1198
- "__schema": "KeywordTypeSchema",
1199
- "location": {
1200
- "filePath": "linter.ts",
1201
- "line": 72,
1202
- "character": 17
1203
- },
1204
- "name": "number"
1205
- },
1206
- "isOptional": false
1207
- },
1208
- {
1209
- "__schema": "VariableLikeSchema",
1210
- "location": {
1211
- "filePath": "linter.ts",
1212
- "line": 77,
1213
- "character": 3
1214
- },
1215
- "doc": {
1216
- "__schema": "DocSchema",
1217
- "location": {
1218
- "filePath": "linter.ts",
1219
- "line": 74,
1220
- "character": 3
1221
- },
1222
- "raw": "/**\n * lint messages.\n */",
1223
- "comment": "lint messages."
1224
- },
1225
- "signature": "(property) messages: LintMessage[]",
1226
- "name": "messages",
1227
- "type": {
1228
- "__schema": "TypeArraySchema",
1229
- "location": {
1230
- "filePath": "linter.ts",
1231
- "line": 77,
1232
- "character": 13
1233
- },
1234
- "type": {
1235
- "__schema": "TypeRefSchema",
1236
- "location": {
1237
- "filePath": "linter.ts",
1238
- "line": 77,
1239
- "character": 13
1240
- },
1241
- "name": "LintMessage"
1242
- }
1243
- },
1244
- "isOptional": false
1245
- },
1246
- {
1247
- "__schema": "VariableLikeSchema",
1248
- "location": {
1249
- "filePath": "linter.ts",
1250
- "line": 82,
1251
- "character": 3
1252
- },
1253
- "doc": {
1254
- "__schema": "DocSchema",
1255
- "location": {
1256
- "filePath": "linter.ts",
1257
- "line": 79,
1258
- "character": 3
1259
- },
1260
- "raw": "/**\n * Raw data as returned from the linter\n */",
1261
- "comment": "Raw data as returned from the linter"
1262
- },
1263
- "signature": "(property) raw: any",
1264
- "name": "raw",
1265
- "type": {
1266
- "__schema": "KeywordTypeSchema",
1267
- "location": {
1268
- "filePath": "linter.ts",
1269
- "line": 82,
1270
- "character": 8
1271
- },
1272
- "name": "any"
1273
- },
1274
- "isOptional": false
1275
- }
1276
- ]
1277
- }
1278
- },
1279
- {
1280
- "__schema": "TypeSchema",
1281
- "location": {
1282
- "filePath": "linter.ts",
1283
- "line": 5,
1284
- "character": 1
1285
- },
1286
- "signature": "type ComponentLintResult = {\n component: Component;\n output: string;\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n results: LintResult[];\n}",
1287
- "name": "ComponentLintResult",
1288
- "type": {
1289
- "__schema": "TypeLiteralSchema",
1290
- "location": {
1291
- "filePath": "linter.ts",
1292
- "line": 5,
1293
- "character": 35
1294
- },
1295
- "members": [
1296
- {
1297
- "__schema": "VariableLikeSchema",
1298
- "location": {
1299
- "filePath": "linter.ts",
1300
- "line": 9,
1301
- "character": 3
1302
- },
1303
- "doc": {
1304
- "__schema": "DocSchema",
1305
- "location": {
1306
- "filePath": "linter.ts",
1307
- "line": 6,
1308
- "character": 3
1309
- },
1310
- "raw": "/**\n * the linted component.\n */",
1311
- "comment": "the linted component."
1312
- },
1313
- "signature": "(property) component: Component",
1314
- "name": "component",
1315
- "type": {
1316
- "__schema": "TypeRefSchema",
1317
- "location": {
1318
- "filePath": "linter.ts",
1319
- "line": 9,
1320
- "character": 3
1321
- },
1322
- "name": "Component",
1323
- "componentId": {
1324
- "scope": "teambit.component",
1325
- "name": "component"
1326
- }
1327
- },
1328
- "isOptional": false
1329
- },
1330
- {
1331
- "__schema": "VariableLikeSchema",
1332
- "location": {
1333
- "filePath": "linter.ts",
1334
- "line": 14,
1335
- "character": 3
1336
- },
1337
- "doc": {
1338
- "__schema": "DocSchema",
1339
- "location": {
1340
- "filePath": "linter.ts",
1341
- "line": 11,
1342
- "character": 3
1343
- },
1344
- "raw": "/**\n * CLI output of the linter.\n */",
1345
- "comment": "CLI output of the linter."
1346
- },
1347
- "signature": "(property) output: string",
1348
- "name": "output",
1349
- "type": {
1350
- "__schema": "KeywordTypeSchema",
1351
- "location": {
1352
- "filePath": "linter.ts",
1353
- "line": 14,
1354
- "character": 11
1355
- },
1356
- "name": "string"
1357
- },
1358
- "isOptional": false
1359
- },
1360
- {
1361
- "__schema": "VariableLikeSchema",
1362
- "location": {
1363
- "filePath": "linter.ts",
1364
- "line": 19,
1365
- "character": 3
1366
- },
1367
- "doc": {
1368
- "__schema": "DocSchema",
1369
- "location": {
1370
- "filePath": "linter.ts",
1371
- "line": 16,
1372
- "character": 3
1373
- },
1374
- "raw": "/**\n * total errors count of the component (from all of the files).\n */",
1375
- "comment": "total errors count of the component (from all of the files)."
1376
- },
1377
- "signature": "(property) totalErrorCount: number",
1378
- "name": "totalErrorCount",
1379
- "type": {
1380
- "__schema": "KeywordTypeSchema",
1381
- "location": {
1382
- "filePath": "linter.ts",
1383
- "line": 19,
1384
- "character": 20
1385
- },
1386
- "name": "number"
1387
- },
1388
- "isOptional": false
1389
- },
1390
- {
1391
- "__schema": "VariableLikeSchema",
1392
- "location": {
1393
- "filePath": "linter.ts",
1394
- "line": 23,
1395
- "character": 3
1396
- },
1397
- "doc": {
1398
- "__schema": "DocSchema",
1399
- "location": {
1400
- "filePath": "linter.ts",
1401
- "line": 20,
1402
- "character": 3
1403
- },
1404
- "raw": "/**\n * total fatal errors count of the component (from all of the files).\n */",
1405
- "comment": "total fatal errors count of the component (from all of the files)."
1406
- },
1407
- "signature": "(property) totalFatalErrorCount?: number | undefined",
1408
- "name": "totalFatalErrorCount",
1409
- "type": {
1410
- "__schema": "KeywordTypeSchema",
1411
- "location": {
1412
- "filePath": "linter.ts",
1413
- "line": 23,
1414
- "character": 26
1415
- },
1416
- "name": "number"
1417
- },
1418
- "isOptional": true
1419
- },
1420
- {
1421
- "__schema": "VariableLikeSchema",
1422
- "location": {
1423
- "filePath": "linter.ts",
1424
- "line": 27,
1425
- "character": 3
1426
- },
1427
- "doc": {
1428
- "__schema": "DocSchema",
1429
- "location": {
1430
- "filePath": "linter.ts",
1431
- "line": 24,
1432
- "character": 3
1433
- },
1434
- "raw": "/**\n * total fixable errors count of the component (from all of the files).\n */",
1435
- "comment": "total fixable errors count of the component (from all of the files)."
1436
- },
1437
- "signature": "(property) totalFixableErrorCount?: number | undefined",
1438
- "name": "totalFixableErrorCount",
1439
- "type": {
1440
- "__schema": "KeywordTypeSchema",
1441
- "location": {
1442
- "filePath": "linter.ts",
1443
- "line": 27,
1444
- "character": 28
1445
- },
1446
- "name": "number"
1447
- },
1448
- "isOptional": true
1449
- },
1450
- {
1451
- "__schema": "VariableLikeSchema",
1452
- "location": {
1453
- "filePath": "linter.ts",
1454
- "line": 31,
1455
- "character": 3
1456
- },
1457
- "doc": {
1458
- "__schema": "DocSchema",
1459
- "location": {
1460
- "filePath": "linter.ts",
1461
- "line": 28,
1462
- "character": 3
1463
- },
1464
- "raw": "/**\n * total fatal warning count of the component (from all of the files).\n */",
1465
- "comment": "total fatal warning count of the component (from all of the files)."
1466
- },
1467
- "signature": "(property) totalFixableWarningCount?: number | undefined",
1468
- "name": "totalFixableWarningCount",
1469
- "type": {
1470
- "__schema": "KeywordTypeSchema",
1471
- "location": {
1472
- "filePath": "linter.ts",
1473
- "line": 31,
1474
- "character": 30
1475
- },
1476
- "name": "number"
1477
- },
1478
- "isOptional": true
1479
- },
1480
- {
1481
- "__schema": "VariableLikeSchema",
1482
- "location": {
1483
- "filePath": "linter.ts",
1484
- "line": 35,
1485
- "character": 3
1486
- },
1487
- "doc": {
1488
- "__schema": "DocSchema",
1489
- "location": {
1490
- "filePath": "linter.ts",
1491
- "line": 32,
1492
- "character": 3
1493
- },
1494
- "raw": "/**\n * total warning count of the component (from all of the files).\n */",
1495
- "comment": "total warning count of the component (from all of the files)."
1496
- },
1497
- "signature": "(property) totalWarningCount: number",
1498
- "name": "totalWarningCount",
1499
- "type": {
1500
- "__schema": "KeywordTypeSchema",
1501
- "location": {
1502
- "filePath": "linter.ts",
1503
- "line": 35,
1504
- "character": 22
1505
- },
1506
- "name": "number"
1507
- },
1508
- "isOptional": false
1509
- },
1510
- {
1511
- "__schema": "VariableLikeSchema",
1512
- "location": {
1513
- "filePath": "linter.ts",
1514
- "line": 40,
1515
- "character": 3
1516
- },
1517
- "doc": {
1518
- "__schema": "DocSchema",
1519
- "location": {
1520
- "filePath": "linter.ts",
1521
- "line": 37,
1522
- "character": 3
1523
- },
1524
- "raw": "/**\n * lint results for each one of the component files\n */",
1525
- "comment": "lint results for each one of the component files"
1526
- },
1527
- "signature": "(property) results: LintResult[]",
1528
- "name": "results",
1529
- "type": {
1530
- "__schema": "TypeArraySchema",
1531
- "location": {
1532
- "filePath": "linter.ts",
1533
- "line": 40,
1534
- "character": 12
1535
- },
1536
- "type": {
1537
- "__schema": "TypeRefSchema",
1538
- "location": {
1539
- "filePath": "linter.ts",
1540
- "line": 40,
1541
- "character": 12
1542
- },
1543
- "name": "LintResult"
1544
- }
1545
- },
1546
- "isOptional": false
1547
- }
1548
- ]
1549
- }
1550
- },
1551
- {
1552
- "__schema": "ClassSchema",
1553
- "location": {
1554
- "filePath": "lint.task.ts",
1555
- "line": 8,
1556
- "character": 1
1557
- },
1558
- "signature": "class LintTask",
1559
- "name": "LintTask",
1560
- "members": [
1561
- {
1562
- "__schema": "ConstructorSchema",
1563
- "location": {
1564
- "filePath": "lint.task.ts",
1565
- "line": 9,
1566
- "character": 3
1567
- },
1568
- "signature": "constructor LintTask(aspectId: string, name?: string): LintTask",
1569
- "name": "constructor",
1570
- "params": [
1571
- {
1572
- "__schema": "ParameterSchema",
1573
- "location": {
1574
- "filePath": "lint.task.ts",
1575
- "line": 9,
1576
- "character": 15
1577
- },
1578
- "name": "aspectId",
1579
- "type": {
1580
- "__schema": "KeywordTypeSchema",
1581
- "location": {
1582
- "filePath": "lint.task.ts",
1583
- "line": 9,
1584
- "character": 34
1585
- },
1586
- "name": "string"
1587
- },
1588
- "isOptional": false,
1589
- "isSpread": false
1590
- },
1591
- {
1592
- "__schema": "ParameterSchema",
1593
- "location": {
1594
- "filePath": "lint.task.ts",
1595
- "line": 9,
1596
- "character": 42
1597
- },
1598
- "name": "name",
1599
- "type": {
1600
- "__schema": "InferenceTypeSchema",
1601
- "location": {
1602
- "filePath": "lint.task.ts",
1603
- "line": 9,
1604
- "character": 42
1605
- },
1606
- "type": "string"
1607
- },
1608
- "isOptional": true,
1609
- "defaultValue": "'lint'",
1610
- "isSpread": false
1611
- }
1612
- ],
1613
- "returnType": {
1614
- "__schema": "ThisTypeSchema",
1615
- "location": {
1616
- "filePath": "lint.task.ts",
1617
- "line": 8,
1618
- "character": 1
1619
- },
1620
- "name": "LintTask"
1621
- },
1622
- "modifiers": []
1623
- },
1624
- {
1625
- "__schema": "FunctionLikeSchema",
1626
- "location": {
1627
- "filePath": "lint.task.ts",
1628
- "line": 11,
1629
- "character": 3
1630
- },
1631
- "signature": "(method) LintTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
1632
- "name": "execute",
1633
- "params": [
1634
- {
1635
- "__schema": "ParameterSchema",
1636
- "location": {
1637
- "filePath": "lint.task.ts",
1638
- "line": 11,
1639
- "character": 17
1640
- },
1641
- "name": "context",
1642
- "type": {
1643
- "__schema": "TypeRefSchema",
1644
- "location": {
1645
- "filePath": "lint.task.ts",
1646
- "line": 11,
1647
- "character": 26
1648
- },
1649
- "name": "BuildContext"
1650
- },
1651
- "isOptional": false,
1652
- "isSpread": false
1653
- }
1654
- ],
1655
- "returnType": {
1656
- "__schema": "TypeRefSchema",
1657
- "location": {
1658
- "filePath": "lint.task.ts",
1659
- "line": 11,
1660
- "character": 41
1661
- },
1662
- "name": "Promise",
1663
- "typeArgs": [
1664
- {
1665
- "__schema": "TypeRefSchema",
1666
- "location": {
1667
- "filePath": "lint.task.ts",
1668
- "line": 11,
1669
- "character": 49
1670
- },
1671
- "name": "BuiltTaskResult"
1672
- }
1673
- ]
1674
- },
1675
- "modifiers": [
1676
- "async"
1677
- ]
1678
- }
1679
- ],
1680
- "extendsNodes": [],
1681
- "implementNodes": [
1682
- {
1683
- "__schema": "ExpressionWithTypeArgumentsSchema",
1684
- "location": {
1685
- "filePath": "lint.task.ts",
1686
- "line": 8,
1687
- "character": 34
1688
- },
1689
- "name": "implements BuildTask",
1690
- "typeArgs": [],
1691
- "expression": {
1692
- "__schema": "TypeRefSchema",
1693
- "location": {
1694
- "filePath": "lint.task.ts",
1695
- "line": 8,
1696
- "character": 34
1697
- },
1698
- "name": "BuildTask",
1699
- "componentId": {
1700
- "_legacy": {
1701
- "scope": "teambit.defender",
1702
- "name": "linter",
1703
- "version": "1.0.187"
1704
- },
1705
- "_scope": "teambit.defender"
1706
- }
1707
- }
1708
- }
1709
- ]
1710
- },
1711
- {
1712
- "__schema": "InterfaceSchema",
1713
- "location": {
1714
- "filePath": "linter-context.ts",
1715
- "line": 23,
1716
- "character": 1
1717
- },
1718
- "signature": "interface LinterContext",
1719
- "name": "LinterContext",
1720
- "members": [
1721
- {
1722
- "__schema": "VariableLikeSchema",
1723
- "location": {
1724
- "filePath": "linter-context.ts",
1725
- "line": 24,
1726
- "character": 3
1727
- },
1728
- "signature": "(property) LinterContext.quiet?: boolean | undefined",
1729
- "name": "quiet",
1730
- "type": {
1731
- "__schema": "KeywordTypeSchema",
1732
- "location": {
1733
- "filePath": "linter-context.ts",
1734
- "line": 24,
1735
- "character": 11
1736
- },
1737
- "name": "boolean"
1738
- },
1739
- "isOptional": true
1740
- },
1741
- {
1742
- "__schema": "VariableLikeSchema",
1743
- "location": {
1744
- "filePath": "linter-context.ts",
1745
- "line": 29,
1746
- "character": 3
1747
- },
1748
- "doc": {
1749
- "__schema": "DocSchema",
1750
- "location": {
1751
- "filePath": "linter-context.ts",
1752
- "line": 25,
1753
- "character": 3
1754
- },
1755
- "raw": "/**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */",
1756
- "comment": "Root dir that contains all the components in the fs that are about to be linted\nUsually it's the workspace root dir or the capsule root dir"
1757
- },
1758
- "signature": "(property) LinterContext.rootDir?: string | undefined",
1759
- "name": "rootDir",
1760
- "type": {
1761
- "__schema": "KeywordTypeSchema",
1762
- "location": {
1763
- "filePath": "linter-context.ts",
1764
- "line": 29,
1765
- "character": 13
1766
- },
1767
- "name": "string"
1768
- },
1769
- "isOptional": true
1770
- },
1771
- {
1772
- "__schema": "VariableLikeSchema",
1773
- "location": {
1774
- "filePath": "linter-context.ts",
1775
- "line": 34,
1776
- "character": 3
1777
- },
1778
- "doc": {
1779
- "__schema": "DocSchema",
1780
- "location": {
1781
- "filePath": "linter-context.ts",
1782
- "line": 31,
1783
- "character": 3
1784
- },
1785
- "raw": "/**\n * Component map with the path to the component in the fs\n */",
1786
- "comment": "Component map with the path to the component in the fs"
1787
- },
1788
- "signature": "(property) LinterContext.componentsDirMap: ComponentMap<string>",
1789
- "name": "componentsDirMap",
1790
- "type": {
1791
- "__schema": "TypeRefSchema",
1792
- "location": {
1793
- "filePath": "linter-context.ts",
1794
- "line": 34,
1795
- "character": 21
1796
- },
1797
- "name": "ComponentMap",
1798
- "typeArgs": [
1799
- {
1800
- "__schema": "KeywordTypeSchema",
1801
- "location": {
1802
- "filePath": "linter-context.ts",
1803
- "line": 34,
1804
- "character": 34
1805
- },
1806
- "name": "string"
1807
- }
1808
- ]
1809
- },
1810
- "isOptional": false
1811
- }
1812
- ],
1813
- "extendsNodes": [
1814
- {
1815
- "__schema": "ExpressionWithTypeArgumentsSchema",
1816
- "location": {
1817
- "filePath": "linter-context.ts",
1818
- "line": 23,
1819
- "character": 40
1820
- },
1821
- "name": "extends ExecutionContext, LinterOptions",
1822
- "typeArgs": [],
1823
- "expression": {
1824
- "__schema": "TypeRefSchema",
1825
- "location": {
1826
- "filePath": "linter-context.ts",
1827
- "line": 23,
1828
- "character": 40
1829
- },
1830
- "name": "ExecutionContext",
1831
- "componentId": {
1832
- "_legacy": {
1833
- "scope": "teambit.defender",
1834
- "name": "linter",
1835
- "version": "1.0.187"
1836
- },
1837
- "_scope": "teambit.defender"
1838
- }
1839
- }
1840
- },
1841
- {
1842
- "__schema": "ExpressionWithTypeArgumentsSchema",
1843
- "location": {
1844
- "filePath": "linter-context.ts",
1845
- "line": 23,
1846
- "character": 58
1847
- },
1848
- "name": "extends ExecutionContext, LinterOptions",
1849
- "typeArgs": [],
1850
- "expression": {
1851
- "__schema": "InterfaceSchema",
1852
- "location": {
1853
- "filePath": "linter-context.ts",
1854
- "line": 7,
1855
- "character": 1
1856
- },
1857
- "name": "LinterOptions",
1858
- "signature": "interface LinterOptions",
1859
- "extendsNodes": [],
1860
- "members": [
1861
- {
1862
- "__schema": "VariableLikeSchema",
1863
- "location": {
1864
- "filePath": "linter-context.ts",
1865
- "line": 11,
1866
- "character": 3
1867
- },
1868
- "name": "extensionFormats",
1869
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
1870
- "isOptional": true,
1871
- "type": {
1872
- "__schema": "TypeArraySchema",
1873
- "location": {
1874
- "filePath": "linter-context.ts",
1875
- "line": 11,
1876
- "character": 22
1877
- },
1878
- "type": {
1879
- "__schema": "KeywordTypeSchema",
1880
- "location": {
1881
- "filePath": "linter-context.ts",
1882
- "line": 11,
1883
- "character": 22
1884
- },
1885
- "name": "string"
1886
- }
1887
- },
1888
- "doc": {
1889
- "__schema": "DocSchema",
1890
- "location": {
1891
- "filePath": "linter-context.ts",
1892
- "line": 8,
1893
- "character": 3
1894
- },
1895
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
1896
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
1897
- }
1898
- },
1899
- {
1900
- "__schema": "VariableLikeSchema",
1901
- "location": {
1902
- "filePath": "linter-context.ts",
1903
- "line": 16,
1904
- "character": 3
1905
- },
1906
- "name": "fix",
1907
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
1908
- "isOptional": true,
1909
- "type": {
1910
- "__schema": "KeywordTypeSchema",
1911
- "location": {
1912
- "filePath": "linter-context.ts",
1913
- "line": 16,
1914
- "character": 9
1915
- },
1916
- "name": "boolean"
1917
- },
1918
- "doc": {
1919
- "__schema": "DocSchema",
1920
- "location": {
1921
- "filePath": "linter-context.ts",
1922
- "line": 13,
1923
- "character": 3
1924
- },
1925
- "raw": "/**\n * automatically fix problems\n */",
1926
- "comment": "automatically fix problems"
1927
- }
1928
- },
1929
- {
1930
- "__schema": "VariableLikeSchema",
1931
- "location": {
1932
- "filePath": "linter-context.ts",
1933
- "line": 21,
1934
- "character": 3
1935
- },
1936
- "name": "fixTypes",
1937
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
1938
- "isOptional": true,
1939
- "type": {
1940
- "__schema": "TypeRefSchema",
1941
- "location": {
1942
- "filePath": "linter-context.ts",
1943
- "line": 21,
1944
- "character": 14
1945
- },
1946
- "name": "FixTypes"
1947
- },
1948
- "doc": {
1949
- "__schema": "DocSchema",
1950
- "location": {
1951
- "filePath": "linter-context.ts",
1952
- "line": 18,
1953
- "character": 3
1954
- },
1955
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
1956
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
1957
- }
1958
- }
1959
- ]
1960
- }
1961
- }
1962
- ]
1963
- },
1964
- {
1965
- "__schema": "InterfaceSchema",
1966
- "location": {
1967
- "filePath": "linter-context.ts",
1968
- "line": 7,
1969
- "character": 1
1970
- },
1971
- "signature": "interface LinterOptions",
1972
- "name": "LinterOptions",
1973
- "members": [
1974
- {
1975
- "__schema": "VariableLikeSchema",
1976
- "location": {
1977
- "filePath": "linter-context.ts",
1978
- "line": 11,
1979
- "character": 3
1980
- },
1981
- "doc": {
1982
- "__schema": "DocSchema",
1983
- "location": {
1984
- "filePath": "linter-context.ts",
1985
- "line": 8,
1986
- "character": 3
1987
- },
1988
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
1989
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
1990
- },
1991
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
1992
- "name": "extensionFormats",
1993
- "type": {
1994
- "__schema": "TypeArraySchema",
1995
- "location": {
1996
- "filePath": "linter-context.ts",
1997
- "line": 11,
1998
- "character": 22
1999
- },
2000
- "type": {
2001
- "__schema": "KeywordTypeSchema",
2002
- "location": {
2003
- "filePath": "linter-context.ts",
2004
- "line": 11,
2005
- "character": 22
2006
- },
2007
- "name": "string"
2008
- }
2009
- },
2010
- "isOptional": true
2011
- },
2012
- {
2013
- "__schema": "VariableLikeSchema",
2014
- "location": {
2015
- "filePath": "linter-context.ts",
2016
- "line": 16,
2017
- "character": 3
2018
- },
2019
- "doc": {
2020
- "__schema": "DocSchema",
2021
- "location": {
2022
- "filePath": "linter-context.ts",
2023
- "line": 13,
2024
- "character": 3
2025
- },
2026
- "raw": "/**\n * automatically fix problems\n */",
2027
- "comment": "automatically fix problems"
2028
- },
2029
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
2030
- "name": "fix",
2031
- "type": {
2032
- "__schema": "KeywordTypeSchema",
2033
- "location": {
2034
- "filePath": "linter-context.ts",
2035
- "line": 16,
2036
- "character": 9
2037
- },
2038
- "name": "boolean"
2039
- },
2040
- "isOptional": true
2041
- },
2042
- {
2043
- "__schema": "VariableLikeSchema",
2044
- "location": {
2045
- "filePath": "linter-context.ts",
2046
- "line": 21,
2047
- "character": 3
2048
- },
2049
- "doc": {
2050
- "__schema": "DocSchema",
2051
- "location": {
2052
- "filePath": "linter-context.ts",
2053
- "line": 18,
2054
- "character": 3
2055
- },
2056
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
2057
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
2058
- },
2059
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
2060
- "name": "fixTypes",
2061
- "type": {
2062
- "__schema": "TypeRefSchema",
2063
- "location": {
2064
- "filePath": "linter-context.ts",
2065
- "line": 21,
2066
- "character": 14
2067
- },
2068
- "name": "FixTypes"
2069
- },
2070
- "isOptional": true
2071
- }
2072
- ],
2073
- "extendsNodes": []
2074
- },
2075
- {
2076
- "__schema": "InterfaceSchema",
2077
- "location": {
2078
- "filePath": "linter-env-type.ts",
2079
- "line": 4,
2080
- "character": 1
2081
- },
2082
- "signature": "interface LinterEnv",
2083
- "name": "LinterEnv",
2084
- "members": [
2085
- {
2086
- "__schema": "FunctionLikeSchema",
2087
- "location": {
2088
- "filePath": "linter-env-type.ts",
2089
- "line": 8,
2090
- "character": 3
2091
- },
2092
- "doc": {
2093
- "__schema": "DocSchema",
2094
- "location": {
2095
- "filePath": "linter-env-type.ts",
2096
- "line": 5,
2097
- "character": 3
2098
- },
2099
- "raw": "/**\n * return a Linter instance.\n */",
2100
- "comment": "return a Linter instance."
2101
- },
2102
- "signature": "(method) LinterEnv.linter(): EnvHandler<Linter>",
2103
- "name": "linter",
2104
- "params": [],
2105
- "returnType": {
2106
- "__schema": "TypeRefSchema",
2107
- "location": {
2108
- "filePath": "linter-env-type.ts",
2109
- "line": 8,
2110
- "character": 13
2111
- },
2112
- "name": "EnvHandler",
2113
- "typeArgs": [
2114
- {
2115
- "__schema": "TypeRefSchema",
2116
- "location": {
2117
- "filePath": "linter-env-type.ts",
2118
- "line": 8,
2119
- "character": 24
2120
- },
2121
- "name": "Linter"
2122
- }
2123
- ]
2124
- },
2125
- "modifiers": []
2126
- }
2127
- ],
2128
- "extendsNodes": []
2129
- },
2130
- {
2131
- "__schema": "UnImplementedSchema",
2132
- "location": {
2133
- "filePath": "index.ts",
2134
- "line": 9,
2135
- "character": 16
2136
- },
2137
- "name": "LinterAspect",
2138
- "type": "Identifier"
2139
- }
2140
- ],
2141
- "internals": []
2142
- },
2143
- "internals": [
2144
- {
2145
- "__schema": "ModuleSchema",
2146
- "location": {
2147
- "filePath": "linter.aspect.ts",
2148
- "line": 1,
2149
- "character": 1
2150
- },
2151
- "exports": [
2152
- {
2153
- "__schema": "VariableLikeSchema",
2154
- "location": {
2155
- "filePath": "linter.aspect.ts",
2156
- "line": 3,
2157
- "character": 14
2158
- },
2159
- "signature": "const LinterAspect: Aspect",
2160
- "name": "LinterAspect",
2161
- "type": {
2162
- "__schema": "TypeRefSchema",
2163
- "location": {
2164
- "filePath": "linter.aspect.ts",
2165
- "line": 3,
2166
- "character": 14
2167
- },
2168
- "name": "Aspect",
2169
- "componentId": {
2170
- "scope": "teambit.harmony",
2171
- "name": "harmony",
2172
- "version": "0.4.6"
2173
- }
2174
- },
2175
- "isOptional": false,
2176
- "defaultValue": "Aspect.create({\n id: 'teambit.defender/linter',\n})"
2177
- }
2178
- ],
2179
- "internals": []
2180
- },
2181
- {
2182
- "__schema": "ModuleSchema",
2183
- "location": {
2184
- "filePath": "linter.main.runtime.ts",
2185
- "line": 1,
2186
- "character": 1
2187
- },
2188
- "exports": [
2189
- {
2190
- "__schema": "TypeSchema",
2191
- "location": {
2192
- "filePath": "linter.main.runtime.ts",
2193
- "line": 13,
2194
- "character": 1
2195
- },
2196
- "signature": "type LinterConfig = {\n extensionFormats: string[];\n fixTypes?: FixTypes | undefined;\n}",
2197
- "name": "LinterConfig",
2198
- "type": {
2199
- "__schema": "TypeLiteralSchema",
2200
- "location": {
2201
- "filePath": "linter.main.runtime.ts",
2202
- "line": 13,
2203
- "character": 28
2204
- },
2205
- "members": [
2206
- {
2207
- "__schema": "VariableLikeSchema",
2208
- "location": {
2209
- "filePath": "linter.main.runtime.ts",
2210
- "line": 17,
2211
- "character": 3
2212
- },
2213
- "doc": {
2214
- "__schema": "DocSchema",
2215
- "location": {
2216
- "filePath": "linter.main.runtime.ts",
2217
- "line": 14,
2218
- "character": 3
2219
- },
2220
- "raw": "/**\n * extension formats to lint.\n */",
2221
- "comment": "extension formats to lint."
2222
- },
2223
- "signature": "(property) extensionFormats: string[]",
2224
- "name": "extensionFormats",
2225
- "type": {
2226
- "__schema": "TypeArraySchema",
2227
- "location": {
2228
- "filePath": "linter.main.runtime.ts",
2229
- "line": 17,
2230
- "character": 21
2231
- },
2232
- "type": {
2233
- "__schema": "KeywordTypeSchema",
2234
- "location": {
2235
- "filePath": "linter.main.runtime.ts",
2236
- "line": 17,
2237
- "character": 21
2238
- },
2239
- "name": "string"
2240
- }
2241
- },
2242
- "isOptional": false
2243
- },
2244
- {
2245
- "__schema": "VariableLikeSchema",
2246
- "location": {
2247
- "filePath": "linter.main.runtime.ts",
2248
- "line": 18,
2249
- "character": 3
2250
- },
2251
- "signature": "(property) fixTypes?: FixTypes | undefined",
2252
- "name": "fixTypes",
2253
- "type": {
2254
- "__schema": "TypeRefSchema",
2255
- "location": {
2256
- "filePath": "linter.main.runtime.ts",
2257
- "line": 18,
2258
- "character": 14
2259
- },
2260
- "name": "FixTypes"
2261
- },
2262
- "isOptional": true
2263
- }
2264
- ]
2265
- }
2266
- },
2267
- {
2268
- "__schema": "ClassSchema",
2269
- "location": {
2270
- "filePath": "linter.main.runtime.ts",
2271
- "line": 21,
2272
- "character": 1
2273
- },
2274
- "signature": "class LinterMain",
2275
- "name": "LinterMain",
2276
- "members": [
2277
- {
2278
- "__schema": "VariableLikeSchema",
2279
- "location": {
2280
- "filePath": "linter.main.runtime.ts",
2281
- "line": 22,
2282
- "character": 3
2283
- },
2284
- "signature": "(property) LinterMain.runtime: RuntimeDefinition",
2285
- "name": "runtime",
2286
- "type": {
2287
- "__schema": "InferenceTypeSchema",
2288
- "location": {
2289
- "filePath": "linter.main.runtime.ts",
2290
- "line": 22,
2291
- "character": 3
2292
- },
2293
- "type": "RuntimeDefinition"
2294
- },
2295
- "isOptional": true,
2296
- "defaultValue": "MainRuntime"
2297
- },
2298
- {
2299
- "__schema": "ConstructorSchema",
2300
- "location": {
2301
- "filePath": "linter.main.runtime.ts",
2302
- "line": 24,
2303
- "character": 3
2304
- },
2305
- "signature": "constructor LinterMain(envs: EnvsMain, linterService: LinterService): LinterMain",
2306
- "name": "constructor",
2307
- "params": [
2308
- {
2309
- "__schema": "ParameterSchema",
2310
- "location": {
2311
- "filePath": "linter.main.runtime.ts",
2312
- "line": 24,
2313
- "character": 15
2314
- },
2315
- "name": "envs",
2316
- "type": {
2317
- "__schema": "TypeRefSchema",
2318
- "location": {
2319
- "filePath": "linter.main.runtime.ts",
2320
- "line": 24,
2321
- "character": 29
2322
- },
2323
- "name": "EnvsMain"
2324
- },
2325
- "isOptional": false,
2326
- "isSpread": false
2327
- },
2328
- {
2329
- "__schema": "ParameterSchema",
2330
- "location": {
2331
- "filePath": "linter.main.runtime.ts",
2332
- "line": 24,
2333
- "character": 39
2334
- },
2335
- "name": "linterService",
2336
- "type": {
2337
- "__schema": "TypeRefSchema",
2338
- "location": {
2339
- "filePath": "linter.main.runtime.ts",
2340
- "line": 24,
2341
- "character": 62
2342
- },
2343
- "name": "LinterService"
2344
- },
2345
- "isOptional": false,
2346
- "isSpread": false
2347
- }
2348
- ],
2349
- "returnType": {
2350
- "__schema": "ThisTypeSchema",
2351
- "location": {
2352
- "filePath": "linter.main.runtime.ts",
2353
- "line": 21,
2354
- "character": 1
2355
- },
2356
- "name": "LinterMain"
2357
- },
2358
- "modifiers": []
2359
- },
2360
- {
2361
- "__schema": "FunctionLikeSchema",
2362
- "location": {
2363
- "filePath": "linter.main.runtime.ts",
2364
- "line": 29,
2365
- "character": 3
2366
- },
2367
- "doc": {
2368
- "__schema": "DocSchema",
2369
- "location": {
2370
- "filePath": "linter.main.runtime.ts",
2371
- "line": 26,
2372
- "character": 3
2373
- },
2374
- "raw": "/**\n * lint an array of components.\n */",
2375
- "comment": "lint an array of components."
2376
- },
2377
- "signature": "(method) LinterMain.lint(components: Component[], opts: LinterOptions): Promise<EnvsExecutionResult<LintResults>>",
2378
- "name": "lint",
2379
- "params": [
2380
- {
2381
- "__schema": "ParameterSchema",
2382
- "location": {
2383
- "filePath": "linter.main.runtime.ts",
2384
- "line": 29,
2385
- "character": 14
2386
- },
2387
- "name": "components",
2388
- "type": {
2389
- "__schema": "TypeArraySchema",
2390
- "location": {
2391
- "filePath": "linter.main.runtime.ts",
2392
- "line": 29,
2393
- "character": 26
2394
- },
2395
- "type": {
2396
- "__schema": "TypeRefSchema",
2397
- "location": {
2398
- "filePath": "linter.main.runtime.ts",
2399
- "line": 29,
2400
- "character": 26
2401
- },
2402
- "name": "Component"
2403
- }
2404
- },
2405
- "isOptional": false,
2406
- "isSpread": false
2407
- },
2408
- {
2409
- "__schema": "ParameterSchema",
2410
- "location": {
2411
- "filePath": "linter.main.runtime.ts",
2412
- "line": 29,
2413
- "character": 39
2414
- },
2415
- "name": "opts",
2416
- "type": {
2417
- "__schema": "TypeRefSchema",
2418
- "location": {
2419
- "filePath": "linter.main.runtime.ts",
2420
- "line": 29,
2421
- "character": 45
2422
- },
2423
- "name": "LinterOptions"
2424
- },
2425
- "isOptional": false,
2426
- "isSpread": false
2427
- }
2428
- ],
2429
- "returnType": {
2430
- "__schema": "InferenceTypeSchema",
2431
- "location": {
2432
- "filePath": "linter.main.runtime.ts",
2433
- "line": 29,
2434
- "character": 3
2435
- },
2436
- "type": "Promise<EnvsExecutionResult<LintResults>>"
2437
- },
2438
- "modifiers": [
2439
- "async"
2440
- ]
2441
- },
2442
- {
2443
- "__schema": "FunctionLikeSchema",
2444
- "location": {
2445
- "filePath": "linter.main.runtime.ts",
2446
- "line": 35,
2447
- "character": 3
2448
- },
2449
- "signature": "(method) LinterMain.getLinter(context: ExecutionContext, options: LinterOptions): Linter",
2450
- "name": "getLinter",
2451
- "params": [
2452
- {
2453
- "__schema": "ParameterSchema",
2454
- "location": {
2455
- "filePath": "linter.main.runtime.ts",
2456
- "line": 35,
2457
- "character": 13
2458
- },
2459
- "name": "context",
2460
- "type": {
2461
- "__schema": "TypeRefSchema",
2462
- "location": {
2463
- "filePath": "linter.main.runtime.ts",
2464
- "line": 35,
2465
- "character": 22
2466
- },
2467
- "name": "ExecutionContext"
2468
- },
2469
- "isOptional": false,
2470
- "isSpread": false
2471
- },
2472
- {
2473
- "__schema": "ParameterSchema",
2474
- "location": {
2475
- "filePath": "linter.main.runtime.ts",
2476
- "line": 35,
2477
- "character": 40
2478
- },
2479
- "name": "options",
2480
- "type": {
2481
- "__schema": "TypeRefSchema",
2482
- "location": {
2483
- "filePath": "linter.main.runtime.ts",
2484
- "line": 35,
2485
- "character": 49
2486
- },
2487
- "name": "LinterOptions"
2488
- },
2489
- "isOptional": false,
2490
- "isSpread": false
2491
- }
2492
- ],
2493
- "returnType": {
2494
- "__schema": "TypeRefSchema",
2495
- "location": {
2496
- "filePath": "linter.main.runtime.ts",
2497
- "line": 35,
2498
- "character": 3
2499
- },
2500
- "name": "Linter"
2501
- },
2502
- "modifiers": []
2503
- },
2504
- {
2505
- "__schema": "FunctionLikeSchema",
2506
- "location": {
2507
- "filePath": "linter.main.runtime.ts",
2508
- "line": 43,
2509
- "character": 3
2510
- },
2511
- "doc": {
2512
- "__schema": "DocSchema",
2513
- "location": {
2514
- "filePath": "linter.main.runtime.ts",
2515
- "line": 39,
2516
- "character": 3
2517
- },
2518
- "raw": "/**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */",
2519
- "comment": "create a lint task for build pipelines.",
2520
- "tags": [
2521
- {
2522
- "__schema": "PropertyLikeTagSchema",
2523
- "location": {
2524
- "filePath": "linter.main.runtime.ts",
2525
- "line": 41,
2526
- "character": 6
2527
- },
2528
- "name": "name",
2529
- "tagName": "parameter",
2530
- "comment": "name of the task."
2531
- }
2532
- ]
2533
- },
2534
- "signature": "(method) LinterMain.createTask(name?: string): LintTask",
2535
- "name": "createTask",
2536
- "params": [
2537
- {
2538
- "__schema": "ParameterSchema",
2539
- "location": {
2540
- "filePath": "linter.main.runtime.ts",
2541
- "line": 43,
2542
- "character": 14
2543
- },
2544
- "name": "name",
2545
- "type": {
2546
- "__schema": "KeywordTypeSchema",
2547
- "location": {
2548
- "filePath": "linter.main.runtime.ts",
2549
- "line": 43,
2550
- "character": 21
2551
- },
2552
- "name": "string"
2553
- },
2554
- "isOptional": true,
2555
- "isSpread": false
2556
- }
2557
- ],
2558
- "returnType": {
2559
- "__schema": "TypeRefSchema",
2560
- "location": {
2561
- "filePath": "linter.main.runtime.ts",
2562
- "line": 43,
2563
- "character": 3
2564
- },
2565
- "name": "LintTask"
2566
- },
2567
- "modifiers": []
2568
- },
2569
- {
2570
- "__schema": "VariableLikeSchema",
2571
- "location": {
2572
- "filePath": "linter.main.runtime.ts",
2573
- "line": 47,
2574
- "character": 3
2575
- },
2576
- "signature": "(property) LinterMain.dependencies: Aspect[]",
2577
- "name": "dependencies",
2578
- "type": {
2579
- "__schema": "InferenceTypeSchema",
2580
- "location": {
2581
- "filePath": "linter.main.runtime.ts",
2582
- "line": 47,
2583
- "character": 3
2584
- },
2585
- "type": "Aspect[]"
2586
- },
2587
- "isOptional": true,
2588
- "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
2589
- },
2590
- {
2591
- "__schema": "VariableLikeSchema",
2592
- "location": {
2593
- "filePath": "linter.main.runtime.ts",
2594
- "line": 49,
2595
- "character": 3
2596
- },
2597
- "signature": "(property) LinterMain.defaultConfig: LinterConfig",
2598
- "name": "defaultConfig",
2599
- "type": {
2600
- "__schema": "TypeRefSchema",
2601
- "location": {
2602
- "filePath": "linter.main.runtime.ts",
2603
- "line": 49,
2604
- "character": 3
2605
- },
2606
- "name": "LinterConfig"
2607
- },
2608
- "isOptional": true,
2609
- "defaultValue": "{\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n }"
2610
- },
2611
- {
2612
- "__schema": "FunctionLikeSchema",
2613
- "location": {
2614
- "filePath": "linter.main.runtime.ts",
2615
- "line": 54,
2616
- "character": 3
2617
- },
2618
- "signature": "(method) LinterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: LinterConfig): Promise<LinterMain>",
2619
- "name": "provider",
2620
- "params": [
2621
- {
2622
- "__schema": "ParameterSchema",
2623
- "location": {
2624
- "filePath": "linter.main.runtime.ts",
2625
- "line": 55,
2626
- "character": 5
2627
- },
2628
- "name": "[ envs, cli, component, loggerAspect, workspace ]",
2629
- "type": {
2630
- "__schema": "TupleTypeSchema",
2631
- "location": {
2632
- "filePath": "linter.main.runtime.ts",
2633
- "line": 55,
2634
- "character": 54
2635
- },
2636
- "elements": [
2637
- {
2638
- "__schema": "TypeRefSchema",
2639
- "location": {
2640
- "filePath": "linter.main.runtime.ts",
2641
- "line": 55,
2642
- "character": 55
2643
- },
2644
- "name": "EnvsMain"
2645
- },
2646
- {
2647
- "__schema": "TypeRefSchema",
2648
- "location": {
2649
- "filePath": "linter.main.runtime.ts",
2650
- "line": 55,
2651
- "character": 65
2652
- },
2653
- "name": "CLIMain"
2654
- },
2655
- {
2656
- "__schema": "TypeRefSchema",
2657
- "location": {
2658
- "filePath": "linter.main.runtime.ts",
2659
- "line": 55,
2660
- "character": 74
2661
- },
2662
- "name": "ComponentMain"
2663
- },
2664
- {
2665
- "__schema": "TypeRefSchema",
2666
- "location": {
2667
- "filePath": "linter.main.runtime.ts",
2668
- "line": 55,
2669
- "character": 89
2670
- },
2671
- "name": "LoggerMain"
2672
- },
2673
- {
2674
- "__schema": "TypeRefSchema",
2675
- "location": {
2676
- "filePath": "linter.main.runtime.ts",
2677
- "line": 55,
2678
- "character": 101
2679
- },
2680
- "name": "Workspace"
2681
- }
2682
- ]
2683
- },
2684
- "isOptional": false,
2685
- "isSpread": false
2686
- },
2687
- {
2688
- "__schema": "ParameterSchema",
2689
- "location": {
2690
- "filePath": "linter.main.runtime.ts",
2691
- "line": 56,
2692
- "character": 5
2693
- },
2694
- "name": "config",
2695
- "type": {
2696
- "__schema": "TypeRefSchema",
2697
- "location": {
2698
- "filePath": "linter.main.runtime.ts",
2699
- "line": 56,
2700
- "character": 13
2701
- },
2702
- "name": "LinterConfig"
2703
- },
2704
- "isOptional": false,
2705
- "isSpread": false
2706
- }
2707
- ],
2708
- "returnType": {
2709
- "__schema": "InferenceTypeSchema",
2710
- "location": {
2711
- "filePath": "linter.main.runtime.ts",
2712
- "line": 54,
2713
- "character": 3
2714
- },
2715
- "type": "Promise<LinterMain>"
2716
- },
2717
- "modifiers": [
2718
- "static",
2719
- "async"
2720
- ]
2721
- }
2722
- ],
2723
- "extendsNodes": [],
2724
- "implementNodes": []
2725
- }
2726
- ],
2727
- "internals": [
2728
- {
2729
- "__schema": "UnImplementedSchema",
2730
- "location": {
2731
- "filePath": "linter.main.runtime.ts",
2732
- "line": 69,
2733
- "character": 1
2734
- },
2735
- "name": "LinterAspect.addRuntime(LinterMain);",
2736
- "type": "ExpressionStatement"
2737
- }
2738
- ]
2739
- },
2740
- {
2741
- "__schema": "ModuleSchema",
2742
- "location": {
2743
- "filePath": "linter.ts",
2744
- "line": 1,
2745
- "character": 1
2746
- },
2747
- "exports": [
2748
- {
2749
- "__schema": "TypeSchema",
2750
- "location": {
2751
- "filePath": "linter.ts",
2752
- "line": 5,
2753
- "character": 1
2754
- },
2755
- "signature": "type ComponentLintResult = {\n component: Component;\n output: string;\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n results: LintResult[];\n}",
2756
- "name": "ComponentLintResult",
2757
- "type": {
2758
- "__schema": "TypeLiteralSchema",
2759
- "location": {
2760
- "filePath": "linter.ts",
2761
- "line": 5,
2762
- "character": 35
2763
- },
2764
- "members": [
2765
- {
2766
- "__schema": "VariableLikeSchema",
2767
- "location": {
2768
- "filePath": "linter.ts",
2769
- "line": 9,
2770
- "character": 3
2771
- },
2772
- "doc": {
2773
- "__schema": "DocSchema",
2774
- "location": {
2775
- "filePath": "linter.ts",
2776
- "line": 6,
2777
- "character": 3
2778
- },
2779
- "raw": "/**\n * the linted component.\n */",
2780
- "comment": "the linted component."
2781
- },
2782
- "signature": "(property) component: Component",
2783
- "name": "component",
2784
- "type": {
2785
- "__schema": "TypeRefSchema",
2786
- "location": {
2787
- "filePath": "linter.ts",
2788
- "line": 9,
2789
- "character": 3
2790
- },
2791
- "name": "Component",
2792
- "componentId": {
2793
- "scope": "teambit.component",
2794
- "name": "component"
2795
- }
2796
- },
2797
- "isOptional": false
2798
- },
2799
- {
2800
- "__schema": "VariableLikeSchema",
2801
- "location": {
2802
- "filePath": "linter.ts",
2803
- "line": 14,
2804
- "character": 3
2805
- },
2806
- "doc": {
2807
- "__schema": "DocSchema",
2808
- "location": {
2809
- "filePath": "linter.ts",
2810
- "line": 11,
2811
- "character": 3
2812
- },
2813
- "raw": "/**\n * CLI output of the linter.\n */",
2814
- "comment": "CLI output of the linter."
2815
- },
2816
- "signature": "(property) output: string",
2817
- "name": "output",
2818
- "type": {
2819
- "__schema": "KeywordTypeSchema",
2820
- "location": {
2821
- "filePath": "linter.ts",
2822
- "line": 14,
2823
- "character": 11
2824
- },
2825
- "name": "string"
2826
- },
2827
- "isOptional": false
2828
- },
2829
- {
2830
- "__schema": "VariableLikeSchema",
2831
- "location": {
2832
- "filePath": "linter.ts",
2833
- "line": 19,
2834
- "character": 3
2835
- },
2836
- "doc": {
2837
- "__schema": "DocSchema",
2838
- "location": {
2839
- "filePath": "linter.ts",
2840
- "line": 16,
2841
- "character": 3
2842
- },
2843
- "raw": "/**\n * total errors count of the component (from all of the files).\n */",
2844
- "comment": "total errors count of the component (from all of the files)."
2845
- },
2846
- "signature": "(property) totalErrorCount: number",
2847
- "name": "totalErrorCount",
2848
- "type": {
2849
- "__schema": "KeywordTypeSchema",
2850
- "location": {
2851
- "filePath": "linter.ts",
2852
- "line": 19,
2853
- "character": 20
2854
- },
2855
- "name": "number"
2856
- },
2857
- "isOptional": false
2858
- },
2859
- {
2860
- "__schema": "VariableLikeSchema",
2861
- "location": {
2862
- "filePath": "linter.ts",
2863
- "line": 23,
2864
- "character": 3
2865
- },
2866
- "doc": {
2867
- "__schema": "DocSchema",
2868
- "location": {
2869
- "filePath": "linter.ts",
2870
- "line": 20,
2871
- "character": 3
2872
- },
2873
- "raw": "/**\n * total fatal errors count of the component (from all of the files).\n */",
2874
- "comment": "total fatal errors count of the component (from all of the files)."
2875
- },
2876
- "signature": "(property) totalFatalErrorCount?: number | undefined",
2877
- "name": "totalFatalErrorCount",
2878
- "type": {
2879
- "__schema": "KeywordTypeSchema",
2880
- "location": {
2881
- "filePath": "linter.ts",
2882
- "line": 23,
2883
- "character": 26
2884
- },
2885
- "name": "number"
2886
- },
2887
- "isOptional": true
2888
- },
2889
- {
2890
- "__schema": "VariableLikeSchema",
2891
- "location": {
2892
- "filePath": "linter.ts",
2893
- "line": 27,
2894
- "character": 3
2895
- },
2896
- "doc": {
2897
- "__schema": "DocSchema",
2898
- "location": {
2899
- "filePath": "linter.ts",
2900
- "line": 24,
2901
- "character": 3
2902
- },
2903
- "raw": "/**\n * total fixable errors count of the component (from all of the files).\n */",
2904
- "comment": "total fixable errors count of the component (from all of the files)."
2905
- },
2906
- "signature": "(property) totalFixableErrorCount?: number | undefined",
2907
- "name": "totalFixableErrorCount",
2908
- "type": {
2909
- "__schema": "KeywordTypeSchema",
2910
- "location": {
2911
- "filePath": "linter.ts",
2912
- "line": 27,
2913
- "character": 28
2914
- },
2915
- "name": "number"
2916
- },
2917
- "isOptional": true
2918
- },
2919
- {
2920
- "__schema": "VariableLikeSchema",
2921
- "location": {
2922
- "filePath": "linter.ts",
2923
- "line": 31,
2924
- "character": 3
2925
- },
2926
- "doc": {
2927
- "__schema": "DocSchema",
2928
- "location": {
2929
- "filePath": "linter.ts",
2930
- "line": 28,
2931
- "character": 3
2932
- },
2933
- "raw": "/**\n * total fatal warning count of the component (from all of the files).\n */",
2934
- "comment": "total fatal warning count of the component (from all of the files)."
2935
- },
2936
- "signature": "(property) totalFixableWarningCount?: number | undefined",
2937
- "name": "totalFixableWarningCount",
2938
- "type": {
2939
- "__schema": "KeywordTypeSchema",
2940
- "location": {
2941
- "filePath": "linter.ts",
2942
- "line": 31,
2943
- "character": 30
2944
- },
2945
- "name": "number"
2946
- },
2947
- "isOptional": true
2948
- },
2949
- {
2950
- "__schema": "VariableLikeSchema",
2951
- "location": {
2952
- "filePath": "linter.ts",
2953
- "line": 35,
2954
- "character": 3
2955
- },
2956
- "doc": {
2957
- "__schema": "DocSchema",
2958
- "location": {
2959
- "filePath": "linter.ts",
2960
- "line": 32,
2961
- "character": 3
2962
- },
2963
- "raw": "/**\n * total warning count of the component (from all of the files).\n */",
2964
- "comment": "total warning count of the component (from all of the files)."
2965
- },
2966
- "signature": "(property) totalWarningCount: number",
2967
- "name": "totalWarningCount",
2968
- "type": {
2969
- "__schema": "KeywordTypeSchema",
2970
- "location": {
2971
- "filePath": "linter.ts",
2972
- "line": 35,
2973
- "character": 22
2974
- },
2975
- "name": "number"
2976
- },
2977
- "isOptional": false
2978
- },
2979
- {
2980
- "__schema": "VariableLikeSchema",
2981
- "location": {
2982
- "filePath": "linter.ts",
2983
- "line": 40,
2984
- "character": 3
2985
- },
2986
- "doc": {
2987
- "__schema": "DocSchema",
2988
- "location": {
2989
- "filePath": "linter.ts",
2990
- "line": 37,
2991
- "character": 3
2992
- },
2993
- "raw": "/**\n * lint results for each one of the component files\n */",
2994
- "comment": "lint results for each one of the component files"
2995
- },
2996
- "signature": "(property) results: LintResult[]",
2997
- "name": "results",
2998
- "type": {
2999
- "__schema": "TypeArraySchema",
3000
- "location": {
3001
- "filePath": "linter.ts",
3002
- "line": 40,
3003
- "character": 12
3004
- },
3005
- "type": {
3006
- "__schema": "TypeRefSchema",
3007
- "location": {
3008
- "filePath": "linter.ts",
3009
- "line": 40,
3010
- "character": 12
3011
- },
3012
- "name": "LintResult"
3013
- }
3014
- },
3015
- "isOptional": false
3016
- }
3017
- ]
3018
- }
3019
- },
3020
- {
3021
- "__schema": "TypeSchema",
3022
- "location": {
3023
- "filePath": "linter.ts",
3024
- "line": 43,
3025
- "character": 1
3026
- },
3027
- "signature": "type LintResult = {\n filePath: string;\n errorCount: number;\n fatalErrorCount?: number | undefined;\n fixableErrorCount?: number | undefined;\n fixableWarningCount?: number | undefined;\n warningCount: number;\n messages: LintMessage[];\n raw: any;\n}",
3028
- "name": "LintResult",
3029
- "type": {
3030
- "__schema": "TypeLiteralSchema",
3031
- "location": {
3032
- "filePath": "linter.ts",
3033
- "line": 43,
3034
- "character": 26
3035
- },
3036
- "members": [
3037
- {
3038
- "__schema": "VariableLikeSchema",
3039
- "location": {
3040
- "filePath": "linter.ts",
3041
- "line": 47,
3042
- "character": 3
3043
- },
3044
- "doc": {
3045
- "__schema": "DocSchema",
3046
- "location": {
3047
- "filePath": "linter.ts",
3048
- "line": 44,
3049
- "character": 3
3050
- },
3051
- "raw": "/**\n * path of the linted file.\n */",
3052
- "comment": "path of the linted file."
3053
- },
3054
- "signature": "(property) filePath: string",
3055
- "name": "filePath",
3056
- "type": {
3057
- "__schema": "KeywordTypeSchema",
3058
- "location": {
3059
- "filePath": "linter.ts",
3060
- "line": 47,
3061
- "character": 13
3062
- },
3063
- "name": "string"
3064
- },
3065
- "isOptional": false
3066
- },
3067
- {
3068
- "__schema": "VariableLikeSchema",
3069
- "location": {
3070
- "filePath": "linter.ts",
3071
- "line": 52,
3072
- "character": 3
3073
- },
3074
- "doc": {
3075
- "__schema": "DocSchema",
3076
- "location": {
3077
- "filePath": "linter.ts",
3078
- "line": 49,
3079
- "character": 3
3080
- },
3081
- "raw": "/**\n * numbers of errors found.\n */",
3082
- "comment": "numbers of errors found."
3083
- },
3084
- "signature": "(property) errorCount: number",
3085
- "name": "errorCount",
3086
- "type": {
3087
- "__schema": "KeywordTypeSchema",
3088
- "location": {
3089
- "filePath": "linter.ts",
3090
- "line": 52,
3091
- "character": 15
3092
- },
3093
- "name": "number"
3094
- },
3095
- "isOptional": false
3096
- },
3097
- {
3098
- "__schema": "VariableLikeSchema",
3099
- "location": {
3100
- "filePath": "linter.ts",
3101
- "line": 57,
3102
- "character": 3
3103
- },
3104
- "doc": {
3105
- "__schema": "DocSchema",
3106
- "location": {
3107
- "filePath": "linter.ts",
3108
- "line": 54,
3109
- "character": 3
3110
- },
3111
- "raw": "/**\n * numbers of errors found.\n */",
3112
- "comment": "numbers of errors found."
3113
- },
3114
- "signature": "(property) fatalErrorCount?: number | undefined",
3115
- "name": "fatalErrorCount",
3116
- "type": {
3117
- "__schema": "KeywordTypeSchema",
3118
- "location": {
3119
- "filePath": "linter.ts",
3120
- "line": 57,
3121
- "character": 21
3122
- },
3123
- "name": "number"
3124
- },
3125
- "isOptional": true
3126
- },
3127
- {
3128
- "__schema": "VariableLikeSchema",
3129
- "location": {
3130
- "filePath": "linter.ts",
3131
- "line": 62,
3132
- "character": 3
3133
- },
3134
- "doc": {
3135
- "__schema": "DocSchema",
3136
- "location": {
3137
- "filePath": "linter.ts",
3138
- "line": 59,
3139
- "character": 3
3140
- },
3141
- "raw": "/**\n * numbers of fixable errors found.\n */",
3142
- "comment": "numbers of fixable errors found."
3143
- },
3144
- "signature": "(property) fixableErrorCount?: number | undefined",
3145
- "name": "fixableErrorCount",
3146
- "type": {
3147
- "__schema": "KeywordTypeSchema",
3148
- "location": {
3149
- "filePath": "linter.ts",
3150
- "line": 62,
3151
- "character": 23
3152
- },
3153
- "name": "number"
3154
- },
3155
- "isOptional": true
3156
- },
3157
- {
3158
- "__schema": "VariableLikeSchema",
3159
- "location": {
3160
- "filePath": "linter.ts",
3161
- "line": 67,
3162
- "character": 3
3163
- },
3164
- "doc": {
3165
- "__schema": "DocSchema",
3166
- "location": {
3167
- "filePath": "linter.ts",
3168
- "line": 64,
3169
- "character": 3
3170
- },
3171
- "raw": "/**\n * numbers of fixable warning found.\n */",
3172
- "comment": "numbers of fixable warning found."
3173
- },
3174
- "signature": "(property) fixableWarningCount?: number | undefined",
3175
- "name": "fixableWarningCount",
3176
- "type": {
3177
- "__schema": "KeywordTypeSchema",
3178
- "location": {
3179
- "filePath": "linter.ts",
3180
- "line": 67,
3181
- "character": 25
3182
- },
3183
- "name": "number"
3184
- },
3185
- "isOptional": true
3186
- },
3187
- {
3188
- "__schema": "VariableLikeSchema",
3189
- "location": {
3190
- "filePath": "linter.ts",
3191
- "line": 72,
3192
- "character": 3
3193
- },
3194
- "doc": {
3195
- "__schema": "DocSchema",
3196
- "location": {
3197
- "filePath": "linter.ts",
3198
- "line": 69,
3199
- "character": 3
3200
- },
3201
- "raw": "/**\n * number of found warnings.\n */",
3202
- "comment": "number of found warnings."
3203
- },
3204
- "signature": "(property) warningCount: number",
3205
- "name": "warningCount",
3206
- "type": {
3207
- "__schema": "KeywordTypeSchema",
3208
- "location": {
3209
- "filePath": "linter.ts",
3210
- "line": 72,
3211
- "character": 17
3212
- },
3213
- "name": "number"
3214
- },
3215
- "isOptional": false
3216
- },
3217
- {
3218
- "__schema": "VariableLikeSchema",
3219
- "location": {
3220
- "filePath": "linter.ts",
3221
- "line": 77,
3222
- "character": 3
3223
- },
3224
- "doc": {
3225
- "__schema": "DocSchema",
3226
- "location": {
3227
- "filePath": "linter.ts",
3228
- "line": 74,
3229
- "character": 3
3230
- },
3231
- "raw": "/**\n * lint messages.\n */",
3232
- "comment": "lint messages."
3233
- },
3234
- "signature": "(property) messages: LintMessage[]",
3235
- "name": "messages",
3236
- "type": {
3237
- "__schema": "TypeArraySchema",
3238
- "location": {
3239
- "filePath": "linter.ts",
3240
- "line": 77,
3241
- "character": 13
3242
- },
3243
- "type": {
3244
- "__schema": "TypeRefSchema",
3245
- "location": {
3246
- "filePath": "linter.ts",
3247
- "line": 77,
3248
- "character": 13
3249
- },
3250
- "name": "LintMessage"
3251
- }
3252
- },
3253
- "isOptional": false
3254
- },
3255
- {
3256
- "__schema": "VariableLikeSchema",
3257
- "location": {
3258
- "filePath": "linter.ts",
3259
- "line": 82,
3260
- "character": 3
3261
- },
3262
- "doc": {
3263
- "__schema": "DocSchema",
3264
- "location": {
3265
- "filePath": "linter.ts",
3266
- "line": 79,
3267
- "character": 3
3268
- },
3269
- "raw": "/**\n * Raw data as returned from the linter\n */",
3270
- "comment": "Raw data as returned from the linter"
3271
- },
3272
- "signature": "(property) raw: any",
3273
- "name": "raw",
3274
- "type": {
3275
- "__schema": "KeywordTypeSchema",
3276
- "location": {
3277
- "filePath": "linter.ts",
3278
- "line": 82,
3279
- "character": 8
3280
- },
3281
- "name": "any"
3282
- },
3283
- "isOptional": false
3284
- }
3285
- ]
3286
- }
3287
- },
3288
- {
3289
- "__schema": "TypeSchema",
3290
- "location": {
3291
- "filePath": "linter.ts",
3292
- "line": 85,
3293
- "character": 1
3294
- },
3295
- "signature": "type LintMessage = {\n severity: string;\n column: number;\n line: number;\n endColumn?: number | undefined;\n endLine?: number | undefined;\n message: string;\n suggestions?: string[] | undefined;\n}",
3296
- "name": "LintMessage",
3297
- "type": {
3298
- "__schema": "TypeLiteralSchema",
3299
- "location": {
3300
- "filePath": "linter.ts",
3301
- "line": 85,
3302
- "character": 27
3303
- },
3304
- "members": [
3305
- {
3306
- "__schema": "VariableLikeSchema",
3307
- "location": {
3308
- "filePath": "linter.ts",
3309
- "line": 89,
3310
- "character": 3
3311
- },
3312
- "doc": {
3313
- "__schema": "DocSchema",
3314
- "location": {
3315
- "filePath": "linter.ts",
3316
- "line": 86,
3317
- "character": 3
3318
- },
3319
- "raw": "/**\n * severity of the issue.\n */",
3320
- "comment": "severity of the issue."
3321
- },
3322
- "signature": "(property) severity: string",
3323
- "name": "severity",
3324
- "type": {
3325
- "__schema": "KeywordTypeSchema",
3326
- "location": {
3327
- "filePath": "linter.ts",
3328
- "line": 89,
3329
- "character": 13
3330
- },
3331
- "name": "string"
3332
- },
3333
- "isOptional": false
3334
- },
3335
- {
3336
- "__schema": "VariableLikeSchema",
3337
- "location": {
3338
- "filePath": "linter.ts",
3339
- "line": 93,
3340
- "character": 3
3341
- },
3342
- "doc": {
3343
- "__schema": "DocSchema",
3344
- "location": {
3345
- "filePath": "linter.ts",
3346
- "line": 90,
3347
- "character": 3
3348
- },
3349
- "raw": "/**\n * stating column of the issue.\n */",
3350
- "comment": "stating column of the issue."
3351
- },
3352
- "signature": "(property) column: number",
3353
- "name": "column",
3354
- "type": {
3355
- "__schema": "KeywordTypeSchema",
3356
- "location": {
3357
- "filePath": "linter.ts",
3358
- "line": 93,
3359
- "character": 11
3360
- },
3361
- "name": "number"
3362
- },
3363
- "isOptional": false
3364
- },
3365
- {
3366
- "__schema": "VariableLikeSchema",
3367
- "location": {
3368
- "filePath": "linter.ts",
3369
- "line": 98,
3370
- "character": 3
3371
- },
3372
- "doc": {
3373
- "__schema": "DocSchema",
3374
- "location": {
3375
- "filePath": "linter.ts",
3376
- "line": 95,
3377
- "character": 3
3378
- },
3379
- "raw": "/**\n * line of the issue.\n */",
3380
- "comment": "line of the issue."
3381
- },
3382
- "signature": "(property) line: number",
3383
- "name": "line",
3384
- "type": {
3385
- "__schema": "KeywordTypeSchema",
3386
- "location": {
3387
- "filePath": "linter.ts",
3388
- "line": 98,
3389
- "character": 9
3390
- },
3391
- "name": "number"
3392
- },
3393
- "isOptional": false
3394
- },
3395
- {
3396
- "__schema": "VariableLikeSchema",
3397
- "location": {
3398
- "filePath": "linter.ts",
3399
- "line": 103,
3400
- "character": 3
3401
- },
3402
- "doc": {
3403
- "__schema": "DocSchema",
3404
- "location": {
3405
- "filePath": "linter.ts",
3406
- "line": 100,
3407
- "character": 3
3408
- },
3409
- "raw": "/**\n * end column of the issue.\n */",
3410
- "comment": "end column of the issue."
3411
- },
3412
- "signature": "(property) endColumn?: number | undefined",
3413
- "name": "endColumn",
3414
- "type": {
3415
- "__schema": "KeywordTypeSchema",
3416
- "location": {
3417
- "filePath": "linter.ts",
3418
- "line": 103,
3419
- "character": 15
3420
- },
3421
- "name": "number"
3422
- },
3423
- "isOptional": true
3424
- },
3425
- {
3426
- "__schema": "VariableLikeSchema",
3427
- "location": {
3428
- "filePath": "linter.ts",
3429
- "line": 108,
3430
- "character": 3
3431
- },
3432
- "doc": {
3433
- "__schema": "DocSchema",
3434
- "location": {
3435
- "filePath": "linter.ts",
3436
- "line": 105,
3437
- "character": 3
3438
- },
3439
- "raw": "/**\n * end line of the issue.\n */",
3440
- "comment": "end line of the issue."
3441
- },
3442
- "signature": "(property) endLine?: number | undefined",
3443
- "name": "endLine",
3444
- "type": {
3445
- "__schema": "KeywordTypeSchema",
3446
- "location": {
3447
- "filePath": "linter.ts",
3448
- "line": 108,
3449
- "character": 13
3450
- },
3451
- "name": "number"
3452
- },
3453
- "isOptional": true
3454
- },
3455
- {
3456
- "__schema": "VariableLikeSchema",
3457
- "location": {
3458
- "filePath": "linter.ts",
3459
- "line": 113,
3460
- "character": 3
3461
- },
3462
- "doc": {
3463
- "__schema": "DocSchema",
3464
- "location": {
3465
- "filePath": "linter.ts",
3466
- "line": 110,
3467
- "character": 3
3468
- },
3469
- "raw": "/**\n * message of the issue.\n */",
3470
- "comment": "message of the issue."
3471
- },
3472
- "signature": "(property) message: string",
3473
- "name": "message",
3474
- "type": {
3475
- "__schema": "KeywordTypeSchema",
3476
- "location": {
3477
- "filePath": "linter.ts",
3478
- "line": 113,
3479
- "character": 12
3480
- },
3481
- "name": "string"
3482
- },
3483
- "isOptional": false
3484
- },
3485
- {
3486
- "__schema": "VariableLikeSchema",
3487
- "location": {
3488
- "filePath": "linter.ts",
3489
- "line": 118,
3490
- "character": 3
3491
- },
3492
- "doc": {
3493
- "__schema": "DocSchema",
3494
- "location": {
3495
- "filePath": "linter.ts",
3496
- "line": 115,
3497
- "character": 3
3498
- },
3499
- "raw": "/**\n * lint suggestions.\n */",
3500
- "comment": "lint suggestions."
3501
- },
3502
- "signature": "(property) suggestions?: string[] | undefined",
3503
- "name": "suggestions",
3504
- "type": {
3505
- "__schema": "TypeArraySchema",
3506
- "location": {
3507
- "filePath": "linter.ts",
3508
- "line": 118,
3509
- "character": 17
3510
- },
3511
- "type": {
3512
- "__schema": "KeywordTypeSchema",
3513
- "location": {
3514
- "filePath": "linter.ts",
3515
- "line": 118,
3516
- "character": 17
3517
- },
3518
- "name": "string"
3519
- }
3520
- },
3521
- "isOptional": true
3522
- }
3523
- ]
3524
- }
3525
- },
3526
- {
3527
- "__schema": "TypeSchema",
3528
- "location": {
3529
- "filePath": "linter.ts",
3530
- "line": 121,
3531
- "character": 1
3532
- },
3533
- "signature": "type LintResults = {\n results: ComponentLintResult[];\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n ... 5 more ...;\n errors: Error[];\n}",
3534
- "name": "LintResults",
3535
- "type": {
3536
- "__schema": "TypeLiteralSchema",
3537
- "location": {
3538
- "filePath": "linter.ts",
3539
- "line": 121,
3540
- "character": 27
3541
- },
3542
- "members": [
3543
- {
3544
- "__schema": "VariableLikeSchema",
3545
- "location": {
3546
- "filePath": "linter.ts",
3547
- "line": 122,
3548
- "character": 3
3549
- },
3550
- "signature": "(property) results: ComponentLintResult[]",
3551
- "name": "results",
3552
- "type": {
3553
- "__schema": "TypeArraySchema",
3554
- "location": {
3555
- "filePath": "linter.ts",
3556
- "line": 122,
3557
- "character": 12
3558
- },
3559
- "type": {
3560
- "__schema": "TypeRefSchema",
3561
- "location": {
3562
- "filePath": "linter.ts",
3563
- "line": 122,
3564
- "character": 12
3565
- },
3566
- "name": "ComponentLintResult"
3567
- }
3568
- },
3569
- "isOptional": false
3570
- },
3571
- {
3572
- "__schema": "VariableLikeSchema",
3573
- "location": {
3574
- "filePath": "linter.ts",
3575
- "line": 126,
3576
- "character": 3
3577
- },
3578
- "doc": {
3579
- "__schema": "DocSchema",
3580
- "location": {
3581
- "filePath": "linter.ts",
3582
- "line": 123,
3583
- "character": 3
3584
- },
3585
- "raw": "/**\n * total errors count of the component (from all of the components).\n */",
3586
- "comment": "total errors count of the component (from all of the components)."
3587
- },
3588
- "signature": "(property) totalErrorCount: number",
3589
- "name": "totalErrorCount",
3590
- "type": {
3591
- "__schema": "KeywordTypeSchema",
3592
- "location": {
3593
- "filePath": "linter.ts",
3594
- "line": 126,
3595
- "character": 20
3596
- },
3597
- "name": "number"
3598
- },
3599
- "isOptional": false
3600
- },
3601
- {
3602
- "__schema": "VariableLikeSchema",
3603
- "location": {
3604
- "filePath": "linter.ts",
3605
- "line": 130,
3606
- "character": 3
3607
- },
3608
- "doc": {
3609
- "__schema": "DocSchema",
3610
- "location": {
3611
- "filePath": "linter.ts",
3612
- "line": 127,
3613
- "character": 3
3614
- },
3615
- "raw": "/**\n * total fatal errors count of the component (from all of the components).\n */",
3616
- "comment": "total fatal errors count of the component (from all of the components)."
3617
- },
3618
- "signature": "(property) totalFatalErrorCount?: number | undefined",
3619
- "name": "totalFatalErrorCount",
3620
- "type": {
3621
- "__schema": "KeywordTypeSchema",
3622
- "location": {
3623
- "filePath": "linter.ts",
3624
- "line": 130,
3625
- "character": 26
3626
- },
3627
- "name": "number"
3628
- },
3629
- "isOptional": true
3630
- },
3631
- {
3632
- "__schema": "VariableLikeSchema",
3633
- "location": {
3634
- "filePath": "linter.ts",
3635
- "line": 134,
3636
- "character": 3
3637
- },
3638
- "doc": {
3639
- "__schema": "DocSchema",
3640
- "location": {
3641
- "filePath": "linter.ts",
3642
- "line": 131,
3643
- "character": 3
3644
- },
3645
- "raw": "/**\n * total fixable errors count of the component (from all of the components).\n */",
3646
- "comment": "total fixable errors count of the component (from all of the components)."
3647
- },
3648
- "signature": "(property) totalFixableErrorCount?: number | undefined",
3649
- "name": "totalFixableErrorCount",
3650
- "type": {
3651
- "__schema": "KeywordTypeSchema",
3652
- "location": {
3653
- "filePath": "linter.ts",
3654
- "line": 134,
3655
- "character": 28
3656
- },
3657
- "name": "number"
3658
- },
3659
- "isOptional": true
3660
- },
3661
- {
3662
- "__schema": "VariableLikeSchema",
3663
- "location": {
3664
- "filePath": "linter.ts",
3665
- "line": 138,
3666
- "character": 3
3667
- },
3668
- "doc": {
3669
- "__schema": "DocSchema",
3670
- "location": {
3671
- "filePath": "linter.ts",
3672
- "line": 135,
3673
- "character": 3
3674
- },
3675
- "raw": "/**\n * total fatal warning count of the component (from all of the components).\n */",
3676
- "comment": "total fatal warning count of the component (from all of the components)."
3677
- },
3678
- "signature": "(property) totalFixableWarningCount?: number | undefined",
3679
- "name": "totalFixableWarningCount",
3680
- "type": {
3681
- "__schema": "KeywordTypeSchema",
3682
- "location": {
3683
- "filePath": "linter.ts",
3684
- "line": 138,
3685
- "character": 30
3686
- },
3687
- "name": "number"
3688
- },
3689
- "isOptional": true
3690
- },
3691
- {
3692
- "__schema": "VariableLikeSchema",
3693
- "location": {
3694
- "filePath": "linter.ts",
3695
- "line": 142,
3696
- "character": 3
3697
- },
3698
- "doc": {
3699
- "__schema": "DocSchema",
3700
- "location": {
3701
- "filePath": "linter.ts",
3702
- "line": 139,
3703
- "character": 3
3704
- },
3705
- "raw": "/**\n * total warning count of the component (from all of the components).\n */",
3706
- "comment": "total warning count of the component (from all of the components)."
3707
- },
3708
- "signature": "(property) totalWarningCount: number",
3709
- "name": "totalWarningCount",
3710
- "type": {
3711
- "__schema": "KeywordTypeSchema",
3712
- "location": {
3713
- "filePath": "linter.ts",
3714
- "line": 142,
3715
- "character": 22
3716
- },
3717
- "name": "number"
3718
- },
3719
- "isOptional": false
3720
- },
3721
- {
3722
- "__schema": "VariableLikeSchema",
3723
- "location": {
3724
- "filePath": "linter.ts",
3725
- "line": 144,
3726
- "character": 3
3727
- },
3728
- "signature": "(property) totalComponentsWithErrorCount: number",
3729
- "name": "totalComponentsWithErrorCount",
3730
- "type": {
3731
- "__schema": "KeywordTypeSchema",
3732
- "location": {
3733
- "filePath": "linter.ts",
3734
- "line": 144,
3735
- "character": 34
3736
- },
3737
- "name": "number"
3738
- },
3739
- "isOptional": false
3740
- },
3741
- {
3742
- "__schema": "VariableLikeSchema",
3743
- "location": {
3744
- "filePath": "linter.ts",
3745
- "line": 145,
3746
- "character": 3
3747
- },
3748
- "signature": "(property) totalComponentsWithFatalErrorCount?: number | undefined",
3749
- "name": "totalComponentsWithFatalErrorCount",
3750
- "type": {
3751
- "__schema": "KeywordTypeSchema",
3752
- "location": {
3753
- "filePath": "linter.ts",
3754
- "line": 145,
3755
- "character": 40
3756
- },
3757
- "name": "number"
3758
- },
3759
- "isOptional": true
3760
- },
3761
- {
3762
- "__schema": "VariableLikeSchema",
3763
- "location": {
3764
- "filePath": "linter.ts",
3765
- "line": 146,
3766
- "character": 3
3767
- },
3768
- "signature": "(property) totalComponentsWithFixableErrorCount?: number | undefined",
3769
- "name": "totalComponentsWithFixableErrorCount",
3770
- "type": {
3771
- "__schema": "KeywordTypeSchema",
3772
- "location": {
3773
- "filePath": "linter.ts",
3774
- "line": 146,
3775
- "character": 42
3776
- },
3777
- "name": "number"
3778
- },
3779
- "isOptional": true
3780
- },
3781
- {
3782
- "__schema": "VariableLikeSchema",
3783
- "location": {
3784
- "filePath": "linter.ts",
3785
- "line": 147,
3786
- "character": 3
3787
- },
3788
- "signature": "(property) totalComponentsWithFixableWarningCount?: number | undefined",
3789
- "name": "totalComponentsWithFixableWarningCount",
3790
- "type": {
3791
- "__schema": "KeywordTypeSchema",
3792
- "location": {
3793
- "filePath": "linter.ts",
3794
- "line": 147,
3795
- "character": 44
3796
- },
3797
- "name": "number"
3798
- },
3799
- "isOptional": true
3800
- },
3801
- {
3802
- "__schema": "VariableLikeSchema",
3803
- "location": {
3804
- "filePath": "linter.ts",
3805
- "line": 148,
3806
- "character": 3
3807
- },
3808
- "signature": "(property) totalComponentsWithWarningCount: number",
3809
- "name": "totalComponentsWithWarningCount",
3810
- "type": {
3811
- "__schema": "KeywordTypeSchema",
3812
- "location": {
3813
- "filePath": "linter.ts",
3814
- "line": 148,
3815
- "character": 36
3816
- },
3817
- "name": "number"
3818
- },
3819
- "isOptional": false
3820
- },
3821
- {
3822
- "__schema": "VariableLikeSchema",
3823
- "location": {
3824
- "filePath": "linter.ts",
3825
- "line": 150,
3826
- "character": 3
3827
- },
3828
- "signature": "(property) errors: Error[]",
3829
- "name": "errors",
3830
- "type": {
3831
- "__schema": "TypeArraySchema",
3832
- "location": {
3833
- "filePath": "linter.ts",
3834
- "line": 150,
3835
- "character": 11
3836
- },
3837
- "type": {
3838
- "__schema": "TypeRefSchema",
3839
- "location": {
3840
- "filePath": "linter.ts",
3841
- "line": 150,
3842
- "character": 11
3843
- },
3844
- "name": "Error"
3845
- }
3846
- },
3847
- "isOptional": false
3848
- }
3849
- ]
3850
- }
3851
- },
3852
- {
3853
- "__schema": "InterfaceSchema",
3854
- "location": {
3855
- "filePath": "linter.ts",
3856
- "line": 153,
3857
- "character": 1
3858
- },
3859
- "signature": "interface Linter",
3860
- "name": "Linter",
3861
- "members": [
3862
- {
3863
- "__schema": "VariableLikeSchema",
3864
- "location": {
3865
- "filePath": "linter.ts",
3866
- "line": 154,
3867
- "character": 3
3868
- },
3869
- "signature": "(property) Linter.id: string",
3870
- "name": "id",
3871
- "type": {
3872
- "__schema": "KeywordTypeSchema",
3873
- "location": {
3874
- "filePath": "linter.ts",
3875
- "line": 154,
3876
- "character": 7
3877
- },
3878
- "name": "string"
3879
- },
3880
- "isOptional": false
3881
- },
3882
- {
3883
- "__schema": "FunctionLikeSchema",
3884
- "location": {
3885
- "filePath": "linter.ts",
3886
- "line": 155,
3887
- "character": 3
3888
- },
3889
- "signature": "(method) Linter.lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>",
3890
- "name": "lint",
3891
- "params": [
3892
- {
3893
- "__schema": "ParameterSchema",
3894
- "location": {
3895
- "filePath": "linter.ts",
3896
- "line": 155,
3897
- "character": 8
3898
- },
3899
- "name": "context",
3900
- "type": {
3901
- "__schema": "TypeRefSchema",
3902
- "location": {
3903
- "filePath": "linter.ts",
3904
- "line": 155,
3905
- "character": 17
3906
- },
3907
- "name": "LinterContext"
3908
- },
3909
- "isOptional": false,
3910
- "isSpread": false
3911
- },
3912
- {
3913
- "__schema": "ParameterSchema",
3914
- "location": {
3915
- "filePath": "linter.ts",
3916
- "line": 155,
3917
- "character": 32
3918
- },
3919
- "name": "buildContext",
3920
- "type": {
3921
- "__schema": "TypeRefSchema",
3922
- "location": {
3923
- "filePath": "linter.ts",
3924
- "line": 155,
3925
- "character": 47
3926
- },
3927
- "name": "BuildContext"
3928
- },
3929
- "isOptional": true,
3930
- "isSpread": false
3931
- }
3932
- ],
3933
- "returnType": {
3934
- "__schema": "TypeRefSchema",
3935
- "location": {
3936
- "filePath": "linter.ts",
3937
- "line": 155,
3938
- "character": 62
3939
- },
3940
- "name": "Promise",
3941
- "typeArgs": [
3942
- {
3943
- "__schema": "TypeRefSchema",
3944
- "location": {
3945
- "filePath": "linter.ts",
3946
- "line": 155,
3947
- "character": 70
3948
- },
3949
- "name": "LintResults"
3950
- }
3951
- ]
3952
- },
3953
- "modifiers": []
3954
- }
3955
- ],
3956
- "extendsNodes": []
3957
- }
3958
- ],
3959
- "internals": []
3960
- },
3961
- {
3962
- "__schema": "ModuleSchema",
3963
- "location": {
3964
- "filePath": "lint.task.ts",
3965
- "line": 1,
3966
- "character": 1
3967
- },
3968
- "exports": [
3969
- {
3970
- "__schema": "ClassSchema",
3971
- "location": {
3972
- "filePath": "lint.task.ts",
3973
- "line": 8,
3974
- "character": 1
3975
- },
3976
- "signature": "class LintTask",
3977
- "name": "LintTask",
3978
- "members": [
3979
- {
3980
- "__schema": "ConstructorSchema",
3981
- "location": {
3982
- "filePath": "lint.task.ts",
3983
- "line": 9,
3984
- "character": 3
3985
- },
3986
- "signature": "constructor LintTask(aspectId: string, name?: string): LintTask",
3987
- "name": "constructor",
3988
- "params": [
3989
- {
3990
- "__schema": "ParameterSchema",
3991
- "location": {
3992
- "filePath": "lint.task.ts",
3993
- "line": 9,
3994
- "character": 15
3995
- },
3996
- "name": "aspectId",
3997
- "type": {
3998
- "__schema": "KeywordTypeSchema",
3999
- "location": {
4000
- "filePath": "lint.task.ts",
4001
- "line": 9,
4002
- "character": 34
4003
- },
4004
- "name": "string"
4005
- },
4006
- "isOptional": false,
4007
- "isSpread": false
4008
- },
4009
- {
4010
- "__schema": "ParameterSchema",
4011
- "location": {
4012
- "filePath": "lint.task.ts",
4013
- "line": 9,
4014
- "character": 42
4015
- },
4016
- "name": "name",
4017
- "type": {
4018
- "__schema": "InferenceTypeSchema",
4019
- "location": {
4020
- "filePath": "lint.task.ts",
4021
- "line": 9,
4022
- "character": 42
4023
- },
4024
- "type": "string"
4025
- },
4026
- "isOptional": true,
4027
- "defaultValue": "'lint'",
4028
- "isSpread": false
4029
- }
4030
- ],
4031
- "returnType": {
4032
- "__schema": "ThisTypeSchema",
4033
- "location": {
4034
- "filePath": "lint.task.ts",
4035
- "line": 8,
4036
- "character": 1
4037
- },
4038
- "name": "LintTask"
4039
- },
4040
- "modifiers": []
4041
- },
4042
- {
4043
- "__schema": "FunctionLikeSchema",
4044
- "location": {
4045
- "filePath": "lint.task.ts",
4046
- "line": 11,
4047
- "character": 3
4048
- },
4049
- "signature": "(method) LintTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
4050
- "name": "execute",
4051
- "params": [
4052
- {
4053
- "__schema": "ParameterSchema",
4054
- "location": {
4055
- "filePath": "lint.task.ts",
4056
- "line": 11,
4057
- "character": 17
4058
- },
4059
- "name": "context",
4060
- "type": {
4061
- "__schema": "TypeRefSchema",
4062
- "location": {
4063
- "filePath": "lint.task.ts",
4064
- "line": 11,
4065
- "character": 26
4066
- },
4067
- "name": "BuildContext"
4068
- },
4069
- "isOptional": false,
4070
- "isSpread": false
4071
- }
4072
- ],
4073
- "returnType": {
4074
- "__schema": "TypeRefSchema",
4075
- "location": {
4076
- "filePath": "lint.task.ts",
4077
- "line": 11,
4078
- "character": 41
4079
- },
4080
- "name": "Promise",
4081
- "typeArgs": [
4082
- {
4083
- "__schema": "TypeRefSchema",
4084
- "location": {
4085
- "filePath": "lint.task.ts",
4086
- "line": 11,
4087
- "character": 49
4088
- },
4089
- "name": "BuiltTaskResult"
4090
- }
4091
- ]
4092
- },
4093
- "modifiers": [
4094
- "async"
4095
- ]
4096
- }
4097
- ],
4098
- "extendsNodes": [],
4099
- "implementNodes": [
4100
- {
4101
- "__schema": "ExpressionWithTypeArgumentsSchema",
4102
- "location": {
4103
- "filePath": "lint.task.ts",
4104
- "line": 8,
4105
- "character": 34
4106
- },
4107
- "name": "implements BuildTask",
4108
- "typeArgs": [],
4109
- "expression": {
4110
- "__schema": "TypeRefSchema",
4111
- "location": {
4112
- "filePath": "lint.task.ts",
4113
- "line": 8,
4114
- "character": 34
4115
- },
4116
- "name": "BuildTask",
4117
- "componentId": {
4118
- "_legacy": {
4119
- "scope": "teambit.defender",
4120
- "name": "linter",
4121
- "version": "1.0.187"
4122
- },
4123
- "_scope": "teambit.defender"
4124
- }
4125
- }
4126
- }
4127
- ]
4128
- }
4129
- ],
4130
- "internals": []
4131
- },
4132
- {
4133
- "__schema": "ModuleSchema",
4134
- "location": {
4135
- "filePath": "linter-context.ts",
4136
- "line": 1,
4137
- "character": 1
4138
- },
4139
- "exports": [
4140
- {
4141
- "__schema": "TypeSchema",
4142
- "location": {
4143
- "filePath": "linter-context.ts",
4144
- "line": 4,
4145
- "character": 1
4146
- },
4147
- "signature": "type FixType = \"problem\" | \"suggestion\" | \"layout\"",
4148
- "name": "FixType",
4149
- "type": {
4150
- "__schema": "TypeUnionSchema",
4151
- "location": {
4152
- "filePath": "linter-context.ts",
4153
- "line": 4,
4154
- "character": 23
4155
- },
4156
- "types": [
4157
- {
4158
- "__schema": "LiteralTypeSchema",
4159
- "location": {
4160
- "filePath": "linter-context.ts",
4161
- "line": 4,
4162
- "character": 23
4163
- },
4164
- "name": "'problem'"
4165
- },
4166
- {
4167
- "__schema": "LiteralTypeSchema",
4168
- "location": {
4169
- "filePath": "linter-context.ts",
4170
- "line": 4,
4171
- "character": 35
4172
- },
4173
- "name": "'suggestion'"
4174
- },
4175
- {
4176
- "__schema": "LiteralTypeSchema",
4177
- "location": {
4178
- "filePath": "linter-context.ts",
4179
- "line": 4,
4180
- "character": 50
4181
- },
4182
- "name": "'layout'"
4183
- }
4184
- ]
4185
- }
4186
- },
4187
- {
4188
- "__schema": "TypeSchema",
4189
- "location": {
4190
- "filePath": "linter-context.ts",
4191
- "line": 5,
4192
- "character": 1
4193
- },
4194
- "signature": "type FixTypes = FixType[]",
4195
- "name": "FixTypes",
4196
- "type": {
4197
- "__schema": "TypeRefSchema",
4198
- "location": {
4199
- "filePath": "linter-context.ts",
4200
- "line": 5,
4201
- "character": 24
4202
- },
4203
- "name": "Array",
4204
- "typeArgs": [
4205
- {
4206
- "__schema": "TypeRefSchema",
4207
- "location": {
4208
- "filePath": "linter-context.ts",
4209
- "line": 5,
4210
- "character": 30
4211
- },
4212
- "name": "FixType"
4213
- }
4214
- ]
4215
- }
4216
- },
4217
- {
4218
- "__schema": "InterfaceSchema",
4219
- "location": {
4220
- "filePath": "linter-context.ts",
4221
- "line": 7,
4222
- "character": 1
4223
- },
4224
- "signature": "interface LinterOptions",
4225
- "name": "LinterOptions",
4226
- "members": [
4227
- {
4228
- "__schema": "VariableLikeSchema",
4229
- "location": {
4230
- "filePath": "linter-context.ts",
4231
- "line": 11,
4232
- "character": 3
4233
- },
4234
- "doc": {
4235
- "__schema": "DocSchema",
4236
- "location": {
4237
- "filePath": "linter-context.ts",
4238
- "line": 8,
4239
- "character": 3
4240
- },
4241
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
4242
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
4243
- },
4244
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
4245
- "name": "extensionFormats",
4246
- "type": {
4247
- "__schema": "TypeArraySchema",
4248
- "location": {
4249
- "filePath": "linter-context.ts",
4250
- "line": 11,
4251
- "character": 22
4252
- },
4253
- "type": {
4254
- "__schema": "KeywordTypeSchema",
4255
- "location": {
4256
- "filePath": "linter-context.ts",
4257
- "line": 11,
4258
- "character": 22
4259
- },
4260
- "name": "string"
4261
- }
4262
- },
4263
- "isOptional": true
4264
- },
4265
- {
4266
- "__schema": "VariableLikeSchema",
4267
- "location": {
4268
- "filePath": "linter-context.ts",
4269
- "line": 16,
4270
- "character": 3
4271
- },
4272
- "doc": {
4273
- "__schema": "DocSchema",
4274
- "location": {
4275
- "filePath": "linter-context.ts",
4276
- "line": 13,
4277
- "character": 3
4278
- },
4279
- "raw": "/**\n * automatically fix problems\n */",
4280
- "comment": "automatically fix problems"
4281
- },
4282
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
4283
- "name": "fix",
4284
- "type": {
4285
- "__schema": "KeywordTypeSchema",
4286
- "location": {
4287
- "filePath": "linter-context.ts",
4288
- "line": 16,
4289
- "character": 9
4290
- },
4291
- "name": "boolean"
4292
- },
4293
- "isOptional": true
4294
- },
4295
- {
4296
- "__schema": "VariableLikeSchema",
4297
- "location": {
4298
- "filePath": "linter-context.ts",
4299
- "line": 21,
4300
- "character": 3
4301
- },
4302
- "doc": {
4303
- "__schema": "DocSchema",
4304
- "location": {
4305
- "filePath": "linter-context.ts",
4306
- "line": 18,
4307
- "character": 3
4308
- },
4309
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
4310
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
4311
- },
4312
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
4313
- "name": "fixTypes",
4314
- "type": {
4315
- "__schema": "TypeRefSchema",
4316
- "location": {
4317
- "filePath": "linter-context.ts",
4318
- "line": 21,
4319
- "character": 14
4320
- },
4321
- "name": "FixTypes"
4322
- },
4323
- "isOptional": true
4324
- }
4325
- ],
4326
- "extendsNodes": []
4327
- },
4328
- {
4329
- "__schema": "InterfaceSchema",
4330
- "location": {
4331
- "filePath": "linter-context.ts",
4332
- "line": 23,
4333
- "character": 1
4334
- },
4335
- "signature": "interface LinterContext",
4336
- "name": "LinterContext",
4337
- "members": [
4338
- {
4339
- "__schema": "VariableLikeSchema",
4340
- "location": {
4341
- "filePath": "linter-context.ts",
4342
- "line": 24,
4343
- "character": 3
4344
- },
4345
- "signature": "(property) LinterContext.quiet?: boolean | undefined",
4346
- "name": "quiet",
4347
- "type": {
4348
- "__schema": "KeywordTypeSchema",
4349
- "location": {
4350
- "filePath": "linter-context.ts",
4351
- "line": 24,
4352
- "character": 11
4353
- },
4354
- "name": "boolean"
4355
- },
4356
- "isOptional": true
4357
- },
4358
- {
4359
- "__schema": "VariableLikeSchema",
4360
- "location": {
4361
- "filePath": "linter-context.ts",
4362
- "line": 29,
4363
- "character": 3
4364
- },
4365
- "doc": {
4366
- "__schema": "DocSchema",
4367
- "location": {
4368
- "filePath": "linter-context.ts",
4369
- "line": 25,
4370
- "character": 3
4371
- },
4372
- "raw": "/**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */",
4373
- "comment": "Root dir that contains all the components in the fs that are about to be linted\nUsually it's the workspace root dir or the capsule root dir"
4374
- },
4375
- "signature": "(property) LinterContext.rootDir?: string | undefined",
4376
- "name": "rootDir",
4377
- "type": {
4378
- "__schema": "KeywordTypeSchema",
4379
- "location": {
4380
- "filePath": "linter-context.ts",
4381
- "line": 29,
4382
- "character": 13
4383
- },
4384
- "name": "string"
4385
- },
4386
- "isOptional": true
4387
- },
4388
- {
4389
- "__schema": "VariableLikeSchema",
4390
- "location": {
4391
- "filePath": "linter-context.ts",
4392
- "line": 34,
4393
- "character": 3
4394
- },
4395
- "doc": {
4396
- "__schema": "DocSchema",
4397
- "location": {
4398
- "filePath": "linter-context.ts",
4399
- "line": 31,
4400
- "character": 3
4401
- },
4402
- "raw": "/**\n * Component map with the path to the component in the fs\n */",
4403
- "comment": "Component map with the path to the component in the fs"
4404
- },
4405
- "signature": "(property) LinterContext.componentsDirMap: ComponentMap<string>",
4406
- "name": "componentsDirMap",
4407
- "type": {
4408
- "__schema": "TypeRefSchema",
4409
- "location": {
4410
- "filePath": "linter-context.ts",
4411
- "line": 34,
4412
- "character": 21
4413
- },
4414
- "name": "ComponentMap",
4415
- "typeArgs": [
4416
- {
4417
- "__schema": "KeywordTypeSchema",
4418
- "location": {
4419
- "filePath": "linter-context.ts",
4420
- "line": 34,
4421
- "character": 34
4422
- },
4423
- "name": "string"
4424
- }
4425
- ]
4426
- },
4427
- "isOptional": false
4428
- }
4429
- ],
4430
- "extendsNodes": [
4431
- {
4432
- "__schema": "ExpressionWithTypeArgumentsSchema",
4433
- "location": {
4434
- "filePath": "linter-context.ts",
4435
- "line": 23,
4436
- "character": 40
4437
- },
4438
- "name": "extends ExecutionContext, LinterOptions",
4439
- "typeArgs": [],
4440
- "expression": {
4441
- "__schema": "TypeRefSchema",
4442
- "location": {
4443
- "filePath": "linter-context.ts",
4444
- "line": 23,
4445
- "character": 40
4446
- },
4447
- "name": "ExecutionContext",
4448
- "componentId": {
4449
- "_legacy": {
4450
- "scope": "teambit.defender",
4451
- "name": "linter",
4452
- "version": "1.0.187"
4453
- },
4454
- "_scope": "teambit.defender"
4455
- }
4456
- }
4457
- },
4458
- {
4459
- "__schema": "ExpressionWithTypeArgumentsSchema",
4460
- "location": {
4461
- "filePath": "linter-context.ts",
4462
- "line": 23,
4463
- "character": 58
4464
- },
4465
- "name": "extends ExecutionContext, LinterOptions",
4466
- "typeArgs": [],
4467
- "expression": {
4468
- "__schema": "InterfaceSchema",
4469
- "location": {
4470
- "filePath": "linter-context.ts",
4471
- "line": 7,
4472
- "character": 1
4473
- },
4474
- "name": "LinterOptions",
4475
- "signature": "interface LinterOptions",
4476
- "extendsNodes": [],
4477
- "members": [
4478
- {
4479
- "__schema": "VariableLikeSchema",
4480
- "location": {
4481
- "filePath": "linter-context.ts",
4482
- "line": 11,
4483
- "character": 3
4484
- },
4485
- "name": "extensionFormats",
4486
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
4487
- "isOptional": true,
4488
- "type": {
4489
- "__schema": "TypeArraySchema",
4490
- "location": {
4491
- "filePath": "linter-context.ts",
4492
- "line": 11,
4493
- "character": 22
4494
- },
4495
- "type": {
4496
- "__schema": "KeywordTypeSchema",
4497
- "location": {
4498
- "filePath": "linter-context.ts",
4499
- "line": 11,
4500
- "character": 22
4501
- },
4502
- "name": "string"
4503
- }
4504
- },
4505
- "doc": {
4506
- "__schema": "DocSchema",
4507
- "location": {
4508
- "filePath": "linter-context.ts",
4509
- "line": 8,
4510
- "character": 3
4511
- },
4512
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
4513
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
4514
- }
4515
- },
4516
- {
4517
- "__schema": "VariableLikeSchema",
4518
- "location": {
4519
- "filePath": "linter-context.ts",
4520
- "line": 16,
4521
- "character": 3
4522
- },
4523
- "name": "fix",
4524
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
4525
- "isOptional": true,
4526
- "type": {
4527
- "__schema": "KeywordTypeSchema",
4528
- "location": {
4529
- "filePath": "linter-context.ts",
4530
- "line": 16,
4531
- "character": 9
4532
- },
4533
- "name": "boolean"
4534
- },
4535
- "doc": {
4536
- "__schema": "DocSchema",
4537
- "location": {
4538
- "filePath": "linter-context.ts",
4539
- "line": 13,
4540
- "character": 3
4541
- },
4542
- "raw": "/**\n * automatically fix problems\n */",
4543
- "comment": "automatically fix problems"
4544
- }
4545
- },
4546
- {
4547
- "__schema": "VariableLikeSchema",
4548
- "location": {
4549
- "filePath": "linter-context.ts",
4550
- "line": 21,
4551
- "character": 3
4552
- },
4553
- "name": "fixTypes",
4554
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
4555
- "isOptional": true,
4556
- "type": {
4557
- "__schema": "TypeRefSchema",
4558
- "location": {
4559
- "filePath": "linter-context.ts",
4560
- "line": 21,
4561
- "character": 14
4562
- },
4563
- "name": "FixTypes"
4564
- },
4565
- "doc": {
4566
- "__schema": "DocSchema",
4567
- "location": {
4568
- "filePath": "linter-context.ts",
4569
- "line": 18,
4570
- "character": 3
4571
- },
4572
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
4573
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
4574
- }
4575
- }
4576
- ]
4577
- }
4578
- }
4579
- ]
4580
- }
4581
- ],
4582
- "internals": []
4583
- },
4584
- {
4585
- "__schema": "ModuleSchema",
4586
- "location": {
4587
- "filePath": "linter-env-type.ts",
4588
- "line": 1,
4589
- "character": 1
4590
- },
4591
- "exports": [
4592
- {
4593
- "__schema": "InterfaceSchema",
4594
- "location": {
4595
- "filePath": "linter-env-type.ts",
4596
- "line": 4,
4597
- "character": 1
4598
- },
4599
- "signature": "interface LinterEnv",
4600
- "name": "LinterEnv",
4601
- "members": [
4602
- {
4603
- "__schema": "FunctionLikeSchema",
4604
- "location": {
4605
- "filePath": "linter-env-type.ts",
4606
- "line": 8,
4607
- "character": 3
4608
- },
4609
- "doc": {
4610
- "__schema": "DocSchema",
4611
- "location": {
4612
- "filePath": "linter-env-type.ts",
4613
- "line": 5,
4614
- "character": 3
4615
- },
4616
- "raw": "/**\n * return a Linter instance.\n */",
4617
- "comment": "return a Linter instance."
4618
- },
4619
- "signature": "(method) LinterEnv.linter(): EnvHandler<Linter>",
4620
- "name": "linter",
4621
- "params": [],
4622
- "returnType": {
4623
- "__schema": "TypeRefSchema",
4624
- "location": {
4625
- "filePath": "linter-env-type.ts",
4626
- "line": 8,
4627
- "character": 13
4628
- },
4629
- "name": "EnvHandler",
4630
- "typeArgs": [
4631
- {
4632
- "__schema": "TypeRefSchema",
4633
- "location": {
4634
- "filePath": "linter-env-type.ts",
4635
- "line": 8,
4636
- "character": 24
4637
- },
4638
- "name": "Linter"
4639
- }
4640
- ]
4641
- },
4642
- "modifiers": []
4643
- }
4644
- ],
4645
- "extendsNodes": []
4646
- }
4647
- ],
4648
- "internals": []
4649
- }
4650
- ],
4651
- "componentId": {
4652
- "scope": "teambit.defender",
4653
- "name": "linter",
4654
- "version": "1.0.187"
4655
- },
4656
- "taggedModuleExports": []
4657
- }