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