@teambit/eslint 1.0.512 → 1.0.514

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