@teambit/eslint 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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.defender/eslint@1.0.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/eslint@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/eslint-preview"]=t():e["teambit.defender/eslint-preview"]=t()}(self,(()=>(()=>{"use strict";var e={91921:(e,t,o)=>{var r={id:"teambit.defender/eslint@1.0.257",homepage:"https://bit.cloud/teambit/defender/eslint",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const p=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-eslint.svg"}));p.__bit_component=r,t.Logo=p},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>l,compositions_metadata:()=>u,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>c});var t=o(91921);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},s.apply(this,arguments)}var a={},d="wrapper";function c(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,p);return(0,n.mdx)(d,s({},a,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}c.isMDXComponent=!0;const l=[t],f=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/eslint-preview"]=t():e["teambit.defender/eslint-preview"]=t()}(self,(()=>(()=>{"use strict";var e={70715:(e,t,o)=>{var r={id:"teambit.defender/eslint@1.0.259",homepage:"https://bit.cloud/teambit/defender/eslint",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const p=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-eslint.svg"}));p.__bit_component=r,t.Logo=p},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{o.r(r),o.d(r,{compositions:()=>l,compositions_metadata:()=>u,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(70715);o(41594);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a.apply(this,arguments)}var s={},c="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,p);return(0,n.mdx)(c,a({},s,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const l=[t],f=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
@@ -14,583 +14,610 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "VariableLikeSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "eslint.aspect.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 3,
21
- "character": 14
21
+ "character": 10
22
22
  },
23
- "signature": "const ESLintAspect: Aspect",
24
23
  "name": "ESLintAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "VariableLikeSchema",
