@teambit/linter 1.0.256 → 1.0.258

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.
@@ -14,2175 +14,2217 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "VariableLikeSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "linter.aspect.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 3,
21
- "character": 14
21
+ "character": 10
22
22
  },
23
- "signature": "const LinterAspect: Aspect",
24
23
  "name": "LinterAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "VariableLikeSchema",
27
26
  "location": {
28
27
  "filePath": "linter.aspect.ts",
29
28
  "line": 3,
30
29
  "character": 14
31
30
  },
32
- "name": "Aspect",
33
- "componentId": {
34
- "scope": "teambit.harmony",
35
- "name": "harmony",
36
- "version": "0.4.6"
37
- }
38
- },
39
- "isOptional": false,
40
- "defaultValue": "Aspect.create({\n id: 'teambit.defender/linter',\n})"
31
+ "signature": "const LinterAspect: Aspect",
32
+ "name": "LinterAspect",
33
+ "type": {
34
+ "__schema": "TypeRefSchema",
35
+ "location": {
36
+ "filePath": "linter.aspect.ts",
37
+ "line": 3,
38
+ "character": 14
39
+ },
40
+ "name": "Aspect",
41
+ "componentId": {
42
+ "scope": "teambit.harmony",
43
+ "name": "harmony",
44
+ "version": "0.4.6"
45
+ }
46
+ },
47
+ "isOptional": false,
48
+ "defaultValue": "Aspect.create({\n id: 'teambit.defender/linter',\n})"
49
+ }
41
50
  },
