@teambit/eslint 1.0.511 → 1.0.513

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