@teambit/eslint 1.0.257 → 1.0.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.258" 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={45989:(e,t,o)=>{var r={id:"teambit.defender/eslint@1.0.258",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(45989);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})()));
@@ -14,583 +14,585 @@
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"
132
95
  },
133
- "name": "ESLintModule",
134
- "tagName": "parameter",
135
- "comment": "reference to an `eslint` module."
96
+ "isOptional": false,
97
+ "isSpread": false
136
98
  }
137
- ]
99
+ ],
100
+ "returnType": {
101
+ "__schema": "ThisTypeSchema",
102
+ "location": {
103
+ "filePath": "eslint.main.runtime.ts",
104
+ "line": 47,
105
+ "character": 1
106
+ },
107
+ "name": "ESLintMain"
108
+ },
109
+ "modifiers": []
138
110
  },
139
- "signature": "(method) ESLintMain.createLinter(context: LinterContext, options: ESLintOptions, transformers?: EslintConfigTransformer[], ESLintModule?: any): Linter",
140
- "name": "createLinter",
141
- "params": [
142
- {
143
- "__schema": "ParameterSchema",
111
+ {
112
+ "__schema": "FunctionLikeSchema",
113
+ "location": {
114
+ "filePath": "eslint.main.runtime.ts",
115
+ "line": 55,
116
+ "character": 3
117
+ },
118
+ "doc": {
119
+ "__schema": "DocSchema",
144
120
  "location": {
145
121
  "filePath": "eslint.main.runtime.ts",
146
- "line": 56,
147
- "character": 5
122
+ "line": 50,
123
+ "character": 3
148
124
  },
149
- "name": "context",
150
- "type": {
151
- "__schema": "TypeRefSchema",
125
+ "raw": "/**\n * create a eslint linter instance.\n * @param options eslint options.\n * @param ESLintModule reference to an `eslint` module.\n */",
126
+ "comment": "create a eslint linter instance.",
127
+ "tags": [
128
+ {
129
+ "__schema": "PropertyLikeTagSchema",
130
+ "location": {
131
+ "filePath": "eslint.main.runtime.ts",
132
+ "line": 52,
133
+ "character": 6
134
+ },
135
+ "name": "options",
136
+ "tagName": "parameter",
137
+ "comment": "eslint options."
138
+ },
139
+ {
140
+ "__schema": "PropertyLikeTagSchema",
141
+ "location": {
142
+ "filePath": "eslint.main.runtime.ts",
143
+ "line": 53,
144
+ "character": 6
145
+ },
146
+ "name": "ESLintModule",
147
+ "tagName": "parameter",
148
+ "comment": "reference to an `eslint` module."
149
+ }
150
+ ]
151
+ },
152
+ "signature": "(method) ESLintMain.createLinter(context: LinterContext, options: ESLintOptions, transformers?: EslintConfigTransformer[], ESLintModule?: any): Linter",
153
+ "name": "createLinter",
154
+ "params": [
155
+ {
156
+ "__schema": "ParameterSchema",
152
157
  "location": {
153
158
  "filePath": "eslint.main.runtime.ts",
154
159
  "line": 56,
155
- "character": 14
160
+ "character": 5
156
161
  },
157
- "name": "LinterContext",
158
- "componentId": {
159
- "scope": "teambit.defender",
160
- "name": "linter"
161
- }
162
- },
163
- "isOptional": false,
164
- "isSpread": false
165
- },
166
- {
167
- "__schema": "ParameterSchema",
168
- "location": {
169
- "filePath": "eslint.main.runtime.ts",
170
- "line": 57,
171
- "character": 5
162
+ "name": "context",
163
+ "type": {
164
+ "__schema": "TypeRefSchema",
165
+ "location": {
166
+ "filePath": "eslint.main.runtime.ts",
167
+ "line": 56,
168
+ "character": 14
169
+ },
170
+ "name": "LinterContext"
171
+ },
172
+ "isOptional": false,
173
+ "isSpread": false
172
174
  },
173
- "name": "options",
174
- "type": {
175
- "__schema": "TypeRefSchema",
175
+ {
176
+ "__schema": "ParameterSchema",
176
177
  "location": {
177
178
  "filePath": "eslint.main.runtime.ts",
178
179
  "line": 57,
179
- "character": 14
180
+ "character": 5
180
181
  },
181
- "name": "ESLintOptions"
182
- },
183
- "isOptional": false,
184
- "isSpread": false
185
- },
186
- {
187
- "__schema": "ParameterSchema",
188
- "location": {
189
- "filePath": "eslint.main.runtime.ts",
190
- "line": 58,
191
- "character": 5
182
+ "name": "options",
183
+ "type": {
184
+ "__schema": "TypeRefSchema",
185
+ "location": {
186
+ "filePath": "eslint.main.runtime.ts",
187
+ "line": 57,
188
+ "character": 14
189
+ },
190
+ "name": "ESLintOptions"
191
+ },
192
+ "isOptional": false,
193
+ "isSpread": false
192
194
  },
193
- "name": "transformers",
194
- "type": {
195
- "__schema": "TypeArraySchema",
195
+ {
196
+ "__schema": "ParameterSchema",
196
197
  "location": {
197
198
  "filePath": "eslint.main.runtime.ts",
198
199
  "line": 58,
199
- "character": 19
200
+ "character": 5
200
201
  },
202
+ "name": "transformers",
201
203
  "type": {
202
- "__schema": "TypeRefSchema",
204
+ "__schema": "TypeArraySchema",
203
205
  "location": {
204
206
  "filePath": "eslint.main.runtime.ts",
205
207
  "line": 58,
206
208
  "character": 19
207
209
  },
208
- "name": "EslintConfigTransformer",
209
- "componentId": {
210
- "scope": "teambit.defender",
211
- "name": "eslint/config-mutator",
212
- "version": "0.0.101"
210
+ "type": {
211
+ "__schema": "TypeRefSchema",
212
+ "location": {
213
+ "filePath": "eslint.main.runtime.ts",
214
+ "line": 58,
215
+ "character": 19
216
+ },
217
+ "name": "EslintConfigTransformer"
213
218
  }
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
219
+ },
220
+ "isOptional": true,
221
+ "defaultValue": "[]",
222
+ "isSpread": false
226
223
  },
227
- "name": "ESLintModule",
228
- "type": {
229
- "__schema": "KeywordTypeSchema",
224
+ {
225
+ "__schema": "ParameterSchema",
230
226
  "location": {
231
227
  "filePath": "eslint.main.runtime.ts",
232
228
  "line": 59,
233
- "character": 20
229
+ "character": 5
230
+ },
231
+ "name": "ESLintModule",
232
+ "type": {
233
+ "__schema": "KeywordTypeSchema",
234
+ "location": {
235
+ "filePath": "eslint.main.runtime.ts",
236
+ "line": 59,
237
+ "character": 20
238
+ },
239
+ "name": "any"
234
240
  },
235
- "name": "any"
241
+ "isOptional": true,
242
+ "isSpread": false
243
+ }
244
+ ],
245
+ "returnType": {
246
+ "__schema": "TypeRefSchema",
247
+ "location": {
248
+ "filePath": "eslint.main.runtime.ts",
249
+ "line": 55,
250
+ "character": 3
236
251
  },
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
252
+ "name": "Linter",
253
+ "componentId": {
254
+ "scope": "teambit.defender",
255
+ "name": "linter"
256
+ }
247
257
  },
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
258
+ "modifiers": []
262
259
  },
263
- "signature": "(property) ESLintMain.runtime: RuntimeDefinition",
264
- "name": "runtime",
265
- "type": {
266
- "__schema": "InferenceTypeSchema",
260
+ {
261
+ "__schema": "VariableLikeSchema",
267
262
  "location": {
268
263
  "filePath": "eslint.main.runtime.ts",
269
264
  "line": 70,
270
265
  "character": 3
271
266
  },
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
267
+ "signature": "(property) ESLintMain.runtime: RuntimeDefinition",
268
+ "name": "runtime",
269
+ "type": {
270
+ "__schema": "InferenceTypeSchema",
271
+ "location": {
272
+ "filePath": "eslint.main.runtime.ts",
273
+ "line": 70,
274
+ "character": 3
275
+ },
276
+ "type": "RuntimeDefinition"
277
+ },
278
+ "isOptional": true,
279
+ "defaultValue": "MainRuntime"
283
280
  },
284
- "signature": "(property) ESLintMain.dependencies: Aspect[]",
285
- "name": "dependencies",
286
- "type": {
287
- "__schema": "InferenceTypeSchema",
281
+ {
282
+ "__schema": "VariableLikeSchema",
288
283
  "location": {
289
284
  "filePath": "eslint.main.runtime.ts",
290
285
  "line": 72,
291
286
  "character": 3
292
287
  },
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",
288
+ "signature": "(property) ESLintMain.dependencies: Aspect[]",
289
+ "name": "dependencies",
290
+ "type": {
291
+ "__schema": "InferenceTypeSchema",
310
292
  "location": {
311
293
  "filePath": "eslint.main.runtime.ts",
312
- "line": 74,
313
- "character": 25
314
- },
315
- "name": "[ loggerExt ]",
316
- "type": {
317
- "__schema": "TupleTypeSchema",
318
- "location": {
319
- "filePath": "eslint.main.runtime.ts",
320
- "line": 74,
321
- "character": 38
322
- },
323
- "elements": [
324
- {
325
- "__schema": "TypeRefSchema",
326
- "location": {
327
- "filePath": "eslint.main.runtime.ts",
328
- "line": 74,
329
- "character": 39
330
- },
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",
358
- "componentId": {
359
- "scope": "teambit.defender",
360
- "name": "linter"
361
- }
362
- }
363
- ]
294
+ "line": 72,
295
+ "character": 3
364
296
  },
365
- "isOptional": false,
366
- "isSpread": false
367
- }
368
- ],
369
- "returnType": {
370
- "__schema": "TypeRefSchema",
297
+ "type": "Aspect[]"
298
+ },
299
+ "isOptional": true,
300
+ "defaultValue": "[LoggerAspect]"
301
+ },
302
+ {
303
+ "__schema": "FunctionLikeSchema",
371
304
  "location": {
372
305
  "filePath": "eslint.main.runtime.ts",
373
306
  "line": 74,
374
- "character": 91
307
+ "character": 3
375
308
  },
376
- "name": "Promise",
377
- "typeArgs": [
309
+ "signature": "(method) ESLintMain.provider([loggerExt]: [LoggerMain, WorkspaceConfigFilesMain, LinterMain]): Promise<ESLintMain>",
310
+ "name": "provider",
311
+ "params": [
378
312
  {
379
- "__schema": "TypeRefSchema",
313
+ "__schema": "ParameterSchema",
380
314
  "location": {
381
315
  "filePath": "eslint.main.runtime.ts",
382
316
  "line": 74,
383
- "character": 99
317
+ "character": 25
384
318
  },
385
- "name": "ESLintMain"
319
+ "name": "[ loggerExt ]",
320
+ "type": {
321
+ "__schema": "TupleTypeSchema",
322
+ "location": {
323
+ "filePath": "eslint.main.runtime.ts",
324
+ "line": 74,
325
+ "character": 38
326
+ },
327
+ "elements": [
328
+ {
329
+ "__schema": "TypeRefSchema",
330
+ "location": {
331
+ "filePath": "eslint.main.runtime.ts",
332
+ "line": 74,
333
+ "character": 39
334
+ },
335
+ "name": "LoggerMain"
336
+ },
337
+ {
338
+ "__schema": "TypeRefSchema",
339
+ "location": {
340
+ "filePath": "eslint.main.runtime.ts",
341
+ "line": 74,
342
+ "character": 51
343
+ },
344
+ "name": "WorkspaceConfigFilesMain"
345
+ },
346
+ {
347
+ "__schema": "TypeRefSchema",
348
+ "location": {
349
+ "filePath": "eslint.main.runtime.ts",
350
+ "line": 74,
351
+ "character": 77
352
+ },
353
+ "name": "LinterMain"
354
+ }
355
+ ]
356
+ },
357
+ "isOptional": false,
358
+ "isSpread": false
386
359
  }
360
+ ],
361
+ "returnType": {
362
+ "__schema": "TypeRefSchema",
363
+ "location": {
364
+ "filePath": "eslint.main.runtime.ts",
365
+ "line": 74,
366
+ "character": 91
367
+ },
368
+ "name": "Promise",
369
+ "typeArgs": [
370
+ {
371
+ "__schema": "TypeRefSchema",
372
+ "location": {
373
+ "filePath": "eslint.main.runtime.ts",
374
+ "line": 74,
375
+ "character": 99
376
+ },
377
+ "name": "ESLintMain"
378
+ }
379
+ ]
380
+ },
381
+ "modifiers": [
382
+ "static",
383
+ "async"
387
384
  ]
388
- },
389
- "modifiers": [
390
- "static",
391
- "async"
392
- ]
393
- }
394
- ],
395
- "extendsNodes": [],
396
- "implementNodes": []
385
+ }
386
+ ],
387
+ "extendsNodes": [],
388
+ "implementNodes": []
389
+ }
397
390
  },
398
391
  {
399
- "__schema": "TypeSchema",
392
+ "__schema": "ExportSchema",
400
393
  "location": {
401
- "filePath": "eslint.main.runtime.ts",
402
- "line": 15,
403
- "character": 1
394
+ "filePath": "index.ts",
395
+ "line": 4,
396
+ "character": 27
404
397
  },
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
398
  "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",
399
+ "exportNode": {
400
+ "__schema": "TypeSchema",
401
+ "location": {
402
+ "filePath": "eslint.main.runtime.ts",
403
+ "line": 15,
404
+ "character": 1
405
+ },
406
+ "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}",
407
+ "name": "ESLintOptions",
408
+ "type": {
409
+ "__schema": "TypeLiteralSchema",
410
+ "location": {
411
+ "filePath": "eslint.main.runtime.ts",
412
+ "line": 15,
413
+ "character": 29
414
+ },
415
+ "members": [
416
+ {
417
+ "__schema": "VariableLikeSchema",
424
418
  "location": {
425
419
  "filePath": "eslint.main.runtime.ts",
426
- "line": 16,
420
+ "line": 20,
427
421
  "character": 3
428
422
  },
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": {
435
- "__schema": "TypeRefSchema",
436
- "location": {
437
- "filePath": "eslint.main.runtime.ts",
438
- "line": 20,
439
- "character": 11
423
+ "doc": {
424
+ "__schema": "DocSchema",
425
+ "location": {
426
+ "filePath": "eslint.main.runtime.ts",
427
+ "line": 16,
428
+ "character": 3
429
+ },
430
+ "raw": "/**\n * linter config for eslint.\n */",
431
+ "comment": "linter config for eslint."
440
432
  },
441
- "name": "ESLintLib.Options"
442
- },
443
- "isOptional": false
444
- },
445
- {
446
- "__schema": "VariableLikeSchema",
447
- "location": {
448
- "filePath": "eslint.main.runtime.ts",
449
- "line": 25,
450
- "character": 3
451
- },
452
- "doc": {
453
- "__schema": "DocSchema",
454
- "location": {
455
- "filePath": "eslint.main.runtime.ts",
456
- "line": 22,
457
- "character": 3
433
+ "signature": "(property) config: ESLintLib.Options",
434
+ "name": "config",
435
+ "type": {
436
+ "__schema": "TypeRefSchema",
437
+ "location": {
438
+ "filePath": "eslint.main.runtime.ts",
439
+ "line": 20,
440
+ "character": 11
441
+ },
442
+ "name": "ESLintLib.Options"
458
443
  },
459
- "raw": "/**\n * specify to path to resolve eslint plugins from.\n */",
460
- "comment": "specify to path to resolve eslint plugins from."
444
+ "isOptional": false
461
445
  },
462
- "signature": "(property) pluginPath?: string | undefined",
463
- "name": "pluginPath",
464
- "type": {
465
- "__schema": "KeywordTypeSchema",
446
+ {
447
+ "__schema": "VariableLikeSchema",
466
448
  "location": {
467
449
  "filePath": "eslint.main.runtime.ts",
468
450
  "line": 25,
469
- "character": 16
470
- },
471
- "name": "string"
472
- },
473
- "isOptional": true
474
- },
475
- {
476
- "__schema": "VariableLikeSchema",
477
- "location": {
478
- "filePath": "eslint.main.runtime.ts",
479
- "line": 30,
480
- "character": 3
481
- },
482
- "doc": {
483
- "__schema": "DocSchema",
484
- "location": {
485
- "filePath": "eslint.main.runtime.ts",
486
- "line": 27,
487
451
  "character": 3
488
452
  },
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",
494
- "type": {
495
- "__schema": "KeywordTypeSchema",
496
- "location": {
497
- "filePath": "eslint.main.runtime.ts",
498
- "line": 30,
499
- "character": 15
453
+ "doc": {
454
+ "__schema": "DocSchema",
455
+ "location": {
456
+ "filePath": "eslint.main.runtime.ts",
457
+ "line": 22,
458
+ "character": 3
459
+ },
460
+ "raw": "/**\n * specify to path to resolve eslint plugins from.\n */",
461
+ "comment": "specify to path to resolve eslint plugins from."
500
462
  },
501
- "name": "string"
502
- },
503
- "isOptional": true
504
- },
505
- {
506
- "__schema": "VariableLikeSchema",
507
- "location": {
508
- "filePath": "eslint.main.runtime.ts",
509
- "line": 35,
510
- "character": 3
463
+ "signature": "(property) pluginPath?: string | undefined",
464
+ "name": "pluginPath",
465
+ "type": {
466
+ "__schema": "KeywordTypeSchema",
467
+ "location": {
468
+ "filePath": "eslint.main.runtime.ts",
469
+ "line": 25,
470
+ "character": 16
471
+ },
472
+ "name": "string"
473
+ },
474
+ "isOptional": true
511
475
  },
512
- "doc": {
513
- "__schema": "DocSchema",
476
+ {
477
+ "__schema": "VariableLikeSchema",
514
478
  "location": {
515
479
  "filePath": "eslint.main.runtime.ts",
516
- "line": 32,
480
+ "line": 30,
517
481
  "character": 3
518
482
  },
519
- "raw": "/**\n * file types to lint.\n */",
520
- "comment": "file types to lint."
521
- },
522
- "signature": "(property) extensions?: string[] | undefined",
523
- "name": "extensions",
524
- "type": {
525
- "__schema": "TypeArraySchema",
526
- "location": {
527
- "filePath": "eslint.main.runtime.ts",
528
- "line": 35,
529
- "character": 16
483
+ "doc": {
484
+ "__schema": "DocSchema",
485
+ "location": {
486
+ "filePath": "eslint.main.runtime.ts",
487
+ "line": 27,
488
+ "character": 3
489
+ },
490
+ "raw": "/**\n * decide the formatter for the CLI output.\n */",
491
+ "comment": "decide the formatter for the CLI output."
530
492
  },
493
+ "signature": "(property) formatter?: string | undefined",
494
+ "name": "formatter",
531
495
  "type": {
532
496
  "__schema": "KeywordTypeSchema",
533
497
  "location": {
534
498
  "filePath": "eslint.main.runtime.ts",
535
- "line": 35,
536
- "character": 16
499
+ "line": 30,
500
+ "character": 15
537
501
  },
538
502
  "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
503
+ },
504
+ "isOptional": true
549
505
  },
550
- "doc": {
551
- "__schema": "DocSchema",
506
+ {
507
+ "__schema": "VariableLikeSchema",
552
508
  "location": {
553
509
  "filePath": "eslint.main.runtime.ts",
554
- "line": 38,
510
+ "line": 35,
555
511
  "character": 3
556
512
  },
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."
559
- },
560
- "signature": "(property) tsConfig?: Record<string, any> | undefined",
561
- "name": "tsConfig",
562
- "type": {
563
- "__schema": "TypeRefSchema",
564
- "location": {
565
- "filePath": "eslint.main.runtime.ts",
566
- "line": 44,
567
- "character": 14
513
+ "doc": {
514
+ "__schema": "DocSchema",
515
+ "location": {
516
+ "filePath": "eslint.main.runtime.ts",
517
+ "line": 32,
518
+ "character": 3
519
+ },
520
+ "raw": "/**\n * file types to lint.\n */",
521
+ "comment": "file types to lint."
568
522
  },
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"
523
+ "signature": "(property) extensions?: string[] | undefined",
524
+ "name": "extensions",
525
+ "type": {
526
+ "__schema": "TypeArraySchema",
527
+ "location": {
528
+ "filePath": "eslint.main.runtime.ts",
529
+ "line": 35,
530
+ "character": 16
579
531
  },
580
- {
532
+ "type": {
581
533
  "__schema": "KeywordTypeSchema",
582
534
  "location": {
583
535
  "filePath": "eslint.main.runtime.ts",
584
- "line": 44,
585
- "character": 29
536
+ "line": 35,
537
+ "character": 16
586
538
  },
587
- "name": "any"
539
+ "name": "string"
588
540
  }
589
- ]
541
+ },
542
+ "isOptional": true
590
543
  },
591
- "isOptional": true
592
- }
593
- ]
544
+ {
545
+ "__schema": "VariableLikeSchema",
546
+ "location": {
547
+ "filePath": "eslint.main.runtime.ts",
548
+ "line": 44,
549
+ "character": 3
550
+ },
551
+ "doc": {
552
+ "__schema": "DocSchema",
553
+ "location": {
554
+ "filePath": "eslint.main.runtime.ts",
555
+ "line": 38,
556
+ "character": 3
557
+ },
558
+ "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 */",
559
+ "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."
560
+ },
561
+ "signature": "(property) tsConfig?: Record<string, any> | undefined",
562
+ "name": "tsConfig",
563
+ "type": {
564
+ "__schema": "TypeRefSchema",
565
+ "location": {
566
+ "filePath": "eslint.main.runtime.ts",
567
+ "line": 44,
568
+ "character": 14
569
+ },
570
+ "name": "Record",
571
+ "typeArgs": [
572
+ {
573
+ "__schema": "KeywordTypeSchema",
574
+ "location": {
575
+ "filePath": "eslint.main.runtime.ts",
576
+ "line": 44,
577
+ "character": 21
578
+ },
579
+ "name": "string"
580
+ },
581
+ {
582
+ "__schema": "KeywordTypeSchema",
583
+ "location": {
584
+ "filePath": "eslint.main.runtime.ts",
585
+ "line": 44,
586
+ "character": 29
587
+ },
588
+ "name": "any"
589
+ }
590
+ ]
591
+ },
592
+ "isOptional": true
593
+ }
594
+ ]
595
+ }
594
596
  }
595
597
  },
596
598
  {
@@ -885,11 +887,7 @@
885
887
  "line": 48,
886
888
  "character": 31
887
889
  },
888
- "name": "Logger",
889
- "componentId": {
890
- "scope": "teambit.harmony",
891
- "name": "logger"
892
- }
890
+ "name": "Logger"
893
891
  },
894
892
  "isOptional": false,
895
893
  "isSpread": false
@@ -965,11 +963,7 @@
965
963
  "line": 56,
966
964
  "character": 14
967
965
  },
968
- "name": "LinterContext",
969
- "componentId": {
970
- "scope": "teambit.defender",
971
- "name": "linter"
972
- }
966
+ "name": "LinterContext"
973
967
  },
974
968
  "isOptional": false,
975
969
  "isSpread": false
@@ -1016,12 +1010,7 @@
1016
1010
  "line": 58,
1017
1011
  "character": 19
1018
1012
  },
1019
- "name": "EslintConfigTransformer",
1020
- "componentId": {
1021
- "scope": "teambit.defender",
1022
- "name": "eslint/config-mutator",
1023
- "version": "0.0.101"
1024
- }
1013
+ "name": "EslintConfigTransformer"
1025
1014
  }
1026
1015
  },
1027
1016
  "isOptional": true,
@@ -1139,11 +1128,7 @@
1139
1128
  "line": 74,
1140
1129
  "character": 39
1141
1130
  },
1142
- "name": "LoggerMain",
1143
- "componentId": {
1144
- "scope": "teambit.harmony",
1145
- "name": "logger"
1146
- }
1131
+ "name": "LoggerMain"
1147
1132
  },
1148
1133
  {
1149
1134
  "__schema": "TypeRefSchema",
@@ -1152,11 +1137,7 @@
1152
1137
  "line": 74,
1153
1138
  "character": 51
1154
1139
  },
1155
- "name": "WorkspaceConfigFilesMain",
1156
- "componentId": {
1157
- "scope": "teambit.workspace",
1158
- "name": "workspace-config-files"
1159
- }
1140
+ "name": "WorkspaceConfigFilesMain"
1160
1141
  },
1161
1142
  {
1162
1143
  "__schema": "TypeRefSchema",
@@ -1165,11 +1146,7 @@
1165
1146
  "line": 74,
1166
1147
  "character": 77
1167
1148
  },
1168
- "name": "LinterMain",
1169
- "componentId": {
1170
- "scope": "teambit.defender",
1171
- "name": "linter"
1172
- }
1149
+ "name": "LinterMain"
1173
1150
  }
