@teambit/linter 1.0.257 → 1.0.259

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