42
51
  {
43
- "__schema": "ClassSchema",
52
+ "__schema": "ExportSchema",
44
53
  "location": {
45
- "filePath": "linter.main.runtime.ts",
46
- "line": 21,
47
- "character": 1
54
+ "filePath": "index.ts",
55
+ "line": 4,
56
+ "character": 15
48
57
  },
49
- "signature": "class LinterMain",
50
58
  "name": "LinterMain",
51
- "members": [
52
- {
53
- "__schema": "VariableLikeSchema",
54
- "location": {
55
- "filePath": "linter.main.runtime.ts",
56
- "line": 22,
57
- "character": 3
58
- },
59
- "signature": "(property) LinterMain.runtime: RuntimeDefinition",
60
- "name": "runtime",
61
- "type": {
62
- "__schema": "InferenceTypeSchema",
59
+ "exportNode": {
60
+ "__schema": "ClassSchema",
61
+ "location": {
62
+ "filePath": "linter.main.runtime.ts",
63
+ "line": 21,
64
+ "character": 1
65
+ },
66
+ "signature": "class LinterMain",
67
+ "name": "LinterMain",
68
+ "members": [
69
+ {
70
+ "__schema": "VariableLikeSchema",
63
71
  "location": {
64
72
  "filePath": "linter.main.runtime.ts",
65
73
  "line": 22,
66
74
  "character": 3
67
75
  },
68
- "type": "RuntimeDefinition"
69
- },
70
- "isOptional": true,
71
- "defaultValue": "MainRuntime"
72
- },
73
- {
74
- "__schema": "ConstructorSchema",
75
- "location": {
76
- "filePath": "linter.main.runtime.ts",
77
- "line": 24,
78
- "character": 3
79
- },
80
- "signature": "constructor LinterMain(envs: EnvsMain, linterService: LinterService): LinterMain",
81
- "name": "constructor",
82
- "params": [
83
- {
84
- "__schema": "ParameterSchema",
76
+ "signature": "(property) LinterMain.runtime: RuntimeDefinition",
77
+ "name": "runtime",
78
+ "type": {
79
+ "__schema": "InferenceTypeSchema",
85
80
  "location": {
86
81
  "filePath": "linter.main.runtime.ts",
87
- "line": 24,
88
- "character": 15
82
+ "line": 22,
83
+ "character": 3
89
84
  },
90
- "name": "envs",
91
- "type": {
92
- "__schema": "TypeRefSchema",
85
+ "type": "RuntimeDefinition"
86
+ },
87
+ "isOptional": true,
88
+ "defaultValue": "MainRuntime"
89
+ },
90
+ {
91
+ "__schema": "ConstructorSchema",
92
+ "location": {
93
+ "filePath": "linter.main.runtime.ts",
94
+ "line": 24,
95
+ "character": 3
96
+ },
97
+ "signature": "constructor LinterMain(envs: EnvsMain, linterService: LinterService): LinterMain",
98
+ "name": "constructor",
99
+ "params": [
100
+ {
101
+ "__schema": "ParameterSchema",
93
102
  "location": {
94
103
  "filePath": "linter.main.runtime.ts",
95
104
  "line": 24,
96
- "character": 29
105
+ "character": 15
97
106
  },
98
- "name": "EnvsMain",
99
- "componentId": {
100
- "scope": "teambit.envs",
101
- "name": "envs"
102
- }
103
- },
104
- "isOptional": false,
105
- "isSpread": false
106
- },
107
- {
108
- "__schema": "ParameterSchema",
109
- "location": {
110
- "filePath": "linter.main.runtime.ts",
111
- "line": 24,
112
- "character": 39
107
+ "name": "envs",
108
+ "type": {
109
+ "__schema": "TypeRefSchema",
110
+ "location": {
111
+ "filePath": "linter.main.runtime.ts",
112
+ "line": 24,
113
+ "character": 29
114
+ },
115
+ "name": "EnvsMain"
116
+ },
117
+ "isOptional": false,
118
+ "isSpread": false
113
119
  },
114
- "name": "linterService",
115
- "type": {
116
- "__schema": "TypeRefSchema",
120
+ {
121
+ "__schema": "ParameterSchema",
117
122
  "location": {
118
123
  "filePath": "linter.main.runtime.ts",
119
124
  "line": 24,
120
- "character": 62
125
+ "character": 39
121
126
  },
122
- "name": "LinterService",
123
- "internalFilePath": "linter.service.ts"
127
+ "name": "linterService",
128
+ "type": {
129
+ "__schema": "TypeRefSchema",
130
+ "location": {
131
+ "filePath": "linter.main.runtime.ts",
132
+ "line": 24,
133
+ "character": 62
134
+ },
135
+ "name": "LinterService"
136
+ },
137
+ "isOptional": false,
138
+ "isSpread": false
139
+ }
140
+ ],
141
+ "returnType": {
142
+ "__schema": "ThisTypeSchema",
143
+ "location": {
144
+ "filePath": "linter.main.runtime.ts",
145
+ "line": 21,
146
+ "character": 1
124
147
  },
125
- "isOptional": false,
126
- "isSpread": false
127
- }
128
- ],
129
- "returnType": {
130
- "__schema": "ThisTypeSchema",
131
- "location": {
132
- "filePath": "linter.main.runtime.ts",
133
- "line": 21,
134
- "character": 1
148
+ "name": "LinterMain"
135
149
  },
136
- "name": "LinterMain"
137
- },
138
- "modifiers": []
139
- },
140
- {
141
- "__schema": "FunctionLikeSchema",
142
- "location": {
143
- "filePath": "linter.main.runtime.ts",
144
- "line": 29,
145
- "character": 3
150
+ "modifiers": []
146
151
  },
147
- "doc": {
148
- "__schema": "DocSchema",
152
+ {
153
+ "__schema": "FunctionLikeSchema",
149
154
  "location": {
150
155
  "filePath": "linter.main.runtime.ts",
151
- "line": 26,
156
+ "line": 29,
152
157
  "character": 3
153
158
  },
154
- "raw": "/**\n * lint an array of components.\n */",
155
- "comment": "lint an array of components."
156
- },
157
- "signature": "(method) LinterMain.lint(components: Component[], opts: LinterOptions): Promise<EnvsExecutionResult<LintResults>>",
158
- "name": "lint",
159
- "params": [
160
- {
161
- "__schema": "ParameterSchema",
159
+ "doc": {
160
+ "__schema": "DocSchema",
162
161
  "location": {
163
162
  "filePath": "linter.main.runtime.ts",
164
- "line": 29,
165
- "character": 14
163
+ "line": 26,
164
+ "character": 3
166
165
  },
167
- "name": "components",
168
- "type": {
169
- "__schema": "TypeArraySchema",
166
+ "raw": "/**\n * lint an array of components.\n */",
167
+ "comment": "lint an array of components."
168
+ },
169
+ "signature": "(method) LinterMain.lint(components: Component[], opts: LinterOptions): Promise<EnvsExecutionResult<LintResults>>",
170
+ "name": "lint",
171
+ "params": [
172
+ {
173
+ "__schema": "ParameterSchema",
170
174
  "location": {
171
175
  "filePath": "linter.main.runtime.ts",
172
176
  "line": 29,
173
- "character": 26
177
+ "character": 14
174
178
  },
179
+ "name": "components",
175
180
  "type": {
176
- "__schema": "TypeRefSchema",
181
+ "__schema": "TypeArraySchema",
177
182
  "location": {
178
183
  "filePath": "linter.main.runtime.ts",
179
184
  "line": 29,
180
185
  "character": 26
181
186
  },
182
- "name": "Component",
183
- "componentId": {
184
- "scope": "teambit.component",
185
- "name": "component"
187
+ "type": {
188
+ "__schema": "TypeRefSchema",
189
+ "location": {
190
+ "filePath": "linter.main.runtime.ts",
191
+ "line": 29,
192
+ "character": 26
193
+ },
194
+ "name": "Component"
186
195
  }
187
- }
188
- },
189
- "isOptional": false,
190
- "isSpread": false
191
- },
192
- {
193
- "__schema": "ParameterSchema",
194
- "location": {
195
- "filePath": "linter.main.runtime.ts",
196
- "line": 29,
197
- "character": 39
196
+ },
197
+ "isOptional": false,
198
+ "isSpread": false
198
199
  },
199
- "name": "opts",
200
- "type": {
201
- "__schema": "TypeRefSchema",
200
+ {
201
+ "__schema": "ParameterSchema",
202
202
  "location": {
203
203
  "filePath": "linter.main.runtime.ts",
204
204
  "line": 29,
205
- "character": 45
205
+ "character": 39
206
206
  },
207
- "name": "LinterOptions"
208
- },
209
- "isOptional": false,
210
- "isSpread": false
211
- }
212
- ],
213
- "returnType": {
214
- "__schema": "InferenceTypeSchema",
215
- "location": {
216
- "filePath": "linter.main.runtime.ts",
217
- "line": 29,
218
- "character": 3
219
- },
220
- "type": "Promise<EnvsExecutionResult<LintResults>>"
221
- },
222
- "modifiers": [
223
- "async"
224
- ]
225
- },
226
- {
227
- "__schema": "FunctionLikeSchema",
228
- "location": {
229
- "filePath": "linter.main.runtime.ts",
230
- "line": 35,
231
- "character": 3
232
- },
233
- "signature": "(method) LinterMain.getLinter(context: ExecutionContext, options: LinterOptions): Linter",
234
- "name": "getLinter",
235
- "params": [
236
- {
237
- "__schema": "ParameterSchema",
238
- "location": {
239
- "filePath": "linter.main.runtime.ts",
240
- "line": 35,
241
- "character": 13
242
- },
243
- "name": "context",
244
- "type": {
245
- "__schema": "TypeRefSchema",
246
- "location": {
247
- "filePath": "linter.main.runtime.ts",
248
- "line": 35,
249
- "character": 22
207
+ "name": "opts",
208
+ "type": {
209
+ "__schema": "TypeRefSchema",
210
+ "location": {
211
+ "filePath": "linter.main.runtime.ts",
212
+ "line": 29,
213
+ "character": 45
214
+ },
215
+ "name": "LinterOptions"
250
216
  },
251
- "name": "ExecutionContext",
252
- "componentId": {
253
- "scope": "teambit.envs",
254
- "name": "envs"
255
- }
256
- },
257
- "isOptional": false,
258
- "isSpread": false
259
- },
260
- {
261
- "__schema": "ParameterSchema",
217
+ "isOptional": false,
218
+ "isSpread": false
219
+ }
220
+ ],
221
+ "returnType": {
222
+ "__schema": "InferenceTypeSchema",
262
223
  "location": {
263
224
  "filePath": "linter.main.runtime.ts",
264
- "line": 35,
265
- "character": 40
266
- },
267
- "name": "options",
268
- "type": {
269
- "__schema": "TypeRefSchema",
270
- "location": {
271
- "filePath": "linter.main.runtime.ts",
272
- "line": 35,
273
- "character": 49
274
- },
275
- "name": "LinterOptions"
225
+ "line": 29,
226
+ "character": 3
276
227
  },
277
- "isOptional": false,
278
- "isSpread": false
279
- }
280
- ],
281
- "returnType": {
282
- "__schema": "TypeRefSchema",
283
- "location": {
284
- "filePath": "linter.main.runtime.ts",
285
- "line": 35,
286
- "character": 3
228
+ "type": "Promise<EnvsExecutionResult<LintResults>>"
287
229
  },
288
- "name": "Linter"
289
- },
290
- "modifiers": []
291
- },
292
- {
293
- "__schema": "FunctionLikeSchema",
294
- "location": {
295
- "filePath": "linter.main.runtime.ts",
296
- "line": 43,
297
- "character": 3
230
+ "modifiers": [
231
+ "async"
232
+ ]
298
233
  },
299
- "doc": {
300
- "__schema": "DocSchema",
234
+ {
235
+ "__schema": "FunctionLikeSchema",
301
236
  "location": {
302
237
  "filePath": "linter.main.runtime.ts",
303
- "line": 39,
238
+ "line": 35,
304
239
  "character": 3
305
240
  },
306
- "raw": "/**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */",
307
- "comment": "create a lint task for build pipelines.",
308
- "tags": [
241
+ "signature": "(method) LinterMain.getLinter(context: ExecutionContext, options: LinterOptions): Linter",
242
+ "name": "getLinter",
243
+ "params": [
309
244
  {
310
- "__schema": "PropertyLikeTagSchema",
245
+ "__schema": "ParameterSchema",
311
246
  "location": {
312
247
  "filePath": "linter.main.runtime.ts",
313
- "line": 41,
314
- "character": 6
248
+ "line": 35,
249
+ "character": 13
315
250
  },
316
- "name": "name",
317
- "tagName": "parameter",
318
- "comment": "name of the task."
319
- }
320
- ]
321
- },
322
- "signature": "(method) LinterMain.createTask(name?: string): LintTask",
323
- "name": "createTask",
324
- "params": [
325
- {
326
- "__schema": "ParameterSchema",
327
- "location": {
328
- "filePath": "linter.main.runtime.ts",
329
- "line": 43,
330
- "character": 14
251
+ "name": "context",
252
+ "type": {
253
+ "__schema": "TypeRefSchema",
254
+ "location": {
255
+ "filePath": "linter.main.runtime.ts",
256
+ "line": 35,
257
+ "character": 22
258
+ },
259
+ "name": "ExecutionContext"
260
+ },
261
+ "isOptional": false,
262
+ "isSpread": false
331
263
  },
332
- "name": "name",
333
- "type": {
334
- "__schema": "KeywordTypeSchema",
264
+ {
265
+ "__schema": "ParameterSchema",
335
266
  "location": {
336
267
  "filePath": "linter.main.runtime.ts",
337
- "line": 43,
338
- "character": 21
268
+ "line": 35,
269
+ "character": 40
339
270
  },
340
- "name": "string"
271
+ "name": "options",
272
+ "type": {
273
+ "__schema": "TypeRefSchema",
274
+ "location": {
275
+ "filePath": "linter.main.runtime.ts",
276
+ "line": 35,
277
+ "character": 49
278
+ },
279
+ "name": "LinterOptions"
280
+ },
281
+ "isOptional": false,
282
+ "isSpread": false
283
+ }
284
+ ],
285
+ "returnType": {
286
+ "__schema": "TypeRefSchema",
287
+ "location": {
288
+ "filePath": "linter.main.runtime.ts",
289
+ "line": 35,
290
+ "character": 3
341
291
  },
342
- "isOptional": true,
343
- "isSpread": false
344
- }
345
- ],
346
- "returnType": {
347
- "__schema": "TypeRefSchema",
348
- "location": {
349
- "filePath": "linter.main.runtime.ts",
350
- "line": 43,
351
- "character": 3
352
- },
353
- "name": "LintTask"
354
- },
355
- "modifiers": []
356
- },
357
- {
358
- "__schema": "VariableLikeSchema",
359
- "location": {
360
- "filePath": "linter.main.runtime.ts",
361
- "line": 47,
362
- "character": 3
363
- },
364
- "signature": "(property) LinterMain.dependencies: Aspect[]",
365
- "name": "dependencies",
366
- "type": {
367
- "__schema": "InferenceTypeSchema",
368
- "location": {
369
- "filePath": "linter.main.runtime.ts",
370
- "line": 47,
371
- "character": 3
292
+ "name": "Linter"
372
293
  },
373
- "type": "Aspect[]"
374
- },
375
- "isOptional": true,
376
- "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
377
- },
378
- {
379
- "__schema": "VariableLikeSchema",
380
- "location": {
381
- "filePath": "linter.main.runtime.ts",
382
- "line": 49,
383
- "character": 3
294
+ "modifiers": []
384
295
  },
385
- "signature": "(property) LinterMain.defaultConfig: LinterConfig",
386
- "name": "defaultConfig",
387
- "type": {
388
- "__schema": "TypeRefSchema",
296
+ {
297
+ "__schema": "FunctionLikeSchema",
389
298
  "location": {
390
299
  "filePath": "linter.main.runtime.ts",
391
- "line": 49,
300
+ "line": 43,
392
301
  "character": 3
393
302
  },
394
- "name": "LinterConfig"
395
- },
396
- "isOptional": true,
397
- "defaultValue": "{\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n }"
398
- },
399
- {
400
- "__schema": "FunctionLikeSchema",
401
- "location": {
402
- "filePath": "linter.main.runtime.ts",
403
- "line": 54,
404
- "character": 3
405
- },
406
- "signature": "(method) LinterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: LinterConfig): Promise<LinterMain>",
407
- "name": "provider",
408
- "params": [
409
- {
410
- "__schema": "ParameterSchema",
303
+ "doc": {
304
+ "__schema": "DocSchema",
411
305
  "location": {
412
306
  "filePath": "linter.main.runtime.ts",
413
- "line": 55,
414
- "character": 5
307
+ "line": 39,
308
+ "character": 3
415
309
  },
416
- "name": "[ envs, cli, component, loggerAspect, workspace ]",
417
- "type": {
418
- "__schema": "TupleTypeSchema",
310
+ "raw": "/**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */",
311
+ "comment": "create a lint task for build pipelines.",
312
+ "tags": [
313
+ {
314
+ "__schema": "PropertyLikeTagSchema",
315
+ "location": {
316
+ "filePath": "linter.main.runtime.ts",
317
+ "line": 41,
318
+ "character": 6
319
+ },
320
+ "name": "name",
321
+ "tagName": "parameter",
322
+ "comment": "name of the task."
323
+ }
324
+ ]
325
+ },
326
+ "signature": "(method) LinterMain.createTask(name?: string): LintTask",
327
+ "name": "createTask",
328
+ "params": [
329
+ {
330
+ "__schema": "ParameterSchema",
419
331
  "location": {
420
332
  "filePath": "linter.main.runtime.ts",
421
- "line": 55,
422
- "character": 54
333
+ "line": 43,
334
+ "character": 14
423
335
  },
424
- "elements": [
425
- {
426
- "__schema": "TypeRefSchema",
427
- "location": {
428
- "filePath": "linter.main.runtime.ts",
429
- "line": 55,
430
- "character": 55
431
- },
432
- "name": "EnvsMain",
433
- "componentId": {
434
- "scope": "teambit.envs",
435
- "name": "envs"
436
- }
437
- },
438
- {
439
- "__schema": "TypeRefSchema",
440
- "location": {
441
- "filePath": "linter.main.runtime.ts",
442
- "line": 55,
443
- "character": 65
444
- },
445
- "name": "CLIMain",
446
- "componentId": {
447
- "scope": "teambit.harmony",
448
- "name": "cli"
449
- }
450
- },
451
- {
452
- "__schema": "TypeRefSchema",
453
- "location": {
454
- "filePath": "linter.main.runtime.ts",
455
- "line": 55,
456
- "character": 74
457
- },
458
- "name": "ComponentMain",
459
- "componentId": {
460
- "scope": "teambit.component",
461
- "name": "component"
462
- }
463
- },
464
- {
465
- "__schema": "TypeRefSchema",
466
- "location": {
467
- "filePath": "linter.main.runtime.ts",
468
- "line": 55,
469
- "character": 89
470
- },
471
- "name": "LoggerMain",
472
- "componentId": {
473
- "scope": "teambit.harmony",
474
- "name": "logger"
475
- }
336
+ "name": "name",
337
+ "type": {
338
+ "__schema": "KeywordTypeSchema",
339
+ "location": {
340
+ "filePath": "linter.main.runtime.ts",
341
+ "line": 43,
342
+ "character": 21
476
343
  },
477
- {
478
- "__schema": "TypeRefSchema",
479
- "location": {
480
- "filePath": "linter.main.runtime.ts",
481
- "line": 55,
482
- "character": 101
483
- },
484
- "name": "Workspace",
485
- "componentId": {
486
- "scope": "teambit.workspace",
487
- "name": "workspace"
488
- }
489
- }
490
- ]
491
- },
492
- "isOptional": false,
493
- "isSpread": false
494
- },
495
- {
496
- "__schema": "ParameterSchema",
344
+ "name": "string"
345
+ },
346
+ "isOptional": true,
347
+ "isSpread": false
348
+ }
349
+ ],
350
+ "returnType": {
351
+ "__schema": "TypeRefSchema",
497
352
  "location": {
498
353
  "filePath": "linter.main.runtime.ts",
499
- "line": 56,
500
- "character": 5
501
- },
502
- "name": "config",
503
- "type": {
504
- "__schema": "TypeRefSchema",
505
- "location": {
506
- "filePath": "linter.main.runtime.ts",
507
- "line": 56,
508
- "character": 13
509
- },
510
- "name": "LinterConfig"
354
+ "line": 43,
355
+ "character": 3
511
356
  },
512
- "isOptional": false,
513
- "isSpread": false
514
- }
515
- ],
516
- "returnType": {
517
- "__schema": "InferenceTypeSchema",
518
- "location": {
519
- "filePath": "linter.main.runtime.ts",
520
- "line": 54,
521
- "character": 3
357
+ "name": "LintTask"
522
358
  },
523
- "type": "Promise<LinterMain>"
359
+ "modifiers": []
524
360
  },
525
- "modifiers": [
526
- "static",
527
- "async"
528
- ]
529
- }
530
- ],
531
- "extendsNodes": [],
532
- "implementNodes": []
533
- },
534
- {
535
- "__schema": "TypeSchema",
536
- "location": {
537
- "filePath": "linter.main.runtime.ts",
538
- "line": 13,
539
- "character": 1
540
- },
541
- "signature": "type LinterConfig = {\n extensionFormats: string[];\n fixTypes?: FixTypes | undefined;\n}",
542
- "name": "LinterConfig",
543
- "type": {
544
- "__schema": "TypeLiteralSchema",
545
- "location": {
546
- "filePath": "linter.main.runtime.ts",
547
- "line": 13,
548
- "character": 28
549
- },
550
- "members": [
551
361
  {
552
362
  "__schema": "VariableLikeSchema",
553
363
  "location": {
554
364
  "filePath": "linter.main.runtime.ts",
555
- "line": 17,
365
+ "line": 47,
556
366
  "character": 3
557
367
  },
558
- "doc": {
559
- "__schema": "DocSchema",
560
- "location": {
561
- "filePath": "linter.main.runtime.ts",
562
- "line": 14,
563
- "character": 3
564
- },
565
- "raw": "/**\n * extension formats to lint.\n */",
566
- "comment": "extension formats to lint."
567
- },
568
- "signature": "(property) extensionFormats: string[]",
569
- "name": "extensionFormats",
368
+ "signature": "(property) LinterMain.dependencies: Aspect[]",
369
+ "name": "dependencies",
570
370
  "type": {
571
- "__schema": "TypeArraySchema",
371
+ "__schema": "InferenceTypeSchema",
572
372
  "location": {
573
373
  "filePath": "linter.main.runtime.ts",
574
- "line": 17,
575
- "character": 21
374
+ "line": 47,
375
+ "character": 3
576
376
  },
577
- "type": {
578
- "__schema": "KeywordTypeSchema",
579
- "location": {
580
- "filePath": "linter.main.runtime.ts",
581
- "line": 17,
582
- "character": 21
583
- },
584
- "name": "string"
585
- }
377
+ "type": "Aspect[]"
586
378
  },
587
- "isOptional": false
379
+ "isOptional": true,
380
+ "defaultValue": "[EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect]"
588
381
  },
589
382
  {
590
383
  "__schema": "VariableLikeSchema",
591
384
  "location": {
592
385
  "filePath": "linter.main.runtime.ts",
593
- "line": 18,
386
+ "line": 49,
594
387
  "character": 3
595
388
  },
596
- "signature": "(property) fixTypes?: FixTypes | undefined",
597
- "name": "fixTypes",
389
+ "signature": "(property) LinterMain.defaultConfig: LinterConfig",
390
+ "name": "defaultConfig",
598
391
  "type": {
599
392
  "__schema": "TypeRefSchema",
600
393
  "location": {
601
394
  "filePath": "linter.main.runtime.ts",
602
- "line": 18,
603
- "character": 14
395
+ "line": 49,
396
+ "character": 3
604
397
  },
605
- "name": "FixTypes",
606
- "internalFilePath": "linter-context.ts"
398
+ "name": "LinterConfig"
607
399
  },
608
- "isOptional": true
609
- }
610
- ]
611
- }
612
- },
613
- {
614
- "__schema": "TypeSchema",
615
- "location": {
616
- "filePath": "linter.ts",
617
- "line": 121,
618
- "character": 1
619
- },
620
- "signature": "type LintResults = {\n results: ComponentLintResult[];\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n ... 5 more ...;\n errors: Error[];\n}",
621
- "name": "LintResults",
622
- "type": {
623
- "__schema": "TypeLiteralSchema",
624
- "location": {
625
- "filePath": "linter.ts",
626
- "line": 121,
627
- "character": 27
628
- },
629
- "members": [
400
+ "isOptional": true,
401
+ "defaultValue": "{\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n }"
402
+ },
630
403
  {
631
- "__schema": "VariableLikeSchema",
404
+ "__schema": "FunctionLikeSchema",
632
405
  "location": {
633
- "filePath": "linter.ts",
634
- "line": 122,
406
+ "filePath": "linter.main.runtime.ts",
407
+ "line": 54,
635
408
  "character": 3
636
409
  },
637
- "signature": "(property) results: ComponentLintResult[]",
638
- "name": "results",
639
- "type": {
640
- "__schema": "TypeArraySchema",
641
- "location": {
642
- "filePath": "linter.ts",
643
- "line": 122,
644
- "character": 12
645
- },
646
- "type": {
647
- "__schema": "TypeRefSchema",
410
+ "signature": "(method) LinterMain.provider([envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace], config: LinterConfig): Promise<LinterMain>",
411
+ "name": "provider",
412
+ "params": [
413
+ {
414
+ "__schema": "ParameterSchema",
648
415
  "location": {
649
- "filePath": "linter.ts",
650
- "line": 122,
651
- "character": 12
416
+ "filePath": "linter.main.runtime.ts",
417
+ "line": 55,
418
+ "character": 5
419
+ },
420
+ "name": "[ envs, cli, component, loggerAspect, workspace ]",
421
+ "type": {
422
+ "__schema": "TupleTypeSchema",
423
+ "location": {
424
+ "filePath": "linter.main.runtime.ts",
425
+ "line": 55,
426
+ "character": 54
427
+ },
428
+ "elements": [
429
+ {
430
+ "__schema": "TypeRefSchema",
431
+ "location": {
432
+ "filePath": "linter.main.runtime.ts",
433
+ "line": 55,
434
+ "character": 55
435
+ },
436
+ "name": "EnvsMain"
437
+ },
438
+ {
439
+ "__schema": "TypeRefSchema",
440
+ "location": {
441
+ "filePath": "linter.main.runtime.ts",
442
+ "line": 55,
443
+ "character": 65
444
+ },
445
+ "name": "CLIMain"
446
+ },
447
+ {
448
+ "__schema": "TypeRefSchema",
449
+ "location": {
450
+ "filePath": "linter.main.runtime.ts",
451
+ "line": 55,
452
+ "character": 74
453
+ },
454
+ "name": "ComponentMain"
455
+ },
456
+ {
457
+ "__schema": "TypeRefSchema",
458
+ "location": {
459
+ "filePath": "linter.main.runtime.ts",
460
+ "line": 55,
461
+ "character": 89
462
+ },
463
+ "name": "LoggerMain"
464
+ },
465
+ {
466
+ "__schema": "TypeRefSchema",
467
+ "location": {
468
+ "filePath": "linter.main.runtime.ts",
469
+ "line": 55,
470
+ "character": 101
471
+ },
472
+ "name": "Workspace"
473
+ }
474
+ ]
652
475
  },
653
- "name": "ComponentLintResult"
476
+ "isOptional": false,
477
+ "isSpread": false
478
+ },
479
+ {
480
+ "__schema": "ParameterSchema",
481
+ "location": {
482
+ "filePath": "linter.main.runtime.ts",
483
+ "line": 56,
484
+ "character": 5
485
+ },
486
+ "name": "config",
487
+ "type": {
488
+ "__schema": "TypeRefSchema",
489
+ "location": {
490
+ "filePath": "linter.main.runtime.ts",
491
+ "line": 56,
492
+ "character": 13
493
+ },
494
+ "name": "LinterConfig"
495
+ },
496
+ "isOptional": false,
497
+ "isSpread": false
654
498
  }
499
+ ],
500
+ "returnType": {
501
+ "__schema": "InferenceTypeSchema",
502
+ "location": {
503
+ "filePath": "linter.main.runtime.ts",
504
+ "line": 54,
505
+ "character": 3
506
+ },
507
+ "type": "Promise<LinterMain>"
655
508
  },
656
- "isOptional": false
509
+ "modifiers": [
510
+ "static",
511
+ "async"
512
+ ]
513
+ }
514
+ ],
515
+ "extendsNodes": [],
516
+ "implementNodes": []
517
+ }
518
+ },
519
+ {
520
+ "__schema": "ExportSchema",
521
+ "location": {
522
+ "filePath": "index.ts",
523
+ "line": 4,
524
+ "character": 27
525
+ },
526
+ "name": "LinterConfig",
527
+ "exportNode": {
528
+ "__schema": "TypeSchema",
529
+ "location": {
530
+ "filePath": "linter.main.runtime.ts",
531
+ "line": 13,
532
+ "character": 1
533
+ },
534
+ "signature": "type LinterConfig = {\n extensionFormats: string[];\n fixTypes?: FixTypes | undefined;\n}",
535
+ "name": "LinterConfig",
536
+ "type": {
537
+ "__schema": "TypeLiteralSchema",
538
+ "location": {
539
+ "filePath": "linter.main.runtime.ts",
540
+ "line": 13,
541
+ "character": 28
657
542
  },
658
- {
659
- "__schema": "VariableLikeSchema",
660
- "location": {
661
- "filePath": "linter.ts",
662
- "line": 126,
663
- "character": 3
664
- },
665
- "doc": {
666
- "__schema": "DocSchema",
543
+ "members": [
544
+ {
545
+ "__schema": "VariableLikeSchema",
667
546
  "location": {
668
- "filePath": "linter.ts",
669
- "line": 123,
547
+ "filePath": "linter.main.runtime.ts",
548
+ "line": 17,
670
549
  "character": 3
671
550
  },
672
- "raw": "/**\n * total errors count of the component (from all of the components).\n */",
673
- "comment": "total errors count of the component (from all of the components)."
551
+ "doc": {
552
+ "__schema": "DocSchema",
553
+ "location": {
554
+ "filePath": "linter.main.runtime.ts",
555
+ "line": 14,
556
+ "character": 3
557
+ },
558
+ "raw": "/**\n * extension formats to lint.\n */",
559
+ "comment": "extension formats to lint."
560
+ },
561
+ "signature": "(property) extensionFormats: string[]",
562
+ "name": "extensionFormats",
563
+ "type": {
564
+ "__schema": "TypeArraySchema",
565
+ "location": {
566
+ "filePath": "linter.main.runtime.ts",
567
+ "line": 17,
568
+ "character": 21
569
+ },
570
+ "type": {
571
+ "__schema": "KeywordTypeSchema",
572
+ "location": {
573
+ "filePath": "linter.main.runtime.ts",
574
+ "line": 17,
575
+ "character": 21
576
+ },
577
+ "name": "string"
578
+ }
579
+ },
580
+ "isOptional": false
674
581
  },
675
- "signature": "(property) totalErrorCount: number",
676
- "name": "totalErrorCount",
677
- "type": {
678
- "__schema": "KeywordTypeSchema",
582
+ {
583
+ "__schema": "VariableLikeSchema",
679
584
  "location": {
680
- "filePath": "linter.ts",
681
- "line": 126,
682
- "character": 20
585
+ "filePath": "linter.main.runtime.ts",
586
+ "line": 18,
587
+ "character": 3
683
588
  },
684
- "name": "number"
685
- },
686
- "isOptional": false
589
+ "signature": "(property) fixTypes?: FixTypes | undefined",
590
+ "name": "fixTypes",
591
+ "type": {
592
+ "__schema": "TypeRefSchema",
593
+ "location": {
594
+ "filePath": "linter.main.runtime.ts",
595
+ "line": 18,
596
+ "character": 14
597
+ },
598
+ "name": "FixTypes"
599
+ },
600
+ "isOptional": true
601
+ }
602
+ ]
603
+ }
604
+ }
605
+ },
606
+ {
607
+ "__schema": "ExportSchema",
608
+ "location": {
609
+ "filePath": "index.ts",
610
+ "line": 5,
611
+ "character": 15
612
+ },
613
+ "name": "LintResults",
614
+ "exportNode": {
615
+ "__schema": "TypeSchema",
616
+ "location": {
617
+ "filePath": "linter.ts",
618
+ "line": 121,
619
+ "character": 1
620
+ },
621
+ "signature": "type LintResults = {\n results: ComponentLintResult[];\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n ... 5 more ...;\n errors: Error[];\n}",
622
+ "name": "LintResults",
623
+ "type": {
624
+ "__schema": "TypeLiteralSchema",
625
+ "location": {
626
+ "filePath": "linter.ts",
627
+ "line": 121,
628
+ "character": 27
687
629
  },
688
- {
689
- "__schema": "VariableLikeSchema",
690
- "location": {
691
- "filePath": "linter.ts",
692
- "line": 130,
693
- "character": 3
694
- },
695
- "doc": {
696
- "__schema": "DocSchema",
630
+ "members": [
631
+ {
632
+ "__schema": "VariableLikeSchema",
697
633
  "location": {
698
634
  "filePath": "linter.ts",
699
- "line": 127,
635
+ "line": 122,
700
636
  "character": 3
701
637
  },
702
- "raw": "/**\n * total fatal errors count of the component (from all of the components).\n */",
703
- "comment": "total fatal errors count of the component (from all of the components)."
638
+ "signature": "(property) results: ComponentLintResult[]",
639
+ "name": "results",
640
+ "type": {
641
+ "__schema": "TypeArraySchema",
642
+ "location": {
643
+ "filePath": "linter.ts",
644
+ "line": 122,
645
+ "character": 12
646
+ },
647
+ "type": {
648
+ "__schema": "TypeRefSchema",
649
+ "location": {
650
+ "filePath": "linter.ts",
651
+ "line": 122,
652
+ "character": 12
653
+ },
654
+ "name": "ComponentLintResult"
655
+ }
656
+ },
657
+ "isOptional": false
704
658
  },
705
- "signature": "(property) totalFatalErrorCount?: number | undefined",
706
- "name": "totalFatalErrorCount",
707
- "type": {
708
- "__schema": "KeywordTypeSchema",
659
+ {
660
+ "__schema": "VariableLikeSchema",
709
661
  "location": {
710
662
  "filePath": "linter.ts",
711
- "line": 130,
712
- "character": 26
663
+ "line": 126,
664
+ "character": 3
665
+ },
666
+ "doc": {
667
+ "__schema": "DocSchema",
668
+ "location": {
669
+ "filePath": "linter.ts",
670
+ "line": 123,
671
+ "character": 3
672
+ },
673
+ "raw": "/**\n * total errors count of the component (from all of the components).\n */",
674
+ "comment": "total errors count of the component (from all of the components)."
675
+ },
676
+ "signature": "(property) totalErrorCount: number",
677
+ "name": "totalErrorCount",
678
+ "type": {
679
+ "__schema": "KeywordTypeSchema",
680
+ "location": {
681
+ "filePath": "linter.ts",
682
+ "line": 126,
683
+ "character": 20
684
+ },
685
+ "name": "number"
713
686
  },
714
- "name": "number"
715
- },
716
- "isOptional": true
717
- },
718
- {
719
- "__schema": "VariableLikeSchema",
720
- "location": {
721
- "filePath": "linter.ts",
722
- "line": 134,
723
- "character": 3
687
+ "isOptional": false
724
688
  },
725
- "doc": {
726
- "__schema": "DocSchema",
689
+ {
690
+ "__schema": "VariableLikeSchema",
727
691
  "location": {
728
692
  "filePath": "linter.ts",
729
- "line": 131,
693
+ "line": 130,
730
694
  "character": 3
731
695
  },
732
- "raw": "/**\n * total fixable errors count of the component (from all of the components).\n */",
733
- "comment": "total fixable errors count of the component (from all of the components)."
734
- },
735
- "signature": "(property) totalFixableErrorCount?: number | undefined",
736
- "name": "totalFixableErrorCount",
737
- "type": {
738
- "__schema": "KeywordTypeSchema",
739
- "location": {
740
- "filePath": "linter.ts",
741
- "line": 134,
742
- "character": 28
696
+ "doc": {
697
+ "__schema": "DocSchema",
698
+ "location": {
699
+ "filePath": "linter.ts",
700
+ "line": 127,
701
+ "character": 3
702
+ },
703
+ "raw": "/**\n * total fatal errors count of the component (from all of the components).\n */",
704
+ "comment": "total fatal errors count of the component (from all of the components)."
743
705
  },
744
- "name": "number"
745
- },
746
- "isOptional": true
747
- },
748
- {
749
- "__schema": "VariableLikeSchema",
750
- "location": {
751
- "filePath": "linter.ts",
752
- "line": 138,
753
- "character": 3
706
+ "signature": "(property) totalFatalErrorCount?: number | undefined",
707
+ "name": "totalFatalErrorCount",
708
+ "type": {
709
+ "__schema": "KeywordTypeSchema",
710
+ "location": {
711
+ "filePath": "linter.ts",
712
+ "line": 130,
713
+ "character": 26
714
+ },
715
+ "name": "number"
716
+ },
717
+ "isOptional": true
754
718
  },
755
- "doc": {
756
- "__schema": "DocSchema",
719
+ {
720
+ "__schema": "VariableLikeSchema",
757
721
  "location": {
758
722
  "filePath": "linter.ts",
759
- "line": 135,
723
+ "line": 134,
760
724
  "character": 3
761
725
  },
762
- "raw": "/**\n * total fatal warning count of the component (from all of the components).\n */",
763
- "comment": "total fatal warning count of the component (from all of the components)."
764
- },
765
- "signature": "(property) totalFixableWarningCount?: number | undefined",
766
- "name": "totalFixableWarningCount",
767
- "type": {
768
- "__schema": "KeywordTypeSchema",
769
- "location": {
770
- "filePath": "linter.ts",
771
- "line": 138,
772
- "character": 30
726
+ "doc": {
727
+ "__schema": "DocSchema",
728
+ "location": {
729
+ "filePath": "linter.ts",
730
+ "line": 131,
731
+ "character": 3
732
+ },
733
+ "raw": "/**\n * total fixable errors count of the component (from all of the components).\n */",
734
+ "comment": "total fixable errors count of the component (from all of the components)."
773
735
  },
774
- "name": "number"
775
- },
776
- "isOptional": true
777
- },
778
- {
779
- "__schema": "VariableLikeSchema",
780
- "location": {
781
- "filePath": "linter.ts",
782
- "line": 142,
783
- "character": 3
736
+ "signature": "(property) totalFixableErrorCount?: number | undefined",
737
+ "name": "totalFixableErrorCount",
738
+ "type": {
739
+ "__schema": "KeywordTypeSchema",
740
+ "location": {
741
+ "filePath": "linter.ts",
742
+ "line": 134,
743
+ "character": 28
744
+ },
745
+ "name": "number"
746
+ },
747
+ "isOptional": true
784
748
  },
785
- "doc": {
786
- "__schema": "DocSchema",
749
+ {
750
+ "__schema": "VariableLikeSchema",
787
751
  "location": {
788
752
  "filePath": "linter.ts",
789
- "line": 139,
753
+ "line": 138,
790
754
  "character": 3
791
755
  },
792
- "raw": "/**\n * total warning count of the component (from all of the components).\n */",
793
- "comment": "total warning count of the component (from all of the components)."
756
+ "doc": {
757
+ "__schema": "DocSchema",
758
+ "location": {
759
+ "filePath": "linter.ts",
760
+ "line": 135,
761
+ "character": 3
762
+ },
763
+ "raw": "/**\n * total fatal warning count of the component (from all of the components).\n */",
764
+ "comment": "total fatal warning count of the component (from all of the components)."
765
+ },
766
+ "signature": "(property) totalFixableWarningCount?: number | undefined",
767
+ "name": "totalFixableWarningCount",
768
+ "type": {
769
+ "__schema": "KeywordTypeSchema",
770
+ "location": {
771
+ "filePath": "linter.ts",
772
+ "line": 138,
773
+ "character": 30
774
+ },
775
+ "name": "number"
776
+ },
777
+ "isOptional": true
794
778
  },
795
- "signature": "(property) totalWarningCount: number",
796
- "name": "totalWarningCount",
797
- "type": {
798
- "__schema": "KeywordTypeSchema",
779
+ {
780
+ "__schema": "VariableLikeSchema",
799
781
  "location": {
800
782
  "filePath": "linter.ts",
801
783
  "line": 142,
802
- "character": 22
784
+ "character": 3
803
785
  },
804
- "name": "number"
805
- },
806
- "isOptional": false
807
- },
808
- {
809
- "__schema": "VariableLikeSchema",
810
- "location": {
811
- "filePath": "linter.ts",
812
- "line": 144,
813
- "character": 3
786
+ "doc": {
787
+ "__schema": "DocSchema",
788
+ "location": {
789
+ "filePath": "linter.ts",
790
+ "line": 139,
791
+ "character": 3
792
+ },
793
+ "raw": "/**\n * total warning count of the component (from all of the components).\n */",
794
+ "comment": "total warning count of the component (from all of the components)."
795
+ },
796
+ "signature": "(property) totalWarningCount: number",
797
+ "name": "totalWarningCount",
798
+ "type": {
799
+ "__schema": "KeywordTypeSchema",
800
+ "location": {
801
+ "filePath": "linter.ts",
802
+ "line": 142,
803
+ "character": 22
804
+ },
805
+ "name": "number"
806
+ },
807
+ "isOptional": false
814
808
  },
815
- "signature": "(property) totalComponentsWithErrorCount: number",
816
- "name": "totalComponentsWithErrorCount",
817
- "type": {
818
- "__schema": "KeywordTypeSchema",
809
+ {
810
+ "__schema": "VariableLikeSchema",
819
811
  "location": {
820
812
  "filePath": "linter.ts",
821
813
  "line": 144,
822
- "character": 34
814
+ "character": 3
823
815
  },
824
- "name": "number"
825
- },
826
- "isOptional": false
827
- },
828
- {
829
- "__schema": "VariableLikeSchema",
830
- "location": {
831
- "filePath": "linter.ts",
832
- "line": 145,
833
- "character": 3
834
- },
835
- "signature": "(property) totalComponentsWithFatalErrorCount?: number | undefined",
836
- "name": "totalComponentsWithFatalErrorCount",
837
- "type": {
838
- "__schema": "KeywordTypeSchema",
839
- "location": {
840
- "filePath": "linter.ts",
841
- "line": 145,
842
- "character": 40
816
+ "signature": "(property) totalComponentsWithErrorCount: number",
817
+ "name": "totalComponentsWithErrorCount",
818
+ "type": {
819
+ "__schema": "KeywordTypeSchema",
820
+ "location": {
821
+ "filePath": "linter.ts",
822
+ "line": 144,
823
+ "character": 34
824
+ },
825
+ "name": "number"
843
826
  },
844
- "name": "number"
845
- },
846
- "isOptional": true
847
- },
848
- {
849
- "__schema": "VariableLikeSchema",
850
- "location": {
851
- "filePath": "linter.ts",
852
- "line": 146,
853
- "character": 3
827
+ "isOptional": false
854
828
  },
855
- "signature": "(property) totalComponentsWithFixableErrorCount?: number | undefined",
856
- "name": "totalComponentsWithFixableErrorCount",
857
- "type": {
858
- "__schema": "KeywordTypeSchema",
829
+ {
830
+ "__schema": "VariableLikeSchema",
859
831
  "location": {
860
832
  "filePath": "linter.ts",
861
- "line": 146,
862
- "character": 42
833
+ "line": 145,
834
+ "character": 3
863
835
  },
864
- "name": "number"
865
- },
866
- "isOptional": true
867
- },
868
- {
869
- "__schema": "VariableLikeSchema",
870
- "location": {
871
- "filePath": "linter.ts",
872
- "line": 147,
873
- "character": 3
874
- },
875
- "signature": "(property) totalComponentsWithFixableWarningCount?: number | undefined",
876
- "name": "totalComponentsWithFixableWarningCount",
877
- "type": {
878
- "__schema": "KeywordTypeSchema",
879
- "location": {
880
- "filePath": "linter.ts",
881
- "line": 147,
882
- "character": 44
836
+ "signature": "(property) totalComponentsWithFatalErrorCount?: number | undefined",
837
+ "name": "totalComponentsWithFatalErrorCount",
838
+ "type": {
839
+ "__schema": "KeywordTypeSchema",
840
+ "location": {
841
+ "filePath": "linter.ts",
842
+ "line": 145,
843
+ "character": 40
844
+ },
845
+ "name": "number"
883
846
  },
884
- "name": "number"
885
- },
886
- "isOptional": true
887
- },
888
- {
889
- "__schema": "VariableLikeSchema",
890
- "location": {
891
- "filePath": "linter.ts",
892
- "line": 148,
893
- "character": 3
847
+ "isOptional": true
894
848
  },
895
- "signature": "(property) totalComponentsWithWarningCount: number",
896
- "name": "totalComponentsWithWarningCount",
897
- "type": {
898
- "__schema": "KeywordTypeSchema",
849
+ {
850
+ "__schema": "VariableLikeSchema",
899
851
  "location": {
900
852
  "filePath": "linter.ts",
901
- "line": 148,
902
- "character": 36
853
+ "line": 146,
854
+ "character": 3
903
855
  },
904
- "name": "number"
905
- },
906
- "isOptional": false
907
- },
908
- {
909
- "__schema": "VariableLikeSchema",
910
- "location": {
911
- "filePath": "linter.ts",
912
- "line": 150,
913
- "character": 3
856
+ "signature": "(property) totalComponentsWithFixableErrorCount?: number | undefined",
857
+ "name": "totalComponentsWithFixableErrorCount",
858
+ "type": {
859
+ "__schema": "KeywordTypeSchema",
860
+ "location": {
861
+ "filePath": "linter.ts",
862
+ "line": 146,
863
+ "character": 42
864
+ },
865
+ "name": "number"
866
+ },
867
+ "isOptional": true
914
868
  },
915
- "signature": "(property) errors: Error[]",
916
- "name": "errors",
917
- "type": {
918
- "__schema": "TypeArraySchema",
869
+ {
870
+ "__schema": "VariableLikeSchema",
919
871
  "location": {
920
872
  "filePath": "linter.ts",
921
- "line": 150,
922
- "character": 11
873
+ "line": 147,
874
+ "character": 3
923
875
  },
876
+ "signature": "(property) totalComponentsWithFixableWarningCount?: number | undefined",
877
+ "name": "totalComponentsWithFixableWarningCount",
924
878
  "type": {
925
- "__schema": "TypeRefSchema",
879
+ "__schema": "KeywordTypeSchema",
926
880
  "location": {
927
881
  "filePath": "linter.ts",
928
- "line": 150,
929
- "character": 11
882
+ "line": 147,
883
+ "character": 44
930
884
  },
931
- "name": "Error"
932
- }
933
- },
934
- "isOptional": false
935
- }
936
- ]
937
- }
938
- },
939
- {
940
- "__schema": "InterfaceSchema",
941
- "location": {
942
- "filePath": "linter.ts",
943
- "line": 153,
944
- "character": 1
945
- },
946
- "signature": "interface Linter",
947
- "name": "Linter",
948
- "members": [
949
- {
950
- "__schema": "VariableLikeSchema",
951
- "location": {
952
- "filePath": "linter.ts",
953
- "line": 154,
954
- "character": 3
955
- },
956
- "signature": "(property) Linter.id: string",
957
- "name": "id",
958
- "type": {
959
- "__schema": "KeywordTypeSchema",
960
- "location": {
961
- "filePath": "linter.ts",
962
- "line": 154,
963
- "character": 7
885
+ "name": "number"
886
+ },
887
+ "isOptional": true
964
888
  },
965
- "name": "string"
966
- },
967
- "isOptional": false
968
- },
969
- {
970
- "__schema": "FunctionLikeSchema",
971
- "location": {
972
- "filePath": "linter.ts",
973
- "line": 155,
974
- "character": 3
975
- },
976
- "signature": "(method) Linter.lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>",
977
- "name": "lint",
978
- "params": [
979
889
  {
980
- "__schema": "ParameterSchema",
890
+ "__schema": "VariableLikeSchema",
981
891
  "location": {
982
892
  "filePath": "linter.ts",
983
- "line": 155,
984
- "character": 8
893
+ "line": 148,
894
+ "character": 3
985
895
  },
986
- "name": "context",
896
+ "signature": "(property) totalComponentsWithWarningCount: number",
897
+ "name": "totalComponentsWithWarningCount",
987
898
  "type": {
988
- "__schema": "TypeRefSchema",
899
+ "__schema": "KeywordTypeSchema",
989
900
  "location": {
990
901
  "filePath": "linter.ts",
991
- "line": 155,
992
- "character": 17
902
+ "line": 148,
903
+ "character": 36
993
904
  },
994
- "name": "LinterContext"
905
+ "name": "number"
995
906
  },
996
- "isOptional": false,
997
- "isSpread": false
907
+ "isOptional": false
998
908
  },
999
909
  {
1000
- "__schema": "ParameterSchema",
910
+ "__schema": "VariableLikeSchema",
1001
911
  "location": {
1002
912
  "filePath": "linter.ts",
1003
- "line": 155,
1004
- "character": 32
913
+ "line": 150,
914
+ "character": 3
1005
915
  },
1006
- "name": "buildContext",
916
+ "signature": "(property) errors: Error[]",
917
+ "name": "errors",
1007
918
  "type": {
1008
- "__schema": "TypeRefSchema",
919
+ "__schema": "TypeArraySchema",
1009
920
  "location": {
1010
921
  "filePath": "linter.ts",
1011
- "line": 155,
1012
- "character": 47
922
+ "line": 150,
923
+ "character": 11
1013
924
  },
1014
- "name": "BuildContext",
1015
- "componentId": {
1016
- "scope": "teambit.pipelines",
1017
- "name": "builder"
925
+ "type": {
926
+ "__schema": "TypeRefSchema",
927
+ "location": {
928
+ "filePath": "linter.ts",
929
+ "line": 150,
930
+ "character": 11
931
+ },
932
+ "name": "Error"
1018
933
  }
1019
934
  },
1020
- "isOptional": true,
1021
- "isSpread": false
935
+ "isOptional": false
1022
936
  }
1023
- ],
1024
- "returnType": {
1025
- "__schema": "TypeRefSchema",
1026
- "location": {
1027
- "filePath": "linter.ts",
1028
- "line": 155,
1029
- "character": 62
1030
- },
1031
- "name": "Promise",
1032
- "typeArgs": [
1033
- {
1034
- "__schema": "TypeRefSchema",
1035
- "location": {
1036
- "filePath": "linter.ts",
1037
- "line": 155,
1038
- "character": 70
1039
- },
1040
- "name": "LintResults"
1041
- }
1042
- ]
1043
- },
1044
- "modifiers": []
937
+ ]
1045
938
  }
1046
- ],
1047
- "extendsNodes": []
939
+ }
1048
940
  },
1049
941
  {
1050
- "__schema": "TypeSchema",
942
+ "__schema": "ExportSchema",
1051
943
  "location": {
1052
- "filePath": "linter.ts",
1053
- "line": 43,
1054
- "character": 1
944
+ "filePath": "index.ts",
945
+ "line": 5,
946
+ "character": 28
1055
947
  },
1056
- "signature": "type LintResult = {\n filePath: string;\n errorCount: number;\n fatalErrorCount?: number | undefined;\n fixableErrorCount?: number | undefined;\n fixableWarningCount?: number | undefined;\n warningCount: number;\n messages: LintMessage[];\n raw: any;\n}",
1057
- "name": "LintResult",
1058
- "type": {
1059
- "__schema": "TypeLiteralSchema",
948
+ "name": "Linter",
949
+ "exportNode": {
950
+ "__schema": "InterfaceSchema",
1060
951
  "location": {
1061
952
  "filePath": "linter.ts",
1062
- "line": 43,
1063
- "character": 26
953
+ "line": 153,
954
+ "character": 1
1064
955
  },
956
+ "signature": "interface Linter",
957
+ "name": "Linter",
1065
958
  "members": [
1066
959
  {
1067
960
  "__schema": "VariableLikeSchema",
1068
961
  "location": {
1069
962
  "filePath": "linter.ts",
1070
- "line": 47,
963
+ "line": 154,
1071
964
  "character": 3
1072
965
  },
1073
- "doc": {
1074
- "__schema": "DocSchema",
1075
- "location": {
1076
- "filePath": "linter.ts",
1077
- "line": 44,
1078
- "character": 3
1079
- },
1080
- "raw": "/**\n * path of the linted file.\n */",
1081
- "comment": "path of the linted file."
1082
- },
1083
- "signature": "(property) filePath: string",
1084
- "name": "filePath",
966
+ "signature": "(property) Linter.id: string",
967
+ "name": "id",
1085
968
  "type": {
1086
969
  "__schema": "KeywordTypeSchema",
1087
970
  "location": {
1088
971
  "filePath": "linter.ts",
1089
- "line": 47,
1090
- "character": 13
972
+ "line": 154,
973
+ "character": 7
1091
974
  },
1092
975
  "name": "string"
1093
976
  },
1094
977
  "isOptional": false
1095
978
  },
1096
979
  {
1097
- "__schema": "VariableLikeSchema",
980
+ "__schema": "FunctionLikeSchema",
1098
981
  "location": {
1099
982
  "filePath": "linter.ts",
1100
- "line": 52,
983
+ "line": 155,
1101
984
  "character": 3
1102
985
  },
1103
- "doc": {
1104
- "__schema": "DocSchema",
986
+ "signature": "(method) Linter.lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>",
987
+ "name": "lint",
988
+ "params": [
989
+ {
990
+ "__schema": "ParameterSchema",
991
+ "location": {
992
+ "filePath": "linter.ts",
993
+ "line": 155,
994
+ "character": 8
995
+ },
996
+ "name": "context",
997
+ "type": {
998
+ "__schema": "TypeRefSchema",
999
+ "location": {
1000
+ "filePath": "linter.ts",
1001
+ "line": 155,
1002
+ "character": 17
1003
+ },
1004
+ "name": "LinterContext"
1005
+ },
1006
+ "isOptional": false,
1007
+ "isSpread": false
1008
+ },
1009
+ {
1010
+ "__schema": "ParameterSchema",
1011
+ "location": {
1012
+ "filePath": "linter.ts",
1013
+ "line": 155,
1014
+ "character": 32
1015
+ },
1016
+ "name": "buildContext",
1017
+ "type": {
1018
+ "__schema": "TypeRefSchema",
1019
+ "location": {
1020
+ "filePath": "linter.ts",
1021
+ "line": 155,
1022
+ "character": 47
1023
+ },
1024
+ "name": "BuildContext"
1025
+ },
1026
+ "isOptional": true,
1027
+ "isSpread": false
1028
+ }
1029
+ ],
1030
+ "returnType": {
1031
+ "__schema": "TypeRefSchema",
1105
1032
  "location": {
1106
1033
  "filePath": "linter.ts",
1107
- "line": 49,
1108
- "character": 3
1034
+ "line": 155,
1035
+ "character": 62
1109
1036
  },
1110
- "raw": "/**\n * numbers of errors found.\n */",
1111
- "comment": "numbers of errors found."
1037
+ "name": "Promise",
1038
+ "typeArgs": [
1039
+ {
1040
+ "__schema": "TypeRefSchema",
1041
+ "location": {
1042
+ "filePath": "linter.ts",
1043
+ "line": 155,
1044
+ "character": 70
1045
+ },
1046
+ "name": "LintResults"
1047
+ }
1048
+ ]
1112
1049
  },
1113
- "signature": "(property) errorCount: number",
1114
- "name": "errorCount",
1115
- "type": {
1116
- "__schema": "KeywordTypeSchema",
1050
+ "modifiers": []
1051
+ }
1052
+ ],
1053
+ "extendsNodes": []
1054
+ }
1055
+ },
1056
+ {
1057
+ "__schema": "ExportSchema",
1058
+ "location": {
1059
+ "filePath": "index.ts",
1060
+ "line": 5,
1061
+ "character": 36
1062
+ },
1063
+ "name": "LintResult",
1064
+ "exportNode": {
1065
+ "__schema": "TypeSchema",
1066
+ "location": {
1067
+ "filePath": "linter.ts",
1068
+ "line": 43,
1069
+ "character": 1
1070
+ },
1071
+ "signature": "type LintResult = {\n filePath: string;\n errorCount: number;\n fatalErrorCount?: number | undefined;\n fixableErrorCount?: number | undefined;\n fixableWarningCount?: number | undefined;\n warningCount: number;\n messages: LintMessage[];\n raw: any;\n}",
1072
+ "name": "LintResult",
1073
+ "type": {
1074
+ "__schema": "TypeLiteralSchema",
1075
+ "location": {
1076
+ "filePath": "linter.ts",
1077
+ "line": 43,
1078
+ "character": 26
1079
+ },
1080
+ "members": [
1081
+ {
1082
+ "__schema": "VariableLikeSchema",
1117
1083
  "location": {
1118
1084
  "filePath": "linter.ts",
1119
- "line": 52,
1120
- "character": 15
1085
+ "line": 47,
1086
+ "character": 3
1121
1087
  },
1122
- "name": "number"
1123
- },
1124
- "isOptional": false
1125
- },
1126
- {
1127
- "__schema": "VariableLikeSchema",
1128
- "location": {
1129
- "filePath": "linter.ts",
1130
- "line": 57,
1131
- "character": 3
1088
+ "doc": {
1089
+ "__schema": "DocSchema",
1090
+ "location": {
1091
+ "filePath": "linter.ts",
1092
+ "line": 44,
1093
+ "character": 3
1094
+ },
1095
+ "raw": "/**\n * path of the linted file.\n */",
1096
+ "comment": "path of the linted file."
1097
+ },
1098
+ "signature": "(property) filePath: string",
1099
+ "name": "filePath",
1100
+ "type": {
1101
+ "__schema": "KeywordTypeSchema",
1102
+ "location": {
1103
+ "filePath": "linter.ts",
1104
+ "line": 47,
1105
+ "character": 13
1106
+ },
1107
+ "name": "string"
1108
+ },
1109
+ "isOptional": false
1132
1110
  },
1133
- "doc": {
1134
- "__schema": "DocSchema",
1111
+ {
1112
+ "__schema": "VariableLikeSchema",
1135
1113
  "location": {
1136
1114
  "filePath": "linter.ts",
1137
- "line": 54,
1115
+ "line": 52,
1138
1116
  "character": 3
1139
1117
  },
1140
- "raw": "/**\n * numbers of errors found.\n */",
1141
- "comment": "numbers of errors found."
1142
- },
1143
- "signature": "(property) fatalErrorCount?: number | undefined",
1144
- "name": "fatalErrorCount",
1145
- "type": {
1146
- "__schema": "KeywordTypeSchema",
1147
- "location": {
1148
- "filePath": "linter.ts",
1149
- "line": 57,
1150
- "character": 21
1118
+ "doc": {
1119
+ "__schema": "DocSchema",
1120
+ "location": {
1121
+ "filePath": "linter.ts",
1122
+ "line": 49,
1123
+ "character": 3
1124
+ },
1125
+ "raw": "/**\n * numbers of errors found.\n */",
1126
+ "comment": "numbers of errors found."
1151
1127
  },
1152
- "name": "number"
1153
- },
1154
- "isOptional": true
1155
- },
1156
- {
1157
- "__schema": "VariableLikeSchema",
1158
- "location": {
1159
- "filePath": "linter.ts",
1160
- "line": 62,
1161
- "character": 3
1128
+ "signature": "(property) errorCount: number",
1129
+ "name": "errorCount",
1130
+ "type": {
1131
+ "__schema": "KeywordTypeSchema",
1132
+ "location": {
1133
+ "filePath": "linter.ts",
1134
+ "line": 52,
1135
+ "character": 15
1136
+ },
1137
+ "name": "number"
1138
+ },
1139
+ "isOptional": false
1162
1140
  },
1163
- "doc": {
1164
- "__schema": "DocSchema",
1141
+ {
1142
+ "__schema": "VariableLikeSchema",
1165
1143
  "location": {
1166
1144
  "filePath": "linter.ts",
1167
- "line": 59,
1145
+ "line": 57,
1168
1146
  "character": 3
1169
1147
  },
1170
- "raw": "/**\n * numbers of fixable errors found.\n */",
1171
- "comment": "numbers of fixable errors found."
1172
- },
1173
- "signature": "(property) fixableErrorCount?: number | undefined",
1174
- "name": "fixableErrorCount",
1175
- "type": {
1176
- "__schema": "KeywordTypeSchema",
1177
- "location": {
1178
- "filePath": "linter.ts",
1179
- "line": 62,
1180
- "character": 23
1148
+ "doc": {
1149
+ "__schema": "DocSchema",
1150
+ "location": {
1151
+ "filePath": "linter.ts",
1152
+ "line": 54,
1153
+ "character": 3
1154
+ },
1155
+ "raw": "/**\n * numbers of errors found.\n */",
1156
+ "comment": "numbers of errors found."
1181
1157
  },
1182
- "name": "number"
1183
- },
1184
- "isOptional": true
1185
- },
1186
- {
1187
- "__schema": "VariableLikeSchema",
1188
- "location": {
1189
- "filePath": "linter.ts",
1190
- "line": 67,
1191
- "character": 3
1158
+ "signature": "(property) fatalErrorCount?: number | undefined",
1159
+ "name": "fatalErrorCount",
1160
+ "type": {
1161
+ "__schema": "KeywordTypeSchema",
1162
+ "location": {
1163
+ "filePath": "linter.ts",
1164
+ "line": 57,
1165
+ "character": 21
1166
+ },
1167
+ "name": "number"
1168
+ },
1169
+ "isOptional": true
1192
1170
  },
1193
- "doc": {
1194
- "__schema": "DocSchema",
1171
+ {
1172
+ "__schema": "VariableLikeSchema",
1195
1173
  "location": {
1196
1174
  "filePath": "linter.ts",
1197
- "line": 64,
1175
+ "line": 62,
1198
1176
  "character": 3
1199
1177
  },
1200
- "raw": "/**\n * numbers of fixable warning found.\n */",
1201
- "comment": "numbers of fixable warning found."
1202
- },
1203
- "signature": "(property) fixableWarningCount?: number | undefined",
1204
- "name": "fixableWarningCount",
1205
- "type": {
1206
- "__schema": "KeywordTypeSchema",
1207
- "location": {
1208
- "filePath": "linter.ts",
1209
- "line": 67,
1210
- "character": 25
1178
+ "doc": {
1179
+ "__schema": "DocSchema",
1180
+ "location": {
1181
+ "filePath": "linter.ts",
1182
+ "line": 59,
1183
+ "character": 3
1184
+ },
1185
+ "raw": "/**\n * numbers of fixable errors found.\n */",
1186
+ "comment": "numbers of fixable errors found."
1211
1187
  },
1212
- "name": "number"
1213
- },
1214
- "isOptional": true
1215
- },
1216
- {
1217
- "__schema": "VariableLikeSchema",
1218
- "location": {
1219
- "filePath": "linter.ts",
1220
- "line": 72,
1221
- "character": 3
1188
+ "signature": "(property) fixableErrorCount?: number | undefined",
1189
+ "name": "fixableErrorCount",
1190
+ "type": {
1191
+ "__schema": "KeywordTypeSchema",
1192
+ "location": {
1193
+ "filePath": "linter.ts",
1194
+ "line": 62,
1195
+ "character": 23
1196
+ },
1197
+ "name": "number"
1198
+ },
1199
+ "isOptional": true
1222
1200
  },
1223
- "doc": {
1224
- "__schema": "DocSchema",
1201
+ {
1202
+ "__schema": "VariableLikeSchema",
1225
1203
  "location": {
1226
1204
  "filePath": "linter.ts",
1227
- "line": 69,
1205
+ "line": 67,
1228
1206
  "character": 3
1229
1207
  },
1230
- "raw": "/**\n * number of found warnings.\n */",
1231
- "comment": "number of found warnings."
1232
- },
1233
- "signature": "(property) warningCount: number",
1234
- "name": "warningCount",
1235
- "type": {
1236
- "__schema": "KeywordTypeSchema",
1237
- "location": {
1238
- "filePath": "linter.ts",
1239
- "line": 72,
1240
- "character": 17
1208
+ "doc": {
1209
+ "__schema": "DocSchema",
1210
+ "location": {
1211
+ "filePath": "linter.ts",
1212
+ "line": 64,
1213
+ "character": 3
1214
+ },
1215
+ "raw": "/**\n * numbers of fixable warning found.\n */",
1216
+ "comment": "numbers of fixable warning found."
1241
1217
  },
1242
- "name": "number"
1243
- },
1244
- "isOptional": false
1245
- },
1246
- {
1247
- "__schema": "VariableLikeSchema",
1248
- "location": {
1249
- "filePath": "linter.ts",
1250
- "line": 77,
1251
- "character": 3
1218
+ "signature": "(property) fixableWarningCount?: number | undefined",
1219
+ "name": "fixableWarningCount",
1220
+ "type": {
1221
+ "__schema": "KeywordTypeSchema",
1222
+ "location": {
1223
+ "filePath": "linter.ts",
1224
+ "line": 67,
1225
+ "character": 25
1226
+ },
1227
+ "name": "number"
1228
+ },
1229
+ "isOptional": true
1252
1230
  },
1253
- "doc": {
1254
- "__schema": "DocSchema",
1231
+ {
1232
+ "__schema": "VariableLikeSchema",
1255
1233
  "location": {
1256
1234
  "filePath": "linter.ts",
1257
- "line": 74,
1235
+ "line": 72,
1258
1236
  "character": 3
1259
1237
  },
1260
- "raw": "/**\n * lint messages.\n */",
1261
- "comment": "lint messages."
1238
+ "doc": {
1239
+ "__schema": "DocSchema",
1240
+ "location": {
1241
+ "filePath": "linter.ts",
1242
+ "line": 69,
1243
+ "character": 3
1244
+ },
1245
+ "raw": "/**\n * number of found warnings.\n */",
1246
+ "comment": "number of found warnings."
1247
+ },
1248
+ "signature": "(property) warningCount: number",
1249
+ "name": "warningCount",
1250
+ "type": {
1251
+ "__schema": "KeywordTypeSchema",
1252
+ "location": {
1253
+ "filePath": "linter.ts",
1254
+ "line": 72,
1255
+ "character": 17
1256
+ },
1257
+ "name": "number"
1258
+ },
1259
+ "isOptional": false
1262
1260
  },
1263
- "signature": "(property) messages: LintMessage[]",
1264
- "name": "messages",
1265
- "type": {
1266
- "__schema": "TypeArraySchema",
1261
+ {
1262
+ "__schema": "VariableLikeSchema",
1267
1263
  "location": {
1268
1264
  "filePath": "linter.ts",
1269
1265
  "line": 77,
1270
- "character": 13
1266
+ "character": 3
1271
1267
  },
1268
+ "doc": {
1269
+ "__schema": "DocSchema",
1270
+ "location": {
1271
+ "filePath": "linter.ts",
1272
+ "line": 74,
1273
+ "character": 3
1274
+ },
1275
+ "raw": "/**\n * lint messages.\n */",
1276
+ "comment": "lint messages."
1277
+ },
1278
+ "signature": "(property) messages: LintMessage[]",
1279
+ "name": "messages",
1272
1280
  "type": {
1273
- "__schema": "TypeRefSchema",
1281
+ "__schema": "TypeArraySchema",
1274
1282
  "location": {
1275
1283
  "filePath": "linter.ts",
1276
1284
  "line": 77,
1277
1285
  "character": 13
1278
1286
  },
1279
- "name": "LintMessage",
1280
- "internalFilePath": "linter.ts"
1281
- }
1282
- },
1283
- "isOptional": false
1284
- },
1285
- {
1286
- "__schema": "VariableLikeSchema",
1287
- "location": {
1288
- "filePath": "linter.ts",
1289
- "line": 82,
1290
- "character": 3
1291
- },
1292
- "doc": {
1293
- "__schema": "DocSchema",
1294
- "location": {
1295
- "filePath": "linter.ts",
1296
- "line": 79,
1297
- "character": 3
1287
+ "type": {
1288
+ "__schema": "TypeRefSchema",
1289
+ "location": {
1290
+ "filePath": "linter.ts",
1291
+ "line": 77,
1292
+ "character": 13
1293
+ },
1294
+ "name": "LintMessage"
1295
+ }
1298
1296
  },
1299
- "raw": "/**\n * Raw data as returned from the linter\n */",
1300
- "comment": "Raw data as returned from the linter"
1297
+ "isOptional": false
1301
1298
  },
1302
- "signature": "(property) raw: any",
1303
- "name": "raw",
1304
- "type": {
1305
- "__schema": "KeywordTypeSchema",
1299
+ {
1300
+ "__schema": "VariableLikeSchema",
1306
1301
  "location": {
1307
1302
  "filePath": "linter.ts",
1308
1303
  "line": 82,
1309
- "character": 8
1304
+ "character": 3
1305
+ },
1306
+ "doc": {
1307
+ "__schema": "DocSchema",
1308
+ "location": {
1309
+ "filePath": "linter.ts",
1310
+ "line": 79,
1311
+ "character": 3
1312
+ },
1313
+ "raw": "/**\n * Raw data as returned from the linter\n */",
1314
+ "comment": "Raw data as returned from the linter"
1315
+ },
1316
+ "signature": "(property) raw: any",
1317
+ "name": "raw",
1318
+ "type": {
1319
+ "__schema": "KeywordTypeSchema",
1320
+ "location": {
1321
+ "filePath": "linter.ts",
1322
+ "line": 82,
1323
+ "character": 8
1324
+ },
1325
+ "name": "any"
1310
1326
  },
1311
- "name": "any"
1312
- },
1313
- "isOptional": false
1314
- }
1315
- ]
1327
+ "isOptional": false
1328
+ }
1329
+ ]
1330
+ }
1316
1331
  }
1317
1332
  },
1318
1333
  {
1319
- "__schema": "TypeSchema",
1334
+ "__schema": "ExportSchema",
1320
1335
  "location": {
1321
- "filePath": "linter.ts",
1336
+ "filePath": "index.ts",
1322
1337
  "line": 5,
1323
- "character": 1
1338
+ "character": 48
1324
1339
  },
1325
- "signature": "type ComponentLintResult = {\n component: Component;\n output: string;\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n results: LintResult[];\n}",
1326
1340
  "name": "ComponentLintResult",
1327
- "type": {
1328
- "__schema": "TypeLiteralSchema",
1341
+ "exportNode": {
1342
+ "__schema": "TypeSchema",
1329
1343
  "location": {
1330
1344
  "filePath": "linter.ts",
1331
1345
  "line": 5,
1332
- "character": 35
1346
+ "character": 1
1333
1347
  },
1334
- "members": [
1335
- {
1336
- "__schema": "VariableLikeSchema",
1337
- "location": {
1338
- "filePath": "linter.ts",
1339
- "line": 9,
1340
- "character": 3
1341
- },
1342
- "doc": {
1343
- "__schema": "DocSchema",
1344
- "location": {
1345
- "filePath": "linter.ts",
1346
- "line": 6,
1347
- "character": 3
1348
- },
1349
- "raw": "/**\n * the linted component.\n */",
1350
- "comment": "the linted component."
1351
- },
1352
- "signature": "(property) component: Component",
1353
- "name": "component",
1354
- "type": {
1355
- "__schema": "TypeRefSchema",
1348
+ "signature": "type ComponentLintResult = {\n component: Component;\n output: string;\n totalErrorCount: number;\n totalFatalErrorCount?: number | undefined;\n totalFixableErrorCount?: number | undefined;\n totalFixableWarningCount?: number | undefined;\n totalWarningCount: number;\n results: LintResult[];\n}",
1349
+ "name": "ComponentLintResult",
1350
+ "type": {
1351
+ "__schema": "TypeLiteralSchema",
1352
+ "location": {
1353
+ "filePath": "linter.ts",
1354
+ "line": 5,
1355
+ "character": 35
1356
+ },
1357
+ "members": [
1358
+ {
1359
+ "__schema": "VariableLikeSchema",
1356
1360
  "location": {
1357
1361
  "filePath": "linter.ts",
1358
1362
  "line": 9,
1359
1363
  "character": 3
1360
1364
  },
1361
- "name": "Component",
1362
- "componentId": {
1363
- "scope": "teambit.component",
1364
- "name": "component"
1365
- }
1366
- },
1367
- "isOptional": false
1368
- },
1369
- {
1370
- "__schema": "VariableLikeSchema",
1371
- "location": {
1372
- "filePath": "linter.ts",
1373
- "line": 14,
1374
- "character": 3
1375
- },
1376
- "doc": {
1377
- "__schema": "DocSchema",
1378
- "location": {
1379
- "filePath": "linter.ts",
1380
- "line": 11,
1381
- "character": 3
1365
+ "doc": {
1366
+ "__schema": "DocSchema",
1367
+ "location": {
1368
+ "filePath": "linter.ts",
1369
+ "line": 6,
1370
+ "character": 3
1371
+ },
1372
+ "raw": "/**\n * the linted component.\n */",
1373
+ "comment": "the linted component."
1382
1374
  },
1383
- "raw": "/**\n * CLI output of the linter.\n */",
1384
- "comment": "CLI output of the linter."
1385
- },
1386
- "signature": "(property) output: string",
1387
- "name": "output",
1388
- "type": {
1389
- "__schema": "KeywordTypeSchema",
1390
- "location": {
1391
- "filePath": "linter.ts",
1392
- "line": 14,
1393
- "character": 11
1375
+ "signature": "(property) component: Component",
1376
+ "name": "component",
1377
+ "type": {
1378
+ "__schema": "TypeRefSchema",
1379
+ "location": {
1380
+ "filePath": "linter.ts",
1381
+ "line": 9,
1382
+ "character": 3
1383
+ },
1384
+ "name": "Component",
1385
+ "componentId": {
1386
+ "scope": "teambit.component",
1387
+ "name": "component"
1388
+ }
1394
1389
  },
1395
- "name": "string"
1396
- },
1397
- "isOptional": false
1398
- },
1399
- {
1400
- "__schema": "VariableLikeSchema",
1401
- "location": {
1402
- "filePath": "linter.ts",
1403
- "line": 19,
1404
- "character": 3
1390
+ "isOptional": false
1405
1391
  },
1406
- "doc": {
1407
- "__schema": "DocSchema",
1392
+ {
1393
+ "__schema": "VariableLikeSchema",
1408
1394
  "location": {
1409
1395
  "filePath": "linter.ts",
1410
- "line": 16,
1396
+ "line": 14,
1411
1397
  "character": 3
1412
1398
  },
1413
- "raw": "/**\n * total errors count of the component (from all of the files).\n */",
1414
- "comment": "total errors count of the component (from all of the files)."
1415
- },
1416
- "signature": "(property) totalErrorCount: number",
1417
- "name": "totalErrorCount",
1418
- "type": {
1419
- "__schema": "KeywordTypeSchema",
1420
- "location": {
1421
- "filePath": "linter.ts",
1422
- "line": 19,
1423
- "character": 20
1399
+ "doc": {
1400
+ "__schema": "DocSchema",
1401
+ "location": {
1402
+ "filePath": "linter.ts",
1403
+ "line": 11,
1404
+ "character": 3
1405
+ },
1406
+ "raw": "/**\n * CLI output of the linter.\n */",
1407
+ "comment": "CLI output of the linter."
1424
1408
  },
1425
- "name": "number"
1426
- },
1427
- "isOptional": false
1428
- },
1429
- {
1430
- "__schema": "VariableLikeSchema",
1431
- "location": {
1432
- "filePath": "linter.ts",
1433
- "line": 23,
1434
- "character": 3
1409
+ "signature": "(property) output: string",
1410
+ "name": "output",
1411
+ "type": {
1412
+ "__schema": "KeywordTypeSchema",
1413
+ "location": {
1414
+ "filePath": "linter.ts",
1415
+ "line": 14,
1416
+ "character": 11
1417
+ },
1418
+ "name": "string"
1419
+ },
1420
+ "isOptional": false
1435
1421
  },
1436
- "doc": {
1437
- "__schema": "DocSchema",
1422
+ {
1423
+ "__schema": "VariableLikeSchema",
1438
1424
  "location": {
1439
1425
  "filePath": "linter.ts",
1440
- "line": 20,
1426
+ "line": 19,
1441
1427
  "character": 3
1442
1428
  },
1443
- "raw": "/**\n * total fatal errors count of the component (from all of the files).\n */",
1444
- "comment": "total fatal errors count of the component (from all of the files)."
1445
- },
1446
- "signature": "(property) totalFatalErrorCount?: number | undefined",
1447
- "name": "totalFatalErrorCount",
1448
- "type": {
1449
- "__schema": "KeywordTypeSchema",
1450
- "location": {
1451
- "filePath": "linter.ts",
1452
- "line": 23,
1453
- "character": 26
1429
+ "doc": {
1430
+ "__schema": "DocSchema",
1431
+ "location": {
1432
+ "filePath": "linter.ts",
1433
+ "line": 16,
1434
+ "character": 3
1435
+ },
1436
+ "raw": "/**\n * total errors count of the component (from all of the files).\n */",
1437
+ "comment": "total errors count of the component (from all of the files)."
1454
1438
  },
1455
- "name": "number"
1456
- },
1457
- "isOptional": true
1458
- },
1459
- {
1460
- "__schema": "VariableLikeSchema",
1461
- "location": {
1462
- "filePath": "linter.ts",
1463
- "line": 27,
1464
- "character": 3
1439
+ "signature": "(property) totalErrorCount: number",
1440
+ "name": "totalErrorCount",
1441
+ "type": {
1442
+ "__schema": "KeywordTypeSchema",
1443
+ "location": {
1444
+ "filePath": "linter.ts",
1445
+ "line": 19,
1446
+ "character": 20
1447
+ },
1448
+ "name": "number"
1449
+ },
1450
+ "isOptional": false
1465
1451
  },
1466
- "doc": {
1467
- "__schema": "DocSchema",
1452
+ {
1453
+ "__schema": "VariableLikeSchema",
1468
1454
  "location": {
1469
1455
  "filePath": "linter.ts",
1470
- "line": 24,
1456
+ "line": 23,
1471
1457
  "character": 3
1472
1458
  },
1473
- "raw": "/**\n * total fixable errors count of the component (from all of the files).\n */",
1474
- "comment": "total fixable errors count of the component (from all of the files)."
1475
- },
1476
- "signature": "(property) totalFixableErrorCount?: number | undefined",
1477
- "name": "totalFixableErrorCount",
1478
- "type": {
1479
- "__schema": "KeywordTypeSchema",
1480
- "location": {
1481
- "filePath": "linter.ts",
1482
- "line": 27,
1483
- "character": 28
1459
+ "doc": {
1460
+ "__schema": "DocSchema",
1461
+ "location": {
1462
+ "filePath": "linter.ts",
1463
+ "line": 20,
1464
+ "character": 3
1465
+ },
1466
+ "raw": "/**\n * total fatal errors count of the component (from all of the files).\n */",
1467
+ "comment": "total fatal errors count of the component (from all of the files)."
1484
1468
  },
1485
- "name": "number"
1486
- },
1487
- "isOptional": true
1488
- },
1489
- {
1490
- "__schema": "VariableLikeSchema",
1491
- "location": {
1492
- "filePath": "linter.ts",
1493
- "line": 31,
1494
- "character": 3
1469
+ "signature": "(property) totalFatalErrorCount?: number | undefined",
1470
+ "name": "totalFatalErrorCount",
1471
+ "type": {
1472
+ "__schema": "KeywordTypeSchema",
1473
+ "location": {
1474
+ "filePath": "linter.ts",
1475
+ "line": 23,
1476
+ "character": 26
1477
+ },
1478
+ "name": "number"
1479
+ },
1480
+ "isOptional": true
1495
1481
  },
1496
- "doc": {
1497
- "__schema": "DocSchema",
1482
+ {
1483
+ "__schema": "VariableLikeSchema",
1498
1484
  "location": {
1499
1485
  "filePath": "linter.ts",
1500
- "line": 28,
1486
+ "line": 27,
1501
1487
  "character": 3
1502
1488
  },
1503
- "raw": "/**\n * total fatal warning count of the component (from all of the files).\n */",
1504
- "comment": "total fatal warning count of the component (from all of the files)."
1505
- },
1506
- "signature": "(property) totalFixableWarningCount?: number | undefined",
1507
- "name": "totalFixableWarningCount",
1508
- "type": {
1509
- "__schema": "KeywordTypeSchema",
1510
- "location": {
1511
- "filePath": "linter.ts",
1512
- "line": 31,
1513
- "character": 30
1489
+ "doc": {
1490
+ "__schema": "DocSchema",
1491
+ "location": {
1492
+ "filePath": "linter.ts",
1493
+ "line": 24,
1494
+ "character": 3
1495
+ },
1496
+ "raw": "/**\n * total fixable errors count of the component (from all of the files).\n */",
1497
+ "comment": "total fixable errors count of the component (from all of the files)."
1514
1498
  },
1515
- "name": "number"
1516
- },
1517
- "isOptional": true
1518
- },
1519
- {
1520
- "__schema": "VariableLikeSchema",
1521
- "location": {
1522
- "filePath": "linter.ts",
1523
- "line": 35,
1524
- "character": 3
1499
+ "signature": "(property) totalFixableErrorCount?: number | undefined",
1500
+ "name": "totalFixableErrorCount",
1501
+ "type": {
1502
+ "__schema": "KeywordTypeSchema",
1503
+ "location": {
1504
+ "filePath": "linter.ts",
1505
+ "line": 27,
1506
+ "character": 28
1507
+ },
1508
+ "name": "number"
1509
+ },
1510
+ "isOptional": true
1525
1511
  },
1526
- "doc": {
1527
- "__schema": "DocSchema",
1512
+ {
1513
+ "__schema": "VariableLikeSchema",
1528
1514
  "location": {
1529
1515
  "filePath": "linter.ts",
1530
- "line": 32,
1516
+ "line": 31,
1531
1517
  "character": 3
1532
1518
  },
1533
- "raw": "/**\n * total warning count of the component (from all of the files).\n */",
1534
- "comment": "total warning count of the component (from all of the files)."
1535
- },
1536
- "signature": "(property) totalWarningCount: number",
1537
- "name": "totalWarningCount",
1538
- "type": {
1539
- "__schema": "KeywordTypeSchema",
1540
- "location": {
1541
- "filePath": "linter.ts",
1542
- "line": 35,
1543
- "character": 22
1519
+ "doc": {
1520
+ "__schema": "DocSchema",
1521
+ "location": {
1522
+ "filePath": "linter.ts",
1523
+ "line": 28,
1524
+ "character": 3
1525
+ },
1526
+ "raw": "/**\n * total fatal warning count of the component (from all of the files).\n */",
1527
+ "comment": "total fatal warning count of the component (from all of the files)."
1544
1528
  },
1545
- "name": "number"
1546
- },
1547
- "isOptional": false
1548
- },
1549
- {
1550
- "__schema": "VariableLikeSchema",
1551
- "location": {
1552
- "filePath": "linter.ts",
1553
- "line": 40,
1554
- "character": 3
1529
+ "signature": "(property) totalFixableWarningCount?: number | undefined",
1530
+ "name": "totalFixableWarningCount",
1531
+ "type": {
1532
+ "__schema": "KeywordTypeSchema",
1533
+ "location": {
1534
+ "filePath": "linter.ts",
1535
+ "line": 31,
1536
+ "character": 30
1537
+ },
1538
+ "name": "number"
1539
+ },
1540
+ "isOptional": true
1555
1541
  },
1556
- "doc": {
1557
- "__schema": "DocSchema",
1542
+ {
1543
+ "__schema": "VariableLikeSchema",
1558
1544
  "location": {
1559
1545
  "filePath": "linter.ts",
1560
- "line": 37,
1546
+ "line": 35,
1561
1547
  "character": 3
1562
1548
  },
1563
- "raw": "/**\n * lint results for each one of the component files\n */",
1564
- "comment": "lint results for each one of the component files"
1549
+ "doc": {
1550
+ "__schema": "DocSchema",
1551
+ "location": {
1552
+ "filePath": "linter.ts",
1553
+ "line": 32,
1554
+ "character": 3
1555
+ },
1556
+ "raw": "/**\n * total warning count of the component (from all of the files).\n */",
1557
+ "comment": "total warning count of the component (from all of the files)."
1558
+ },
1559
+ "signature": "(property) totalWarningCount: number",
1560
+ "name": "totalWarningCount",
1561
+ "type": {
1562
+ "__schema": "KeywordTypeSchema",
1563
+ "location": {
1564
+ "filePath": "linter.ts",
1565
+ "line": 35,
1566
+ "character": 22
1567
+ },
1568
+ "name": "number"
1569
+ },
1570
+ "isOptional": false
1565
1571
  },
1566
- "signature": "(property) results: LintResult[]",
1567
- "name": "results",
1568
- "type": {
1569
- "__schema": "TypeArraySchema",
1572
+ {
1573
+ "__schema": "VariableLikeSchema",
1570
1574
  "location": {
1571
1575
  "filePath": "linter.ts",
1572
1576
  "line": 40,
1573
- "character": 12
1577
+ "character": 3
1578
+ },
1579
+ "doc": {
1580
+ "__schema": "DocSchema",
1581
+ "location": {
1582
+ "filePath": "linter.ts",
1583
+ "line": 37,
1584
+ "character": 3
1585
+ },
1586
+ "raw": "/**\n * lint results for each one of the component files\n */",
1587
+ "comment": "lint results for each one of the component files"
1574
1588
  },
1589
+ "signature": "(property) results: LintResult[]",
1590
+ "name": "results",
1575
1591
  "type": {
1576
- "__schema": "TypeRefSchema",
1592
+ "__schema": "TypeArraySchema",
1577
1593
  "location": {
1578
1594
  "filePath": "linter.ts",
1579
1595
  "line": 40,
1580
1596
  "character": 12
1581
1597
  },
1582
- "name": "LintResult"
1583
- }
1584
- },
1585
- "isOptional": false
1586
- }
1587
- ]
1598
+ "type": {
1599
+ "__schema": "TypeRefSchema",
1600
+ "location": {
1601
+ "filePath": "linter.ts",
1602
+ "line": 40,
1603
+ "character": 12
1604
+ },
1605
+ "name": "LintResult"
1606
+ }
1607
+ },
1608
+ "isOptional": false
1609
+ }
1610
+ ]
1611
+ }
1588
1612
  }
1589
1613
  },
1590
1614
  {
1591
- "__schema": "ClassSchema",
1615
+ "__schema": "ExportSchema",
1592
1616
  "location": {
1593
- "filePath": "lint.task.ts",
1594
- "line": 8,
1595
- "character": 1
1617
+ "filePath": "index.ts",
1618
+ "line": 6,
1619
+ "character": 15
1596
1620
  },
1597
- "signature": "class LintTask",
1598
1621
  "name": "LintTask",
1599
- "members": [
1600
- {
1601
- "__schema": "ConstructorSchema",
1602
- "location": {
1603
- "filePath": "lint.task.ts",
1604
- "line": 9,
1605
- "character": 3
1606
- },
1607
- "signature": "constructor LintTask(aspectId: string, name?: string): LintTask",
1608
- "name": "constructor",
1609
- "params": [
1610
- {
1611
- "__schema": "ParameterSchema",
1612
- "location": {
1613
- "filePath": "lint.task.ts",
1614
- "line": 9,
1615
- "character": 15
1616
- },
1617
- "name": "aspectId",
1618
- "type": {
1619
- "__schema": "KeywordTypeSchema",
1622
+ "exportNode": {
1623
+ "__schema": "ClassSchema",
1624
+ "location": {
1625
+ "filePath": "lint.task.ts",
1626
+ "line": 8,
1627
+ "character": 1
1628
+ },
1629
+ "signature": "class LintTask",
1630
+ "name": "LintTask",
1631
+ "members": [
1632
+ {
1633
+ "__schema": "ConstructorSchema",
1634
+ "location": {
1635
+ "filePath": "lint.task.ts",
1636
+ "line": 9,
1637
+ "character": 3
1638
+ },
1639
+ "signature": "constructor LintTask(aspectId: string, name?: string): LintTask",
1640
+ "name": "constructor",
1641
+ "params": [
1642
+ {
1643
+ "__schema": "ParameterSchema",
1620
1644
  "location": {
1621
1645
  "filePath": "lint.task.ts",
1622
1646
  "line": 9,
1623
- "character": 34
1647
+ "character": 15
1624
1648
  },
1625
- "name": "string"
1626
- },
1627
- "isOptional": false,
1628
- "isSpread": false
1629
- },
1630
- {
1631
- "__schema": "ParameterSchema",
1632
- "location": {
1633
- "filePath": "lint.task.ts",
1634
- "line": 9,
1635
- "character": 42
1649
+ "name": "aspectId",
1650
+ "type": {
1651
+ "__schema": "KeywordTypeSchema",
1652
+ "location": {
1653
+ "filePath": "lint.task.ts",
1654
+ "line": 9,
1655
+ "character": 34
1656
+ },
1657
+ "name": "string"
1658
+ },
1659
+ "isOptional": false,
1660
+ "isSpread": false
1636
1661
  },
1637
- "name": "name",
1638
- "type": {
1639
- "__schema": "InferenceTypeSchema",
1662
+ {
1663
+ "__schema": "ParameterSchema",
1640
1664
  "location": {
1641
1665
  "filePath": "lint.task.ts",
1642
1666
  "line": 9,
1643
1667
  "character": 42
1644
1668
  },
1645
- "type": "string"
1646
- },
1647
- "isOptional": true,
1648
- "defaultValue": "'lint'",
1649
- "isSpread": false
1650
- }
1651
- ],
1652
- "returnType": {
1653
- "__schema": "ThisTypeSchema",
1654
- "location": {
1655
- "filePath": "lint.task.ts",
1656
- "line": 8,
1657
- "character": 1
1658
- },
1659
- "name": "LintTask"
1660
- },
1661
- "modifiers": []
1662
- },
1663
- {
1664
- "__schema": "FunctionLikeSchema",
1665
- "location": {
1666
- "filePath": "lint.task.ts",
1667
- "line": 11,
1668
- "character": 3
1669
- },
1670
- "signature": "(method) LintTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
1671
- "name": "execute",
1672
- "params": [
1673
- {
1674
- "__schema": "ParameterSchema",
1669
+ "name": "name",
1670
+ "type": {
1671
+ "__schema": "InferenceTypeSchema",
1672
+ "location": {
1673
+ "filePath": "lint.task.ts",
1674
+ "line": 9,
1675
+ "character": 42
1676
+ },
1677
+ "type": "string"
1678
+ },
1679
+ "isOptional": true,
1680
+ "defaultValue": "'lint'",
1681
+ "isSpread": false
1682
+ }
1683
+ ],
1684
+ "returnType": {
1685
+ "__schema": "ThisTypeSchema",
1675
1686
  "location": {
1676
1687
  "filePath": "lint.task.ts",
1677
- "line": 11,
1678
- "character": 17
1679
- },
1680
- "name": "context",
1681
- "type": {
1682
- "__schema": "TypeRefSchema",
1683
- "location": {
1684
- "filePath": "lint.task.ts",
1685
- "line": 11,
1686
- "character": 26
1687
- },
1688
- "name": "BuildContext",
1689
- "componentId": {
1690
- "scope": "teambit.pipelines",
1691
- "name": "builder"
1692
- }
1688
+ "line": 8,
1689
+ "character": 1
1693
1690
  },
1694
- "isOptional": false,
1695
- "isSpread": false
1696
- }
1697
- ],
1698
- "returnType": {
1699
- "__schema": "TypeRefSchema",
1691
+ "name": "LintTask"
1692
+ },
1693
+ "modifiers": []
1694
+ },
1695
+ {
1696
+ "__schema": "FunctionLikeSchema",
1700
1697
  "location": {
1701
1698
  "filePath": "lint.task.ts",
1702
1699
  "line": 11,
1703
- "character": 41
1700
+ "character": 3
1704
1701
  },
1705
- "name": "Promise",
1706
- "typeArgs": [
1702
+ "signature": "(method) LintTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
1703
+ "name": "execute",
1704
+ "params": [
1707
1705
  {
1708
- "__schema": "TypeRefSchema",
1706
+ "__schema": "ParameterSchema",
1709
1707
  "location": {
1710
1708
  "filePath": "lint.task.ts",
1711
1709
  "line": 11,
1712
- "character": 49
1710
+ "character": 17
1713
1711
  },
1714
- "name": "BuiltTaskResult",
1715
- "componentId": {
1716
- "scope": "teambit.pipelines",
1717
- "name": "builder"
1718
- }
1712
+ "name": "context",
1713
+ "type": {
1714
+ "__schema": "TypeRefSchema",
1715
+ "location": {
1716
+ "filePath": "lint.task.ts",
1717
+ "line": 11,
1718
+ "character": 26
1719
+ },
1720
+ "name": "BuildContext"
1721
+ },
1722
+ "isOptional": false,
1723
+ "isSpread": false
1719
1724
  }
1725
+ ],
1726
+ "returnType": {
1727
+ "__schema": "TypeRefSchema",
1728
+ "location": {
1729
+ "filePath": "lint.task.ts",
1730
+ "line": 11,
1731
+ "character": 41
1732
+ },
1733
+ "name": "Promise",
1734
+ "typeArgs": [
1735
+ {
1736
+ "__schema": "TypeRefSchema",
1737
+ "location": {
1738
+ "filePath": "lint.task.ts",
1739
+ "line": 11,
1740
+ "character": 49
1741
+ },
1742
+ "name": "BuiltTaskResult"
1743
+ }
1744
+ ]
1745
+ },
1746
+ "modifiers": [
1747
+ "async"
1720
1748
  ]
1721
- },
1722
- "modifiers": [
1723
- "async"
1724
- ]
1725
- }
1726
- ],
1727
- "extendsNodes": [],
1728
- "implementNodes": [
1729
- {
1730
- "__schema": "ExpressionWithTypeArgumentsSchema",
1731
- "location": {
1732
- "filePath": "lint.task.ts",
1733
- "line": 8,
1734
- "character": 34
1735
- },
1736
- "name": "implements BuildTask",
1737
- "typeArgs": [],
1738
- "expression": {
1739
- "__schema": "TypeRefSchema",
1749
+ }
1750
+ ],
1751
+ "extendsNodes": [],
1752
+ "implementNodes": [
1753
+ {
1754
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1740
1755
  "location": {
1741
1756
  "filePath": "lint.task.ts",
1742
1757
  "line": 8,
1743
1758
  "character": 34
1744
1759
  },
1745
- "name": "BuildTask",
1746
- "componentId": {
1747
- "_legacy": {
1748
- "scope": "teambit.defender",
1749
- "name": "linter",
1750
- "version": "1.0.256"
1760
+ "name": "implements BuildTask",
1761
+ "typeArgs": [],
1762
+ "expression": {
1763
+ "__schema": "TypeRefSchema",
1764
+ "location": {
1765
+ "filePath": "lint.task.ts",
1766
+ "line": 8,
1767
+ "character": 34
1751
1768
  },
1752
- "_scope": "teambit.defender"
1769
+ "name": "BuildTask",
1770
+ "componentId": {
1771
+ "_legacy": {
1772
+ "scope": "teambit.defender",
1773
+ "name": "linter",
1774
+ "version": "1.0.258"
1775
+ },
1776
+ "_scope": "teambit.defender"
1777
+ }
1753
1778
  }
1754
1779
  }
1755
- }
1756
- ]
1780
+ ]
1781
+ }
1757
1782
  },
1758
1783
  {
1759
- "__schema": "InterfaceSchema",
1784
+ "__schema": "ExportSchema",
1760
1785
  "location": {
1761
- "filePath": "linter-context.ts",
1762
- "line": 23,
1763
- "character": 1
1786
+ "filePath": "index.ts",
1787
+ "line": 7,
1788
+ "character": 15
1764
1789
  },
1765
- "signature": "interface LinterContext",
1766
1790
  "name": "LinterContext",
1767
- "members": [
1768
- {
1769
- "__schema": "VariableLikeSchema",
1770
- "location": {
1771
- "filePath": "linter-context.ts",
1772
- "line": 24,
1773
- "character": 3
1774
- },
1775
- "signature": "(property) LinterContext.quiet?: boolean | undefined",
1776
- "name": "quiet",
1777
- "type": {
1778
- "__schema": "KeywordTypeSchema",
1779
- "location": {
1780
- "filePath": "linter-context.ts",
1781
- "line": 24,
1782
- "character": 11
1783
- },
1784
- "name": "boolean"
1785
- },
1786
- "isOptional": true
1791
+ "exportNode": {
1792
+ "__schema": "InterfaceSchema",
1793
+ "location": {
1794
+ "filePath": "linter-context.ts",
1795
+ "line": 23,
1796
+ "character": 1
1787
1797
  },
1788
- {
1789
- "__schema": "VariableLikeSchema",
1790
- "location": {
1791
- "filePath": "linter-context.ts",
1792
- "line": 29,
1793
- "character": 3
1794
- },
1795
- "doc": {
1796
- "__schema": "DocSchema",
1798
+ "signature": "interface LinterContext",
1799
+ "name": "LinterContext",
1800
+ "members": [
1801
+ {
1802
+ "__schema": "VariableLikeSchema",
1797
1803
  "location": {
1798
1804
  "filePath": "linter-context.ts",
1799
- "line": 25,
1805
+ "line": 24,
1800
1806
  "character": 3
1801
1807
  },
1802
- "raw": "/**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */",
1803
- "comment": "Root dir that contains all the components in the fs that are about to be linted\nUsually it's the workspace root dir or the capsule root dir"
1804
- },
1805
- "signature": "(property) LinterContext.rootDir?: string | undefined",
1806
- "name": "rootDir",
1807
- "type": {
1808
- "__schema": "KeywordTypeSchema",
1809
- "location": {
1810
- "filePath": "linter-context.ts",
1811
- "line": 29,
1812
- "character": 13
1808
+ "signature": "(property) LinterContext.quiet?: boolean | undefined",
1809
+ "name": "quiet",
1810
+ "type": {
1811
+ "__schema": "KeywordTypeSchema",
1812
+ "location": {
1813
+ "filePath": "linter-context.ts",
1814
+ "line": 24,
1815
+ "character": 11
1816
+ },
1817
+ "name": "boolean"
1813
1818
  },
1814
- "name": "string"
1815
- },
1816
- "isOptional": true
1817
- },
1818
- {
1819
- "__schema": "VariableLikeSchema",
1820
- "location": {
1821
- "filePath": "linter-context.ts",
1822
- "line": 34,
1823
- "character": 3
1819
+ "isOptional": true
1824
1820
  },
1825
- "doc": {
1826
- "__schema": "DocSchema",
1821
+ {
1822
+ "__schema": "VariableLikeSchema",
1827
1823
  "location": {
1828
1824
  "filePath": "linter-context.ts",
1829
- "line": 31,
1825
+ "line": 29,
1830
1826
  "character": 3
1831
1827
  },
1832
- "raw": "/**\n * Component map with the path to the component in the fs\n */",
1833
- "comment": "Component map with the path to the component in the fs"
1828
+ "doc": {
1829
+ "__schema": "DocSchema",
1830
+ "location": {
1831
+ "filePath": "linter-context.ts",
1832
+ "line": 25,
1833
+ "character": 3
1834
+ },
1835
+ "raw": "/**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */",
1836
+ "comment": "Root dir that contains all the components in the fs that are about to be linted\nUsually it's the workspace root dir or the capsule root dir"
1837
+ },
1838
+ "signature": "(property) LinterContext.rootDir?: string | undefined",
1839
+ "name": "rootDir",
1840
+ "type": {
1841
+ "__schema": "KeywordTypeSchema",
1842
+ "location": {
1843
+ "filePath": "linter-context.ts",
1844
+ "line": 29,
1845
+ "character": 13
1846
+ },
1847
+ "name": "string"
1848
+ },
1849
+ "isOptional": true
1834
1850
  },
1835
- "signature": "(property) LinterContext.componentsDirMap: ComponentMap<string>",
1836
- "name": "componentsDirMap",
1837
- "type": {
1838
- "__schema": "TypeRefSchema",
1851
+ {
1852
+ "__schema": "VariableLikeSchema",
1839
1853
  "location": {
1840
1854
  "filePath": "linter-context.ts",
1841
1855
  "line": 34,
1842
- "character": 21
1856
+ "character": 3
1843
1857
  },
1844
- "name": "ComponentMap",
1845
- "componentId": {
1846
- "scope": "teambit.component",
1847
- "name": "component"
1858
+ "doc": {
1859
+ "__schema": "DocSchema",
1860
+ "location": {
1861
+ "filePath": "linter-context.ts",
1862
+ "line": 31,
1863
+ "character": 3
1864
+ },
1865
+ "raw": "/**\n * Component map with the path to the component in the fs\n */",
1866
+ "comment": "Component map with the path to the component in the fs"
1848
1867
  },
1849
- "typeArgs": [
1850
- {
1851
- "__schema": "KeywordTypeSchema",
1852
- "location": {
1853
- "filePath": "linter-context.ts",
1854
- "line": 34,
1855
- "character": 34
1856
- },
1857
- "name": "string"
1858
- }
1859
- ]
1860
- },
1861
- "isOptional": false
1862
- }
1863
- ],
1864
- "extendsNodes": [
1865
- {
1866
- "__schema": "ExpressionWithTypeArgumentsSchema",
1867
- "location": {
1868
- "filePath": "linter-context.ts",
1869
- "line": 23,
1870
- "character": 40
1871
- },
1872
- "name": "extends ExecutionContext, LinterOptions",
1873
- "typeArgs": [],
1874
- "expression": {
1875
- "__schema": "TypeRefSchema",
1868
+ "signature": "(property) LinterContext.componentsDirMap: ComponentMap<string>",
1869
+ "name": "componentsDirMap",
1870
+ "type": {
1871
+ "__schema": "TypeRefSchema",
1872
+ "location": {
1873
+ "filePath": "linter-context.ts",
1874
+ "line": 34,
1875
+ "character": 21
1876
+ },
1877
+ "name": "ComponentMap",
1878
+ "typeArgs": [
1879
+ {
1880
+ "__schema": "KeywordTypeSchema",
1881
+ "location": {
1882
+ "filePath": "linter-context.ts",
1883
+ "line": 34,
1884
+ "character": 34
1885
+ },
1886
+ "name": "string"
1887
+ }
1888
+ ]
1889
+ },
1890
+ "isOptional": false
1891
+ }
1892
+ ],
1893
+ "extendsNodes": [
1894
+ {
1895
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1876
1896
  "location": {
1877
1897
  "filePath": "linter-context.ts",
1878
1898
  "line": 23,
1879
1899
  "character": 40
1880
1900
  },
1881
- "name": "ExecutionContext",
1882
- "componentId": {
1883
- "_legacy": {
1884
- "scope": "teambit.defender",
1885
- "name": "linter",
1886
- "version": "1.0.256"
1901
+ "name": "extends ExecutionContext, LinterOptions",
1902
+ "typeArgs": [],
1903
+ "expression": {
1904
+ "__schema": "TypeRefSchema",
1905
+ "location": {
1906
+ "filePath": "linter-context.ts",
1907
+ "line": 23,
1908
+ "character": 40
1887
1909
  },
1888
- "_scope": "teambit.defender"
1910
+ "name": "ExecutionContext",
1911
+ "componentId": {
1912
+ "_legacy": {
1913
+ "scope": "teambit.defender",
1914
+ "name": "linter",
1915
+ "version": "1.0.258"
1916
+ },
1917
+ "_scope": "teambit.defender"
1918
+ }
1889
1919
  }
1890
- }
1891
- },
1892
- {
1893
- "__schema": "ExpressionWithTypeArgumentsSchema",
1894
- "location": {
1895
- "filePath": "linter-context.ts",
1896
- "line": 23,
1897
- "character": 58
1898
1920
  },
1899
- "name": "extends ExecutionContext, LinterOptions",
1900
- "typeArgs": [],
1901
- "expression": {
1902
- "__schema": "InterfaceSchema",
1921
+ {
1922
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1903
1923
  "location": {
1904
1924
  "filePath": "linter-context.ts",
1905
- "line": 7,
1906
- "character": 1
1925
+ "line": 23,
1926
+ "character": 58
1907
1927
  },
1908
- "name": "LinterOptions",
1909
- "signature": "interface LinterOptions",
1910
- "extendsNodes": [],
1911
- "members": [
1912
- {
1913
- "__schema": "VariableLikeSchema",
1914
- "location": {
1915
- "filePath": "linter-context.ts",
1916
- "line": 11,
1917
- "character": 3
1918
- },
1919
- "name": "extensionFormats",
1920
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
1921
- "isOptional": true,
1922
- "type": {
1923
- "__schema": "TypeArraySchema",
1928
+ "name": "extends ExecutionContext, LinterOptions",
1929
+ "typeArgs": [],
1930
+ "expression": {
1931
+ "__schema": "InterfaceSchema",
1932
+ "location": {
1933
+ "filePath": "linter-context.ts",
1934
+ "line": 7,
1935
+ "character": 1
1936
+ },
1937
+ "name": "LinterOptions",
1938
+ "signature": "interface LinterOptions",
1939
+ "extendsNodes": [],
1940
+ "members": [
1941
+ {
1942
+ "__schema": "VariableLikeSchema",
1924
1943
  "location": {
1925
1944
  "filePath": "linter-context.ts",
1926
1945
  "line": 11,
1927
- "character": 22
1946
+ "character": 3
1928
1947
  },
1948
+ "name": "extensionFormats",
1949
+ "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
1950
+ "isOptional": true,
1929
1951
  "type": {
1930
- "__schema": "KeywordTypeSchema",
1952
+ "__schema": "TypeArraySchema",
1931
1953
  "location": {
1932
1954
  "filePath": "linter-context.ts",
1933
1955
  "line": 11,
1934
1956
  "character": 22
1935
1957
  },
1936
- "name": "string"
1937
- }
1938
- },
1939
- "doc": {
1940
- "__schema": "DocSchema",
1941
- "location": {
1942
- "filePath": "linter-context.ts",
1943
- "line": 8,
1944
- "character": 3
1945
- },
1946
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
1947
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
1948
- }
1949
- },
1950
- {
1951
- "__schema": "VariableLikeSchema",
1952
- "location": {
1953
- "filePath": "linter-context.ts",
1954
- "line": 16,
1955
- "character": 3
1956
- },
1957
- "name": "fix",
1958
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
1959
- "isOptional": true,
1960
- "type": {
1961
- "__schema": "KeywordTypeSchema",
1962
- "location": {
1963
- "filePath": "linter-context.ts",
1964
- "line": 16,
1965
- "character": 9
1966
- },
1967
- "name": "boolean"
1968
- },
1969
- "doc": {
1970
- "__schema": "DocSchema",
1971
- "location": {
1972
- "filePath": "linter-context.ts",
1973
- "line": 13,
1974
- "character": 3
1958
+ "type": {
1959
+ "__schema": "KeywordTypeSchema",
1960
+ "location": {
1961
+ "filePath": "linter-context.ts",
1962
+ "line": 11,
1963
+ "character": 22
1964
+ },
1965
+ "name": "string"
1966
+ }
1975
1967
  },
1976
- "raw": "/**\n * automatically fix problems\n */",
1977
- "comment": "automatically fix problems"
1978
- }
1979
- },
1980
- {
1981
- "__schema": "VariableLikeSchema",
1982
- "location": {
1983
- "filePath": "linter-context.ts",
1984
- "line": 21,
1985
- "character": 3
1968
+ "doc": {
1969
+ "__schema": "DocSchema",
1970
+ "location": {
1971
+ "filePath": "linter-context.ts",
1972
+ "line": 8,
1973
+ "character": 3
1974
+ },
1975
+ "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
1976
+ "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
1977
+ }
1986
1978
  },
1987
- "name": "fixTypes",
1988
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
1989
- "isOptional": true,
1990
- "type": {
1991
- "__schema": "TypeRefSchema",
1979
+ {
1980
+ "__schema": "VariableLikeSchema",
1992
1981
  "location": {
1993
1982
  "filePath": "linter-context.ts",
1994
- "line": 21,
1995
- "character": 14
1983
+ "line": 16,
1984
+ "character": 3
1985
+ },
1986
+ "name": "fix",
1987
+ "signature": "(property) LinterOptions.fix?: boolean | undefined",
1988
+ "isOptional": true,
1989
+ "type": {
1990
+ "__schema": "KeywordTypeSchema",
1991
+ "location": {
1992
+ "filePath": "linter-context.ts",
1993
+ "line": 16,
1994
+ "character": 9
1995
+ },
1996
+ "name": "boolean"
1996
1997
  },
1997
- "name": "FixTypes",
1998
- "internalFilePath": "linter-context.ts"
1998
+ "doc": {
1999
+ "__schema": "DocSchema",
2000
+ "location": {
2001
+ "filePath": "linter-context.ts",
2002
+ "line": 13,
2003
+ "character": 3
2004
+ },
2005
+ "raw": "/**\n * automatically fix problems\n */",
2006
+ "comment": "automatically fix problems"
2007
+ }
1999
2008
  },
2000
- "doc": {
2001
- "__schema": "DocSchema",
2009
+ {
2010
+ "__schema": "VariableLikeSchema",
2002
2011
  "location": {
2003
2012
  "filePath": "linter-context.ts",
2004
- "line": 18,
2013
+ "line": 21,
2005
2014
  "character": 3
2006
2015
  },
2007
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
2008
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
2016
+ "name": "fixTypes",
2017
+ "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
2018
+ "isOptional": true,
2019
+ "type": {
2020
+ "__schema": "TypeRefSchema",
2021
+ "location": {
2022
+ "filePath": "linter-context.ts",
2023
+ "line": 21,
2024
+ "character": 14
2025
+ },
2026
+ "name": "FixTypes"
2027
+ },
2028
+ "doc": {
2029
+ "__schema": "DocSchema",
2030
+ "location": {
2031
+ "filePath": "linter-context.ts",
2032
+ "line": 18,
2033
+ "character": 3
2034
+ },
2035
+ "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
2036
+ "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
2037
+ }
2009
2038
  }
2010
- }
2011
- ]
2039
+ ]
2040
+ }
2012
2041
  }
2013
- }
2014
- ]
2042
+ ]
2043
+ }
2015
2044
  },
2016
2045
  {
2017
- "__schema": "InterfaceSchema",
2046
+ "__schema": "ExportSchema",
2018
2047
  "location": {
2019
- "filePath": "linter-context.ts",
2048
+ "filePath": "index.ts",
2020
2049
  "line": 7,
2021
- "character": 1
2050
+ "character": 30
2022
2051
  },
2023
- "signature": "interface LinterOptions",
2024
2052
  "name": "LinterOptions",
2025
- "members": [
2026
- {
2027
- "__schema": "VariableLikeSchema",
2028
- "location": {
2029
- "filePath": "linter-context.ts",
2030
- "line": 11,
2031
- "character": 3
2032
- },
2033
- "doc": {
2034
- "__schema": "DocSchema",
2053
+ "exportNode": {
2054
+ "__schema": "InterfaceSchema",
2055
+ "location": {
2056
+ "filePath": "linter-context.ts",
2057
+ "line": 7,
2058
+ "character": 1
2059
+ },
2060
+ "signature": "interface LinterOptions",
2061
+ "name": "LinterOptions",
2062
+ "members": [
2063
+ {
2064
+ "__schema": "VariableLikeSchema",
2035
2065
  "location": {
2036
2066
  "filePath": "linter-context.ts",
2037
- "line": 8,
2067
+ "line": 11,
2038
2068
  "character": 3
2039
2069
  },
2040
- "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
2041
- "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
2042
- },
2043
- "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
2044
- "name": "extensionFormats",
2045
- "type": {
2046
- "__schema": "TypeArraySchema",
2047
- "location": {
2048
- "filePath": "linter-context.ts",
2049
- "line": 11,
2050
- "character": 22
2070
+ "doc": {
2071
+ "__schema": "DocSchema",
2072
+ "location": {
2073
+ "filePath": "linter-context.ts",
2074
+ "line": 8,
2075
+ "character": 3
2076
+ },
2077
+ "raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
2078
+ "comment": "extensions formats to lint. (e.g. .ts, .tsx, etc.)"
2051
2079
  },
2080
+ "signature": "(property) LinterOptions.extensionFormats?: string[] | undefined",
2081
+ "name": "extensionFormats",
2052
2082
  "type": {
2053
- "__schema": "KeywordTypeSchema",
2083
+ "__schema": "TypeArraySchema",
2054
2084
  "location": {
2055
2085
  "filePath": "linter-context.ts",
2056
2086
  "line": 11,
2057
2087
  "character": 22
2058
2088
  },
2059
- "name": "string"
2060
- }
2061
- },
2062
- "isOptional": true
2063
- },
2064
- {
2065
- "__schema": "VariableLikeSchema",
2066
- "location": {
2067
- "filePath": "linter-context.ts",
2068
- "line": 16,
2069
- "character": 3
2070
- },
2071
- "doc": {
2072
- "__schema": "DocSchema",
2073
- "location": {
2074
- "filePath": "linter-context.ts",
2075
- "line": 13,
2076
- "character": 3
2089
+ "type": {
2090
+ "__schema": "KeywordTypeSchema",
2091
+ "location": {
2092
+ "filePath": "linter-context.ts",
2093
+ "line": 11,
2094
+ "character": 22
2095
+ },
2096
+ "name": "string"
2097
+ }
2077
2098
  },
2078
- "raw": "/**\n * automatically fix problems\n */",
2079
- "comment": "automatically fix problems"
2099
+ "isOptional": true
2080
2100
  },
2081
- "signature": "(property) LinterOptions.fix?: boolean | undefined",
2082
- "name": "fix",
2083
- "type": {
2084
- "__schema": "KeywordTypeSchema",
2101
+ {
2102
+ "__schema": "VariableLikeSchema",
2085
2103
  "location": {
2086
2104
  "filePath": "linter-context.ts",
2087
2105
  "line": 16,
2088
- "character": 9
2089
- },
2090
- "name": "boolean"
2091
- },
2092
- "isOptional": true
2093
- },
2094
- {
2095
- "__schema": "VariableLikeSchema",
2096
- "location": {
2097
- "filePath": "linter-context.ts",
2098
- "line": 21,
2099
- "character": 3
2100
- },
2101
- "doc": {
2102
- "__schema": "DocSchema",
2103
- "location": {
2104
- "filePath": "linter-context.ts",
2105
- "line": 18,
2106
2106
  "character": 3
2107
2107
  },
2108
- "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
2109
- "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
2108
+ "doc": {
2109
+ "__schema": "DocSchema",
2110
+ "location": {
2111
+ "filePath": "linter-context.ts",
2112
+ "line": 13,
2113
+ "character": 3
2114
+ },
2115
+ "raw": "/**\n * automatically fix problems\n */",
2116
+ "comment": "automatically fix problems"
2117
+ },
2118
+ "signature": "(property) LinterOptions.fix?: boolean | undefined",
2119
+ "name": "fix",
2120
+ "type": {
2121
+ "__schema": "KeywordTypeSchema",
2122
+ "location": {
2123
+ "filePath": "linter-context.ts",
2124
+ "line": 16,
2125
+ "character": 9
2126
+ },
2127
+ "name": "boolean"
2128
+ },
2129
+ "isOptional": true
2110
2130
  },
2111
- "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
2112
- "name": "fixTypes",
2113
- "type": {
2114
- "__schema": "TypeRefSchema",
2131
+ {
2132
+ "__schema": "VariableLikeSchema",
2115
2133
  "location": {
2116
2134
  "filePath": "linter-context.ts",
2117
2135
  "line": 21,
2118
- "character": 14
2136
+ "character": 3
2119
2137
  },
2120
- "name": "FixTypes",
2121
- "internalFilePath": "linter-context.ts"
2122
- },
2123
- "isOptional": true
2124
- }
2125
- ],
2126
- "extendsNodes": []
2138
+ "doc": {
2139
+ "__schema": "DocSchema",
2140
+ "location": {
2141
+ "filePath": "linter-context.ts",
2142
+ "line": 18,
2143
+ "character": 3
2144
+ },
2145
+ "raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
2146
+ "comment": "specify the types of fixes to apply (problem, suggestion, layout)"
2147
+ },
2148
+ "signature": "(property) LinterOptions.fixTypes?: FixTypes | undefined",
2149
+ "name": "fixTypes",
2150
+ "type": {
2151
+ "__schema": "TypeRefSchema",
2152
+ "location": {
2153
+ "filePath": "linter-context.ts",
2154
+ "line": 21,
2155
+ "character": 14
2156
+ },
2157
+ "name": "FixTypes"
2158
+ },
2159
+ "isOptional": true
2160
+ }
2161
+ ],
2162
+ "extendsNodes": []
2163
+ }
2127
2164
  },
2128
2165
  {
2129
- "__schema": "InterfaceSchema",
2166
+ "__schema": "ExportSchema",
2130
2167
  "location": {
2131
- "filePath": "linter-env-type.ts",
2132
- "line": 4,
2133
- "character": 1
2168
+ "filePath": "index.ts",
2169
+ "line": 8,
2170
+ "character": 15
2134
2171
  },
2135
- "signature": "interface LinterEnv",
2136
2172
  "name": "LinterEnv",
2137
- "members": [
2138
- {
2139
- "__schema": "FunctionLikeSchema",
2140
- "location": {
2141
- "filePath": "linter-env-type.ts",
2142
- "line": 8,
2143
- "character": 3
2144
- },
2145
- "doc": {
2146
- "__schema": "DocSchema",
2173
+ "exportNode": {
2174
+ "__schema": "InterfaceSchema",
2175
+ "location": {
2176
+ "filePath": "linter-env-type.ts",
2177
+ "line": 4,
2178
+ "character": 1
2179
+ },
2180
+ "signature": "interface LinterEnv",
2181
+ "name": "LinterEnv",
2182
+ "members": [
2183
+ {
2184
+ "__schema": "FunctionLikeSchema",
2147
2185
  "location": {
2148
2186
  "filePath": "linter-env-type.ts",
2149
- "line": 5,
2187
+ "line": 8,
2150
2188
  "character": 3
2151
2189
  },
2152
- "raw": "/**\n * return a Linter instance.\n */",
2153
- "comment": "return a Linter instance."
2154
- },
2155
- "signature": "(method) LinterEnv.linter(): EnvHandler<Linter>",
2156
- "name": "linter",
2157
- "params": [],
2158
- "returnType": {
2159
- "__schema": "TypeRefSchema",
2160
- "location": {
2161
- "filePath": "linter-env-type.ts",
2162
- "line": 8,
2163
- "character": 13
2190
+ "doc": {
2191
+ "__schema": "DocSchema",
2192
+ "location": {
2193
+ "filePath": "linter-env-type.ts",
2194
+ "line": 5,
2195
+ "character": 3
2196
+ },
2197
+ "raw": "/**\n * return a Linter instance.\n */",
2198
+ "comment": "return a Linter instance."
2164
2199
  },
2165
- "name": "EnvHandler",
2166
- "componentId": {
2167
- "scope": "teambit.envs",
2168
- "name": "envs"
2200
+ "signature": "(method) LinterEnv.linter(): EnvHandler<Linter>",
2201
+ "name": "linter",
2202
+ "params": [],
2203
+ "returnType": {
2204
+ "__schema": "TypeRefSchema",
2205
+ "location": {
2206
+ "filePath": "linter-env-type.ts",
2207
+ "line": 8,
2208
+ "character": 13
2209
+ },
2210
+ "name": "EnvHandler",
2211
+ "typeArgs": [
2212
+ {
2213
+ "__schema": "TypeRefSchema",
2214
+ "location": {
2215
+ "filePath": "linter-env-type.ts",
2216
+ "line": 8,
2217
+ "character": 24
2218
+ },
2219
+ "name": "Linter"
2220
+ }
2221
+ ]
2169
2222
  },
2170
- "typeArgs": [
2171
- {
2172
- "__schema": "TypeRefSchema",
2173
- "location": {
2174
- "filePath": "linter-env-type.ts",
2175
- "line": 8,
2176
- "character": 24
2177
- },
2178
- "name": "Linter"
2179
- }
2180
- ]
2181
- },
2182
- "modifiers": []
2183
- }
2184
- ],
2185
- "extendsNodes": []
2223
+ "modifiers": []
2224
+ }
2225
+ ],
2226
+ "extendsNodes": []
2227
+ }
2186
2228
  },
2187
2229
  {
2188
2230
  "__schema": "UnImplementedSchema",
@@ -2314,8 +2356,7 @@
2314
2356
  "line": 18,
2315
2357
  "character": 14
2316
2358
  },
2317
- "name": "FixTypes",
2318
- "internalFilePath": "linter-context.ts"
2359
+ "name": "FixTypes"
2319
2360
  },
2320
2361
  "isOptional": true
2321
2362
  }
@@ -2378,11 +2419,7 @@
2378
2419
  "line": 24,
2379
2420
  "character": 29
2380
2421
  },
2381
- "name": "EnvsMain",
2382
- "componentId": {
2383
- "scope": "teambit.envs",
2384
- "name": "envs"
2385
- }
2422
+ "name": "EnvsMain"
2386
2423
  },
2387
2424
  "isOptional": false,
2388
2425
  "isSpread": false
@@ -2402,8 +2439,7 @@
2402
2439
  "line": 24,
2403
2440
  "character": 62
2404
2441
  },
2405
- "name": "LinterService",
2406
- "internalFilePath": "linter.service.ts"
2442
+ "name": "LinterService"
2407
2443
  },
2408
2444
  "isOptional": false,
2409
2445
  "isSpread": false
@@ -2462,11 +2498,7 @@
2462
2498
  "line": 29,
2463
2499
  "character": 26
2464
2500
  },
2465
- "name": "Component",
2466
- "componentId": {
2467
- "scope": "teambit.component",
2468
- "name": "component"
2469
- }
2501
+ "name": "Component"
2470
2502
  }
2471
2503
  },
2472
2504
  "isOptional": false,
@@ -2531,11 +2563,7 @@
2531
2563
  "line": 35,
2532
2564
  "character": 22
2533
2565
  },
2534
- "name": "ExecutionContext",
2535
- "componentId": {
2536
- "scope": "teambit.envs",
2537
- "name": "envs"
2538
- }
2566
+ "name": "ExecutionContext"
2539
2567
  },
2540
2568
  "isOptional": false,
2541
2569
  "isSpread": false
@@ -2712,11 +2740,7 @@
2712
2740
  "line": 55,
2713
2741
  "character": 55
2714
2742
  },
2715
- "name": "EnvsMain",
2716
- "componentId": {
2717
- "scope": "teambit.envs",
2718
- "name": "envs"
2719
- }
2743
+ "name": "EnvsMain"
2720
2744
  },
2721
2745
  {
2722
2746
  "__schema": "TypeRefSchema",
@@ -2725,11 +2749,7 @@
2725
2749
  "line": 55,
2726
2750
  "character": 65
2727
2751
  },
2728
- "name": "CLIMain",
2729
- "componentId": {
2730
- "scope": "teambit.harmony",
2731
- "name": "cli"
2732
- }
2752
+ "name": "CLIMain"
2733
2753
  },
2734
2754
  {
2735
2755
  "__schema": "TypeRefSchema",
@@ -2738,11 +2758,7 @@
2738
2758
  "line": 55,
2739
2759
  "character": 74
2740
2760
  },
2741
- "name": "ComponentMain",
2742
- "componentId": {
2743
- "scope": "teambit.component",
2744
- "name": "component"
2745
- }
2761
+ "name": "ComponentMain"
2746
2762
  },
2747
2763
  {
2748
2764
  "__schema": "TypeRefSchema",
@@ -2751,11 +2767,7 @@
2751
2767
  "line": 55,
2752
2768
  "character": 89
2753
2769
  },
2754
- "name": "LoggerMain",
2755
- "componentId": {
2756
- "scope": "teambit.harmony",
2757
- "name": "logger"
2758
- }
2770
+ "name": "LoggerMain"
2759
2771
  },
2760
2772
  {
2761
2773
  "__schema": "TypeRefSchema",
@@ -2764,11 +2776,7 @@
2764
2776
  "line": 55,
2765
2777
  "character": 101
2766
2778
  },
2767
- "name": "Workspace",
2768
- "componentId": {
2769
- "scope": "teambit.workspace",
2770
- "name": "workspace"
2771
- }
2779
+ "name": "Workspace"
2772
2780
  }
2773
2781
  ]
2774
2782
  },
@@ -3338,8 +3346,7 @@
3338
3346
  "line": 77,
3339
3347
  "character": 13
3340
3348
  },
3341
- "name": "LintMessage",
3342
- "internalFilePath": "linter.ts"
3349
+ "name": "LintMessage"
3343
3350
  }
3344
3351
  },
3345
3352
  "isOptional": false
@@ -4016,11 +4023,7 @@
4016
4023
  "line": 155,
4017
4024
  "character": 47
4018
4025
  },
4019
- "name": "BuildContext",
4020
- "componentId": {
4021
- "scope": "teambit.pipelines",
4022
- "name": "builder"
4023
- }
4026
+ "name": "BuildContext"
4024
4027
  },
4025
4028
  "isOptional": true,
4026
4029
  "isSpread": false
@@ -4160,11 +4163,7 @@
4160
4163
  "line": 11,
4161
4164
  "character": 26
4162
4165
  },
4163
- "name": "BuildContext",
4164
- "componentId": {
4165
- "scope": "teambit.pipelines",
4166
- "name": "builder"
4167
- }
4166
+ "name": "BuildContext"
4168
4167
  },
4169
4168
  "isOptional": false,
4170
4169
  "isSpread": false
@@ -4186,11 +4185,7 @@
4186
4185
  "line": 11,
4187
4186
  "character": 49
4188
4187
  },
4189
- "name": "BuiltTaskResult",
4190
- "componentId": {
4191
- "scope": "teambit.pipelines",
4192
- "name": "builder"
4193
- }
4188
+ "name": "BuiltTaskResult"
4194
4189
  }
4195
4190
  ]
4196
4191
  },
@@ -4222,7 +4217,7 @@
4222
4217
  "_legacy": {
4223
4218
  "scope": "teambit.defender",
4224
4219
  "name": "linter",
4225
- "version": "1.0.256"
4220
+ "version": "1.0.258"
4226
4221
  },
4227
4222
  "_scope": "teambit.defender"
4228
4223
  }
@@ -4313,8 +4308,7 @@
4313
4308
  "line": 5,
4314
4309
  "character": 30
4315
4310
  },
4316
- "name": "FixType",
4317
- "internalFilePath": "linter-context.ts"
4311
+ "name": "FixType"
4318
4312
  }
4319
4313
  ]
4320
4314
  }
@@ -4423,8 +4417,7 @@
4423
4417
  "line": 21,
4424
4418
  "character": 14
4425
4419
  },
4426
- "name": "FixTypes",
4427
- "internalFilePath": "linter-context.ts"
4420
+ "name": "FixTypes"
4428
4421
  },
4429
4422
  "isOptional": true
4430
4423
  }
@@ -4518,10 +4511,6 @@
4518
4511
  "character": 21
4519
4512
  },
4520
4513
  "name": "ComponentMap",
4521
- "componentId": {
4522
- "scope": "teambit.component",
4523
- "name": "component"
4524
- },
4525
4514
  "typeArgs": [
4526
4515
  {
4527
4516
  "__schema": "KeywordTypeSchema",
@@ -4559,7 +4548,7 @@
4559
4548
  "_legacy": {
4560
4549
  "scope": "teambit.defender",
4561
4550
  "name": "linter",
4562
- "version": "1.0.256"
4551
+ "version": "1.0.258"
4563
4552
  },
4564
4553
  "_scope": "teambit.defender"
4565
4554
  }
@@ -4670,8 +4659,7 @@
4670
4659
  "line": 21,
4671
4660
  "character": 14
4672
4661
  },
4673
- "name": "FixTypes",
4674
- "internalFilePath": "linter-context.ts"
4662
+ "name": "FixTypes"
4675
4663
  },
4676
4664
  "doc": {
4677
4665
  "__schema": "DocSchema",
@@ -4738,10 +4726,6 @@
4738
4726
  "character": 13
4739
4727
  },
4740
4728
  "name": "EnvHandler",
4741
- "componentId": {
4742
- "scope": "teambit.envs",
4743
- "name": "envs"
4744
- },
4745
4729
  "typeArgs": [
4746
4730
  {
4747
4731
  "__schema": "TypeRefSchema",
@@ -4766,7 +4750,7 @@
4766
4750
  "componentId": {
4767
4751
  "scope": "teambit.defender",
4768
4752
  "name": "linter",
4769
- "version": "1.0.256"
4753
+ "version": "1.0.258"
4770
4754
  },
4771
4755
  "taggedModuleExports": []
4772
4756
  }