1174
1151
  ]
1175
1152
  },
@@ -1231,12 +1208,7 @@
1231
1208
  "line": 101,
1232
1209
  "character": 11
1233
1210
  },
1234
- "name": "EslintConfigMutator",
1235
- "componentId": {
1236
- "scope": "teambit.defender",
1237
- "name": "eslint/config-mutator",
1238
- "version": "0.0.101"
1239
- }
1211
+ "name": "EslintConfigMutator"
1240
1212
  },
1241
1213
  "isOptional": false,
1242
1214
  "isSpread": false
@@ -1263,12 +1235,7 @@
1263
1235
  "line": 102,
1264
1236
  "character": 17
1265
1237
  },
1266
- "name": "EslintConfigTransformer",
1267
- "componentId": {
1268
- "scope": "teambit.defender",
1269
- "name": "eslint/config-mutator",
1270
- "version": "0.0.101"
1271
- }
1238
+ "name": "EslintConfigTransformer"
1272
1239
  }
1273
1240
  },
1274
1241
  "isOptional": true,
@@ -1290,12 +1257,7 @@
1290
1257
  "line": 103,
1291
1258
  "character": 12
1292
1259
  },
1293
- "name": "EslintConfigTransformContext",
1294
- "componentId": {
1295
- "scope": "teambit.defender",
1296
- "name": "eslint/config-mutator",
1297
- "version": "0.0.101"
1298
- }
1260
+ "name": "EslintConfigTransformContext"
1299
1261
  },