27
26
  "location": {
28
27
  "filePath": "eslint.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/eslint',\n})"
31
+ "signature": "const ESLintAspect: Aspect",
32
+ "name": "ESLintAspect",
33
+ "type": {
34
+ "__schema": "TypeRefSchema",
35
+ "location": {
36
+ "filePath": "eslint.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/eslint',\n})"
49
+ }
41
50
  },
42
51
  {
43
- "__schema": "ClassSchema",
52
+ "__schema": "ExportSchema",
44
53
  "location": {
45
- "filePath": "eslint.main.runtime.ts",
46
- "line": 47,
47
- "character": 1
54
+ "filePath": "index.ts",
55
+ "line": 4,
56
+ "character": 15
48
57
  },
49
- "signature": "class ESLintMain",
50
58
  "name": "ESLintMain",
51
- "members": [
52
- {
53
- "__schema": "ConstructorSchema",
54
- "location": {
55
- "filePath": "eslint.main.runtime.ts",
56
- "line": 48,
57
- "character": 3
58
- },
59
- "signature": "constructor ESLintMain(logger: Logger): ESLintMain",
60
- "name": "constructor",
61
- "params": [
62
- {
63
- "__schema": "ParameterSchema",
64
- "location": {
65
- "filePath": "eslint.main.runtime.ts",
66
- "line": 48,
67
- "character": 15
68
- },
69
- "name": "logger",
70
- "type": {
71
- "__schema": "TypeRefSchema",
72
- "location": {
73
- "filePath": "eslint.main.runtime.ts",
74
- "line": 48,
75
- "character": 31
76
- },
77
- "name": "Logger",
78
- "componentId": {
79
- "scope": "teambit.harmony",
80
- "name": "logger"
81
- }
82
- },
83
- "isOptional": false,
84
- "isSpread": false
85
- }
86
- ],
87
- "returnType": {
88
- "__schema": "ThisTypeSchema",
89
- "location": {
90
- "filePath": "eslint.main.runtime.ts",
91
- "line": 47,
92
- "character": 1
93
- },
94
- "name": "ESLintMain"
95
- },
96
- "modifiers": []
59
+ "exportNode": {
60
+ "__schema": "ClassSchema",
61
+ "location": {
62
+ "filePath": "eslint.main.runtime.ts",
63
+ "line": 47,
64
+ "character": 1
97
65
  },
98
- {
99
- "__schema": "FunctionLikeSchema",
100
- "location": {
101
- "filePath": "eslint.main.runtime.ts",
102
- "line": 55,
103
- "character": 3
104
- },
105
- "doc": {
106
- "__schema": "DocSchema",
66
+ "signature": "class ESLintMain",
67
+ "name": "ESLintMain",
68
+ "members": [
69
+ {
70
+ "__schema": "ConstructorSchema",
107
71
  "location": {
108
72
  "filePath": "eslint.main.runtime.ts",
109
- "line": 50,
73
+ "line": 48,
110
74
  "character": 3
111
75
  },
112
- "raw": "/**\n * create a eslint linter instance.\n * @param options eslint options.\n * @param ESLintModule reference to an `eslint` module.\n */",
113
- "comment": "create a eslint linter instance.",
114
- "tags": [
76
+ "signature": "constructor ESLintMain(logger: Logger): ESLintMain",
77
+ "name": "constructor",
78
+ "params": [
115
79
  {
116
- "__schema": "PropertyLikeTagSchema",
80
+ "__schema": "ParameterSchema",
117
81
  "location": {
118
82
  "filePath": "eslint.main.runtime.ts",
119
- "line": 52,
120
- "character": 6
83
+ "line": 48,
84
+ "character": 15
121
85
  },
122
- "name": "options",
123
- "tagName": "parameter",
124
- "comment": "eslint options."
125
- },
126
- {
127
- "__schema": "PropertyLikeTagSchema",
128
- "location": {
129
- "filePath": "eslint.main.runtime.ts",
130
- "line": 53,
131
- "character": 6
86
+ "name": "logger",
87
+ "type": {
88
+ "__schema": "TypeRefSchema",
89
+ "location": {
90
+ "filePath": "eslint.main.runtime.ts",
91
+ "line": 48,
92
+ "character": 31
93
+ },
94
+ "name": "Logger",
95
+ "componentId": {
96
+ "scope": "teambit.harmony",
97
+ "name": "logger"
98
+ }
132
99
  },
133
- "name": "ESLintModule",
134
- "tagName": "parameter",
135
- "comment": "reference to an `eslint` module."
100
+ "isOptional": false,
101
+ "isSpread": false
136
102
  }
137
- ]
138
- },
139
- "signature": "(method) ESLintMain.createLinter(context: LinterContext, options: ESLintOptions, transformers?: EslintConfigTransformer[], ESLintModule?: any): Linter",
140
- "name": "createLinter",
141
- "params": [
142
- {
143
- "__schema": "ParameterSchema",
103
+ ],
104
+ "returnType": {
105
+ "__schema": "ThisTypeSchema",
144
106
  "location": {
145
107
  "filePath": "eslint.main.runtime.ts",
146
- "line": 56,
147
- "character": 5
148
- },
149
- "name": "context",
150
- "type": {
151
- "__schema": "TypeRefSchema",
152
- "location": {
153
- "filePath": "eslint.main.runtime.ts",
154
- "line": 56,
155
- "character": 14
156
- },
157
- "name": "LinterContext",
158
- "componentId": {
159
- "scope": "teambit.defender",
160
- "name": "linter"
161
- }
108
+ "line": 47,
109
+ "character": 1
162
110
  },
163
- "isOptional": false,
164
- "isSpread": false
111
+ "name": "ESLintMain"
165
112
  },
166
- {
167
- "__schema": "ParameterSchema",
113
+ "modifiers": []
114
+ },
115
+ {
116
+ "__schema": "FunctionLikeSchema",
117
+ "location": {
118
+ "filePath": "eslint.main.runtime.ts",
119
+ "line": 55,
120
+ "character": 3
121
+ },
122
+ "doc": {
123
+ "__schema": "DocSchema",
168
124
  "location": {
169
125
  "filePath": "eslint.main.runtime.ts",
170
- "line": 57,
171
- "character": 5
126
+ "line": 50,
127
+ "character": 3
172
128
  },
173
- "name": "options",
174
- "type": {
175
- "__schema": "TypeRefSchema",
176
- "location": {
177
- "filePath": "eslint.main.runtime.ts",
178
- "line": 57,
179
- "character": 14
129
+ "raw": "/**\n * create a eslint linter instance.\n * @param options eslint options.\n * @param ESLintModule reference to an `eslint` module.\n */",
130
+ "comment": "create a eslint linter instance.",
131
+ "tags": [
132
+ {
133
+ "__schema": "PropertyLikeTagSchema",
134
+ "location": {
135
+ "filePath": "eslint.main.runtime.ts",
136
+ "line": 52,
137
+ "character": 6
138
+ },
139
+ "name": "options",
140
+ "tagName": "parameter",
141
+ "comment": "eslint options."
180
142
  },
181
- "name": "ESLintOptions"
182
- },
183
- "isOptional": false,
184
- "isSpread": false
143
+ {
144
+ "__schema": "PropertyLikeTagSchema",
145
+ "location": {
146
+ "filePath": "eslint.main.runtime.ts",
147
+ "line": 53,
148
+ "character": 6
149
+ },
150
+ "name": "ESLintModule",
151
+ "tagName": "parameter",
152
+ "comment": "reference to an `eslint` module."
153
+ }
154
+ ]
185
155
  },
186
- {
187
- "__schema": "ParameterSchema",
188
- "location": {
189
- "filePath": "eslint.main.runtime.ts",
190
- "line": 58,
191
- "character": 5
192
- },
193
- "name": "transformers",
194
- "type": {
195
- "__schema": "TypeArraySchema",
156
+ "signature": "(method) ESLintMain.createLinter(context: LinterContext, options: ESLintOptions, transformers?: EslintConfigTransformer[], ESLintModule?: any): Linter",
157
+ "name": "createLinter",
158
+ "params": [
159
+ {
160
+ "__schema": "ParameterSchema",
196
161
  "location": {
197
162
  "filePath": "eslint.main.runtime.ts",
198
- "line": 58,
199
- "character": 19
163
+ "line": 56,
164
+ "character": 5
200
165
  },
166
+ "name": "context",
201
167
  "type": {
202
168
  "__schema": "TypeRefSchema",
203
169
  "location": {
204
170
  "filePath": "eslint.main.runtime.ts",
205
- "line": 58,
206
- "character": 19
171
+ "line": 56,
172
+ "character": 14
207
173
  },
208
- "name": "EslintConfigTransformer",
174
+ "name": "LinterContext",
209
175
  "componentId": {
210
176
  "scope": "teambit.defender",
211
- "name": "eslint/config-mutator",
212
- "version": "0.0.101"
177
+ "name": "linter"
213
178
  }
214
- }
215
- },
216
- "isOptional": true,
217
- "defaultValue": "[]",
218
- "isSpread": false
219
- },
220
- {
221
- "__schema": "ParameterSchema",
222
- "location": {
223
- "filePath": "eslint.main.runtime.ts",
224
- "line": 59,
225
- "character": 5
179
+ },
180
+ "isOptional": false,
181
+ "isSpread": false
226
182
  },
227
- "name": "ESLintModule",
228
- "type": {
229
- "__schema": "KeywordTypeSchema",
183
+ {
184
+ "__schema": "ParameterSchema",
230
185
  "location": {
231
186
  "filePath": "eslint.main.runtime.ts",
232
- "line": 59,
233
- "character": 20
187
+ "line": 57,
188
+ "character": 5
234
189
  },
235
- "name": "any"
236
- },
237
- "isOptional": true,
238
- "isSpread": false
239
- }
240
- ],
241
- "returnType": {
242
- "__schema": "TypeRefSchema",
243
- "location": {
244
- "filePath": "eslint.main.runtime.ts",
245
- "line": 55,
246
- "character": 3
247
- },
248
- "name": "Linter",
249
- "componentId": {
250
- "scope": "teambit.defender",
251
- "name": "linter"
252
- }
253
- },
254
- "modifiers": []
255
- },
256
- {
257
- "__schema": "VariableLikeSchema",
258
- "location": {
259
- "filePath": "eslint.main.runtime.ts",
260
- "line": 70,
261
- "character": 3
262
- },
263
- "signature": "(property) ESLintMain.runtime: RuntimeDefinition",
264
- "name": "runtime",
265
- "type": {
266
- "__schema": "InferenceTypeSchema",
267
- "location": {
268
- "filePath": "eslint.main.runtime.ts",
269
- "line": 70,
270
- "character": 3
271
- },
272
- "type": "RuntimeDefinition"
273
- },
274
- "isOptional": true,
275
- "defaultValue": "MainRuntime"
276
- },
277
- {
278
- "__schema": "VariableLikeSchema",
279
- "location": {
280
- "filePath": "eslint.main.runtime.ts",
281
- "line": 72,
282
- "character": 3
283
- },
284
- "signature": "(property) ESLintMain.dependencies: Aspect[]",
285
- "name": "dependencies",
286
- "type": {
287
- "__schema": "InferenceTypeSchema",
288
- "location": {
289
- "filePath": "eslint.main.runtime.ts",
290
- "line": 72,
291
- "character": 3
292
- },
293
- "type": "Aspect[]"
294
- },
295
- "isOptional": true,
296
- "defaultValue": "[LoggerAspect]"
297
- },
298
- {
299
- "__schema": "FunctionLikeSchema",
300
- "location": {
301
- "filePath": "eslint.main.runtime.ts",
302
- "line": 74,
303
- "character": 3
304
- },
305
- "signature": "(method) ESLintMain.provider([loggerExt]: [LoggerMain, WorkspaceConfigFilesMain, LinterMain]): Promise<ESLintMain>",
306
- "name": "provider",
307
- "params": [
308
- {
309
- "__schema": "ParameterSchema",
310
- "location": {
311
- "filePath": "eslint.main.runtime.ts",
312
- "line": 74,
313
- "character": 25
190
+ "name": "options",
191
+ "type": {
192
+ "__schema": "TypeRefSchema",
193
+ "location": {
194
+ "filePath": "eslint.main.runtime.ts",
195
+ "line": 57,
196
+ "character": 14
197
+ },
198
+ "name": "ESLintOptions"
199
+ },
200
+ "isOptional": false,
201
+ "isSpread": false
314
202
  },
315
- "name": "[ loggerExt ]",
316
- "type": {
317
- "__schema": "TupleTypeSchema",
203
+ {
204
+ "__schema": "ParameterSchema",
318
205
  "location": {
319
206
  "filePath": "eslint.main.runtime.ts",
320
- "line": 74,
321
- "character": 38
207
+ "line": 58,
208
+ "character": 5
322
209
  },
323
- "elements": [
324
- {
210
+ "name": "transformers",
211
+ "type": {
212
+ "__schema": "TypeArraySchema",
213
+ "location": {
214
+ "filePath": "eslint.main.runtime.ts",
215
+ "line": 58,
216
+ "character": 19
217
+ },
218
+ "type": {
325
219
  "__schema": "TypeRefSchema",
326
220
  "location": {
327
221
  "filePath": "eslint.main.runtime.ts",
328
- "line": 74,
329
- "character": 39
222
+ "line": 58,
223
+ "character": 19
330
224
  },
331
- "name": "LoggerMain",
332
- "componentId": {
333
- "scope": "teambit.harmony",
334
- "name": "logger"
335
- }
336
- },
337
- {
338
- "__schema": "TypeRefSchema",
339
- "location": {
340
- "filePath": "eslint.main.runtime.ts",
341
- "line": 74,
342
- "character": 51
343
- },
344
- "name": "WorkspaceConfigFilesMain",
345
- "componentId": {
346
- "scope": "teambit.workspace",
347
- "name": "workspace-config-files"
348
- }
349
- },
350
- {
351
- "__schema": "TypeRefSchema",
352
- "location": {
353
- "filePath": "eslint.main.runtime.ts",
354
- "line": 74,
355
- "character": 77
356
- },
357
- "name": "LinterMain",
225
+ "name": "EslintConfigTransformer",
358
226
  "componentId": {
359
227
  "scope": "teambit.defender",
360
- "name": "linter"
228
+ "name": "eslint/config-mutator",
229
+ "version": "0.0.101"
361
230
  }
362
231
  }
363
- ]
232
+ },
233
+ "isOptional": true,
234
+ "defaultValue": "[]",
235
+ "isSpread": false
364
236
  },
365
- "isOptional": false,
366
- "isSpread": false
367
- }
368
- ],
369
- "returnType": {
370
- "__schema": "TypeRefSchema",
371
- "location": {
372
- "filePath": "eslint.main.runtime.ts",
373
- "line": 74,
374
- "character": 91
375
- },
376
- "name": "Promise",
377
- "typeArgs": [
378
237
  {
379
- "__schema": "TypeRefSchema",
238
+ "__schema": "ParameterSchema",
380
239
  "location": {
381
240
  "filePath": "eslint.main.runtime.ts",
382
- "line": 74,
383
- "character": 99
241
+ "line": 59,
242
+ "character": 5
243
+ },
244
+ "name": "ESLintModule",
245
+ "type": {
246
+ "__schema": "KeywordTypeSchema",
247
+ "location": {
248
+ "filePath": "eslint.main.runtime.ts",
249
+ "line": 59,
250
+ "character": 20
251
+ },
252
+ "name": "any"
384
253
  },
385
- "name": "ESLintMain"
254
+ "isOptional": true,
255
+ "isSpread": false
386
256
  }
387
- ]
388
- },
389
- "modifiers": [
390
- "static",
391
- "async"
392
- ]
393
- }
394
- ],
395
- "extendsNodes": [],
396
- "implementNodes": []
397
- },
398
- {
399
- "__schema": "TypeSchema",
400
- "location": {
401
- "filePath": "eslint.main.runtime.ts",
402
- "line": 15,
403
- "character": 1
404
- },
405
- "signature": "type ESLintOptions = {\n config: ESLintLib.Options;\n pluginPath?: string | undefined;\n formatter?: string | undefined;\n extensions?: string[] | undefined;\n tsConfig?: Record<string, any> | undefined;\n}",
406
- "name": "ESLintOptions",
407
- "type": {
408
- "__schema": "TypeLiteralSchema",
409
- "location": {
410
- "filePath": "eslint.main.runtime.ts",
411
- "line": 15,
412
- "character": 29
413
- },
414
- "members": [
415
- {
416
- "__schema": "VariableLikeSchema",
417
- "location": {
418
- "filePath": "eslint.main.runtime.ts",
419
- "line": 20,
420
- "character": 3
421
- },
422
- "doc": {
423
- "__schema": "DocSchema",
424
- "location": {
425
- "filePath": "eslint.main.runtime.ts",
426
- "line": 16,
427
- "character": 3
428
- },
429
- "raw": "/**\n * linter config for eslint.\n */",
430
- "comment": "linter config for eslint."
431
- },
432
- "signature": "(property) config: ESLintLib.Options",
433
- "name": "config",
434
- "type": {
257
+ ],
258
+ "returnType": {
435
259
  "__schema": "TypeRefSchema",
436
260
  "location": {
437
261
  "filePath": "eslint.main.runtime.ts",
438
- "line": 20,
439
- "character": 11
262
+ "line": 55,
263
+ "character": 3
440
264
  },
441
- "name": "ESLintLib.Options"
265
+ "name": "Linter",
266
+ "componentId": {
267
+ "scope": "teambit.defender",
268
+ "name": "linter"
269
+ }
442
270
  },
443
- "isOptional": false
271
+ "modifiers": []
444
272
  },
445
273
  {
446
274
  "__schema": "VariableLikeSchema",
447
275
  "location": {
448
276
  "filePath": "eslint.main.runtime.ts",
449
- "line": 25,
277
+ "line": 70,
450
278
  "character": 3
451
279
  },
452
- "doc": {
453
- "__schema": "DocSchema",
454
- "location": {
455
- "filePath": "eslint.main.runtime.ts",
456
- "line": 22,
457
- "character": 3
458
- },
459
- "raw": "/**\n * specify to path to resolve eslint plugins from.\n */",
460
- "comment": "specify to path to resolve eslint plugins from."
461
- },
462
- "signature": "(property) pluginPath?: string | undefined",
463
- "name": "pluginPath",
280
+ "signature": "(property) ESLintMain.runtime: RuntimeDefinition",
281
+ "name": "runtime",
464
282
  "type": {
465
- "__schema": "KeywordTypeSchema",
283
+ "__schema": "InferenceTypeSchema",
466
284
  "location": {
467
285
  "filePath": "eslint.main.runtime.ts",
468
- "line": 25,
469
- "character": 16
286
+ "line": 70,
287
+ "character": 3
470
288
  },
471
- "name": "string"
289
+ "type": "RuntimeDefinition"
472
290
  },
473
- "isOptional": true
291
+ "isOptional": true,
292
+ "defaultValue": "MainRuntime"
474
293
  },
475
294
  {
476
295
  "__schema": "VariableLikeSchema",
477
296
  "location": {
478
297
  "filePath": "eslint.main.runtime.ts",
479
- "line": 30,
298
+ "line": 72,
480
299
  "character": 3
481
300
  },
482
- "doc": {
483
- "__schema": "DocSchema",
484
- "location": {
485
- "filePath": "eslint.main.runtime.ts",
486
- "line": 27,
487
- "character": 3
488
- },
489
- "raw": "/**\n * decide the formatter for the CLI output.\n */",
490
- "comment": "decide the formatter for the CLI output."
491
- },
492
- "signature": "(property) formatter?: string | undefined",
493
- "name": "formatter",
301
+ "signature": "(property) ESLintMain.dependencies: Aspect[]",
302
+ "name": "dependencies",
494
303
  "type": {
495
- "__schema": "KeywordTypeSchema",
304
+ "__schema": "InferenceTypeSchema",
496
305
  "location": {
497
306
  "filePath": "eslint.main.runtime.ts",
498
- "line": 30,
499
- "character": 15
307
+ "line": 72,
308
+ "character": 3
500
309
  },
501
- "name": "string"
310
+ "type": "Aspect[]"
502
311
  },
503
- "isOptional": true
312
+ "isOptional": true,
313
+ "defaultValue": "[LoggerAspect]"
504
314
  },
505
315
  {
506
- "__schema": "VariableLikeSchema",
316
+ "__schema": "FunctionLikeSchema",
507
317
  "location": {
508
318
  "filePath": "eslint.main.runtime.ts",
509
- "line": 35,
319
+ "line": 74,
510
320
  "character": 3
511
321
  },
512
- "doc": {
513
- "__schema": "DocSchema",
322
+ "signature": "(method) ESLintMain.provider([loggerExt]: [LoggerMain, WorkspaceConfigFilesMain, LinterMain]): Promise<ESLintMain>",
323
+ "name": "provider",
324
+ "params": [
325
+ {
326
+ "__schema": "ParameterSchema",
327
+ "location": {
328
+ "filePath": "eslint.main.runtime.ts",
329
+ "line": 74,
330
+ "character": 25
331
+ },
332
+ "name": "[ loggerExt ]",
333
+ "type": {
334
+ "__schema": "TupleTypeSchema",
335
+ "location": {
336
+ "filePath": "eslint.main.runtime.ts",
337
+ "line": 74,
338
+ "character": 38
339
+ },
340
+ "elements": [
341
+ {
342
+ "__schema": "TypeRefSchema",
343
+ "location": {
344
+ "filePath": "eslint.main.runtime.ts",
345
+ "line": 74,
346
+ "character": 39
347
+ },
348
+ "name": "LoggerMain",
349
+ "componentId": {
350
+ "scope": "teambit.harmony",
351
+ "name": "logger"
352
+ }
353
+ },
354
+ {
355
+ "__schema": "TypeRefSchema",
356
+ "location": {
357
+ "filePath": "eslint.main.runtime.ts",
358
+ "line": 74,
359
+ "character": 51
360
+ },
361
+ "name": "WorkspaceConfigFilesMain",
362
+ "componentId": {
363
+ "scope": "teambit.workspace",
364
+ "name": "workspace-config-files"
365
+ }
366
+ },
367
+ {
368
+ "__schema": "TypeRefSchema",
369
+ "location": {
370
+ "filePath": "eslint.main.runtime.ts",
371
+ "line": 74,
372
+ "character": 77
373
+ },
374
+ "name": "LinterMain",
375
+ "componentId": {
376
+ "scope": "teambit.defender",
377
+ "name": "linter"
378
+ }
379
+ }
380
+ ]
381
+ },
382
+ "isOptional": false,
383
+ "isSpread": false
384
+ }
385
+ ],
386
+ "returnType": {
387
+ "__schema": "TypeRefSchema",
514
388
  "location": {
515
389
  "filePath": "eslint.main.runtime.ts",
516
- "line": 32,
390
+ "line": 74,
391
+ "character": 91
392
+ },
393
+ "name": "Promise",
394
+ "typeArgs": [
395
+ {
396
+ "__schema": "TypeRefSchema",
397
+ "location": {
398
+ "filePath": "eslint.main.runtime.ts",
399
+ "line": 74,
400
+ "character": 99
401
+ },
402
+ "name": "ESLintMain"
403
+ }
404
+ ]
405
+ },
406
+ "modifiers": [
407
+ "static",
408
+ "async"
409
+ ]
410
+ }
411
+ ],
412
+ "extendsNodes": [],
413
+ "implementNodes": []
414
+ }
415
+ },
416
+ {
417
+ "__schema": "ExportSchema",
418
+ "location": {
419
+ "filePath": "index.ts",
420
+ "line": 4,
421
+ "character": 27
422
+ },
423
+ "name": "ESLintOptions",
424
+ "exportNode": {
425
+ "__schema": "TypeSchema",
426
+ "location": {
427
+ "filePath": "eslint.main.runtime.ts",
428
+ "line": 15,
429
+ "character": 1
430
+ },
431
+ "signature": "type ESLintOptions = {\n config: ESLintLib.Options;\n pluginPath?: string | undefined;\n formatter?: string | undefined;\n extensions?: string[] | undefined;\n tsConfig?: Record<string, any> | undefined;\n}",
432
+ "name": "ESLintOptions",
433
+ "type": {
434
+ "__schema": "TypeLiteralSchema",
435
+ "location": {
436
+ "filePath": "eslint.main.runtime.ts",
437
+ "line": 15,
438
+ "character": 29
439
+ },
440
+ "members": [
441
+ {
442
+ "__schema": "VariableLikeSchema",
443
+ "location": {
444
+ "filePath": "eslint.main.runtime.ts",
445
+ "line": 20,
517
446
  "character": 3
518
447
  },
519
- "raw": "/**\n * file types to lint.\n */",
520
- "comment": "file types to lint."
448
+ "doc": {
449
+ "__schema": "DocSchema",
450
+ "location": {
451
+ "filePath": "eslint.main.runtime.ts",
452
+ "line": 16,
453
+ "character": 3
454
+ },
455
+ "raw": "/**\n * linter config for eslint.\n */",
456
+ "comment": "linter config for eslint."
457
+ },
458
+ "signature": "(property) config: ESLintLib.Options",
459
+ "name": "config",
460
+ "type": {
461
+ "__schema": "TypeRefSchema",
462
+ "location": {
463
+ "filePath": "eslint.main.runtime.ts",
464
+ "line": 20,
465
+ "character": 11
466
+ },
467
+ "name": "ESLintLib.Options"
468
+ },
469
+ "isOptional": false
521
470
  },
522
- "signature": "(property) extensions?: string[] | undefined",
523
- "name": "extensions",
524
- "type": {
525
- "__schema": "TypeArraySchema",
471
+ {
472
+ "__schema": "VariableLikeSchema",
526
473
  "location": {
527
474
  "filePath": "eslint.main.runtime.ts",
528
- "line": 35,
529
- "character": 16
475
+ "line": 25,
476
+ "character": 3
477
+ },
478
+ "doc": {
479
+ "__schema": "DocSchema",
480
+ "location": {
481
+ "filePath": "eslint.main.runtime.ts",
482
+ "line": 22,
483
+ "character": 3
484
+ },
485
+ "raw": "/**\n * specify to path to resolve eslint plugins from.\n */",
486
+ "comment": "specify to path to resolve eslint plugins from."
530
487
  },
488
+ "signature": "(property) pluginPath?: string | undefined",
489
+ "name": "pluginPath",
531
490
  "type": {
532
491
  "__schema": "KeywordTypeSchema",
533
492
  "location": {
534
493
  "filePath": "eslint.main.runtime.ts",
535
- "line": 35,
494
+ "line": 25,
536
495
  "character": 16
537
496
  },
538
497
  "name": "string"
539
- }
540
- },
541
- "isOptional": true
542
- },
543
- {
544
- "__schema": "VariableLikeSchema",
545
- "location": {
546
- "filePath": "eslint.main.runtime.ts",
547
- "line": 44,
548
- "character": 3
498
+ },
499
+ "isOptional": true
549
500
  },
550
- "doc": {
551
- "__schema": "DocSchema",
501
+ {
502
+ "__schema": "VariableLikeSchema",
552
503
  "location": {
553
504
  "filePath": "eslint.main.runtime.ts",
554
- "line": 38,
505
+ "line": 30,
555
506
  "character": 3
556
507
  },
557
- "raw": "/**\n * typescript config for eslint.\n * If you pass this, bit will auto generate a temp config file in `node_modules/.cache` and pass it to eslint.\n * In case you have include/exclude props in the tsconfig, they will be changed to handle the fact that they are inside the node_modules/.cache folder.\n * a `../../` will be added to the beginning of the path.\n */",
558
- "comment": "typescript config for eslint.\nIf you pass this, bit will auto generate a temp config file in `node_modules/.cache` and pass it to eslint.\nIn case you have include/exclude props in the tsconfig, they will be changed to handle the fact that they are inside the node_modules/.cache folder.\na `../../` will be added to the beginning of the path."
508
+ "doc": {
509
+ "__schema": "DocSchema",
510
+ "location": {
511
+ "filePath": "eslint.main.runtime.ts",
512
+ "line": 27,
513
+ "character": 3
514
+ },
515
+ "raw": "/**\n * decide the formatter for the CLI output.\n */",
516
+ "comment": "decide the formatter for the CLI output."
517
+ },
518
+ "signature": "(property) formatter?: string | undefined",
519
+ "name": "formatter",
520
+ "type": {
521
+ "__schema": "KeywordTypeSchema",
522
+ "location": {
523
+ "filePath": "eslint.main.runtime.ts",
524
+ "line": 30,
525
+ "character": 15
526
+ },
527
+ "name": "string"
528
+ },
529
+ "isOptional": true
559
530
  },
560
- "signature": "(property) tsConfig?: Record<string, any> | undefined",
561
- "name": "tsConfig",
562
- "type": {
563
- "__schema": "TypeRefSchema",
531
+ {
532
+ "__schema": "VariableLikeSchema",
564
533
  "location": {
565
534
  "filePath": "eslint.main.runtime.ts",
566
- "line": 44,
567
- "character": 14
535
+ "line": 35,
536
+ "character": 3
568
537
  },
569
- "name": "Record",
570
- "typeArgs": [
571
- {
572
- "__schema": "KeywordTypeSchema",
573
- "location": {
574
- "filePath": "eslint.main.runtime.ts",
575
- "line": 44,
576
- "character": 21
577
- },
578
- "name": "string"
538
+ "doc": {
539
+ "__schema": "DocSchema",
540
+ "location": {
541
+ "filePath": "eslint.main.runtime.ts",
542
+ "line": 32,
543
+ "character": 3
579
544
  },
580
- {
545
+ "raw": "/**\n * file types to lint.\n */",
546
+ "comment": "file types to lint."
547
+ },
548
+ "signature": "(property) extensions?: string[] | undefined",
549
+ "name": "extensions",
550
+ "type": {
551
+ "__schema": "TypeArraySchema",
552
+ "location": {
553
+ "filePath": "eslint.main.runtime.ts",
554
+ "line": 35,
555
+ "character": 16
556
+ },
557
+ "type": {
581
558
  "__schema": "KeywordTypeSchema",
582
559
  "location": {
583
560
  "filePath": "eslint.main.runtime.ts",
584
- "line": 44,
585
- "character": 29
561
+ "line": 35,
562
+ "character": 16
586
563
  },
587
- "name": "any"
564
+ "name": "string"
588
565
  }
589
- ]
566
+ },
567
+ "isOptional": true
590
568
  },
591
- "isOptional": true
592
- }
593
- ]
569
+ {
570
+ "__schema": "VariableLikeSchema",
571
+ "location": {
572
+ "filePath": "eslint.main.runtime.ts",
573
+ "line": 44,
574
+ "character": 3
575
+ },
576
+ "doc": {
577
+ "__schema": "DocSchema",
578
+ "location": {
579
+ "filePath": "eslint.main.runtime.ts",
580
+ "line": 38,
581
+ "character": 3
582
+ },
583
+ "raw": "/**\n * typescript config for eslint.\n * If you pass this, bit will auto generate a temp config file in `node_modules/.cache` and pass it to eslint.\n * In case you have include/exclude props in the tsconfig, they will be changed to handle the fact that they are inside the node_modules/.cache folder.\n * a `../../` will be added to the beginning of the path.\n */",
584
+ "comment": "typescript config for eslint.\nIf you pass this, bit will auto generate a temp config file in `node_modules/.cache` and pass it to eslint.\nIn case you have include/exclude props in the tsconfig, they will be changed to handle the fact that they are inside the node_modules/.cache folder.\na `../../` will be added to the beginning of the path."
585
+ },
586
+ "signature": "(property) tsConfig?: Record<string, any> | undefined",
587
+ "name": "tsConfig",
588
+ "type": {
589
+ "__schema": "TypeRefSchema",
590
+ "location": {
591
+ "filePath": "eslint.main.runtime.ts",
592
+ "line": 44,
593
+ "character": 14
594
+ },
595
+ "name": "Record",
596
+ "typeArgs": [
597
+ {
598
+ "__schema": "KeywordTypeSchema",
599
+ "location": {
600
+ "filePath": "eslint.main.runtime.ts",
601
+ "line": 44,
602
+ "character": 21
603
+ },
604
+ "name": "string"
605
+ },
606
+ {
607
+ "__schema": "KeywordTypeSchema",
608
+ "location": {
609
+ "filePath": "eslint.main.runtime.ts",
610
+ "line": 44,
611
+ "character": 29
612
+ },
613
+ "name": "any"
614
+ }
615
+ ]
616
+ },
617
+ "isOptional": true
618
+ }
619
+ ]
620
+ }
594
621
  }
595
622
  },
596
623
  {
@@ -1413,7 +1440,7 @@
1413
1440
  "componentId": {
1414
1441
  "scope": "teambit.defender",
1415
1442
  "name": "eslint",
1416
- "version": "1.0.257"
1443
+ "version": "1.0.259"
1417
1444
  },
1418
1445
  "taggedModuleExports": []
1419
1446
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_eslint@1.0.257/dist/eslint.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_eslint@1.0.257/dist/eslint.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_eslint@1.0.259/dist/eslint.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_eslint@1.0.259/dist/eslint.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/eslint",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
4
4
  "homepage": "https://bit.cloud/teambit/defender/eslint",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "eslint",
9
- "version": "1.0.257"
9
+ "version": "1.0.259"
10
10
  },
11
11
  "dependencies": {
12
12
  "eslint": "8.56.0",
@@ -16,12 +16,12 @@
16
16
  "p-map-series": "2.1.0",
17
17
  "@babel/runtime": "7.23.2",
18
18
  "@teambit/harmony": "0.4.6",
19
- "@teambit/component": "1.0.257",
20
- "@teambit/linter": "1.0.257",
21
- "@teambit/logger": "0.0.955",
22
- "@teambit/cli": "0.0.862",
19
+ "@teambit/component": "1.0.259",
20
+ "@teambit/linter": "1.0.259",
21
+ "@teambit/logger": "0.0.956",
22
+ "@teambit/cli": "0.0.863",
23
23
  "@teambit/defender.eslint.config-mutator": "0.0.101",
24
- "@teambit/workspace-config-files": "1.0.257"
24
+ "@teambit/workspace-config-files": "1.0.259"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/eslint": "8.56.6",