1300
1262
  "isOptional": false,
1301
1263
  "isSpread": false
@@ -1386,11 +1348,7 @@
1386
1348
  "line": 85,
1387
1349
  "character": 54
1388
1350
  },
1389
- "name": "LinterContext",
1390
- "componentId": {
1391
- "scope": "teambit.defender",
1392
- "name": "linter"
1393
- }
1351
+ "name": "LinterContext"
1394
1352
  },
1395
1353
  "isOptional": false,
1396
1354
  "isSpread": false
@@ -1413,7 +1371,7 @@
1413
1371
  "componentId": {
1414
1372
  "scope": "teambit.defender",
1415
1373
  "name": "eslint",
1416
- "version": "1.0.257"
1374
+ "version": "1.0.258"
1417
1375
  },
1418
1376
  "taggedModuleExports": []
1419
1377
  }
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.defender_eslint@1.0.258/dist/eslint.composition.js';
2
+ import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.defender_eslint@1.0.258/dist/eslint.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/eslint",
3
- "version": "1.0.257",
3
+ "version": "1.0.258",
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.258"
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",
19
+ "@teambit/component": "1.0.258",
20
+ "@teambit/linter": "1.0.258",
21
21
  "@teambit/logger": "0.0.955",
22
22
  "@teambit/cli": "0.0.862",
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.258"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/eslint": "8.56.6",
@@ -1,7 +0,0 @@
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';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};