@teambit/eslint 1.0.225 → 1.0.227

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.225" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/eslint@1.0.227" 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={74019:(e,t,o)=>{var r={id:"teambit.defender/eslint@1.0.225",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(74019);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={90721:(e,t,o)=>{var r={id:"teambit.defender/eslint@1.0.227",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(90721);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})()));
@@ -74,11 +74,7 @@
74
74
  "line": 48,
75
75
  "character": 31
76
76
  },
77
- "name": "Logger",
78
- "componentId": {
79
- "scope": "teambit.harmony",
80
- "name": "logger"
81
- }
77
+ "name": "Logger"
82
78
  },
83
79
  "isOptional": false,
84
80
  "isSpread": false
@@ -154,11 +150,7 @@
154
150
  "line": 56,
155
151
  "character": 14
156
152
  },
157
- "name": "LinterContext",
158
- "componentId": {
159
- "scope": "teambit.defender",
160
- "name": "linter"
161
- }
153
+ "name": "LinterContext"
162
154
  },
163
155
  "isOptional": false,
164
156
  "isSpread": false
@@ -205,12 +197,7 @@
205
197
  "line": 58,
206
198
  "character": 19
207
199
  },
208
- "name": "EslintConfigTransformer",
209
- "componentId": {
210
- "scope": "teambit.defender",
211
- "name": "eslint/config-mutator",
212
- "version": "0.0.101"
213
- }
200
+ "name": "EslintConfigTransformer"
214
201
  }
215
202
  },
216
203
  "isOptional": true,
@@ -328,11 +315,7 @@
328
315
  "line": 74,
329
316
  "character": 39
330
317
  },
331
- "name": "LoggerMain",
332
- "componentId": {
333
- "scope": "teambit.harmony",
334
- "name": "logger"
335
- }
318
+ "name": "LoggerMain"
336
319
  },
337
320
  {
338
321
  "__schema": "TypeRefSchema",
@@ -341,11 +324,7 @@
341
324
  "line": 74,
342
325
  "character": 51
343
326
  },
344
- "name": "WorkspaceConfigFilesMain",
345
- "componentId": {
346
- "scope": "teambit.workspace",
347
- "name": "workspace-config-files"
348
- }
327
+ "name": "WorkspaceConfigFilesMain"
349
328
  },
350
329
  {
351
330
  "__schema": "TypeRefSchema",
@@ -354,11 +333,7 @@
354
333
  "line": 74,
355
334
  "character": 77
356
335
  },
357
- "name": "LinterMain",
358
- "componentId": {
359
- "scope": "teambit.defender",
360
- "name": "linter"
361
- }
336
+ "name": "LinterMain"
362
337
  }
363
338
  ]
364
339
  },
@@ -885,11 +860,7 @@
885
860
  "line": 48,
886
861
  "character": 31
887
862
  },
888
- "name": "Logger",
889
- "componentId": {
890
- "scope": "teambit.harmony",
891
- "name": "logger"
892
- }
863
+ "name": "Logger"
893
864
  },
894
865
  "isOptional": false,
895
866
  "isSpread": false
@@ -965,11 +936,7 @@
965
936
  "line": 56,
966
937
  "character": 14
967
938
  },
968
- "name": "LinterContext",
969
- "componentId": {
970
- "scope": "teambit.defender",
971
- "name": "linter"
972
- }
939
+ "name": "LinterContext"
973
940
  },
974
941
  "isOptional": false,
975
942
  "isSpread": false
@@ -1016,12 +983,7 @@
1016
983
  "line": 58,
1017
984
  "character": 19
1018
985
  },
1019
- "name": "EslintConfigTransformer",
1020
- "componentId": {
1021
- "scope": "teambit.defender",
1022
- "name": "eslint/config-mutator",
1023
- "version": "0.0.101"
1024
- }
986
+ "name": "EslintConfigTransformer"
1025
987
  }
1026
988
  },
1027
989
  "isOptional": true,
@@ -1139,11 +1101,7 @@
1139
1101
  "line": 74,
1140
1102
  "character": 39
1141
1103
  },
1142
- "name": "LoggerMain",
1143
- "componentId": {
1144
- "scope": "teambit.harmony",
1145
- "name": "logger"
1146
- }
1104
+ "name": "LoggerMain"
1147
1105
  },
1148
1106
  {
1149
1107
  "__schema": "TypeRefSchema",
@@ -1152,11 +1110,7 @@
1152
1110
  "line": 74,
1153
1111
  "character": 51
1154
1112
  },
1155
- "name": "WorkspaceConfigFilesMain",
1156
- "componentId": {
1157
- "scope": "teambit.workspace",
1158
- "name": "workspace-config-files"
1159
- }
1113
+ "name": "WorkspaceConfigFilesMain"
1160
1114
  },
1161
1115
  {
1162
1116
  "__schema": "TypeRefSchema",
@@ -1165,11 +1119,7 @@
1165
1119
  "line": 74,
1166
1120
  "character": 77
1167
1121
  },
1168
- "name": "LinterMain",
1169
- "componentId": {
1170
- "scope": "teambit.defender",
1171
- "name": "linter"
1172
- }
1122
+ "name": "LinterMain"
1173
1123
  }
1174
1124
  ]
1175
1125
  },
@@ -1231,12 +1181,7 @@
1231
1181
  "line": 101,
1232
1182
  "character": 11
1233
1183
  },
1234
- "name": "EslintConfigMutator",
1235
- "componentId": {
1236
- "scope": "teambit.defender",
1237
- "name": "eslint/config-mutator",
1238
- "version": "0.0.101"
1239
- }
1184
+ "name": "EslintConfigMutator"
1240
1185
  },
1241
1186
  "isOptional": false,
1242
1187
  "isSpread": false
@@ -1263,12 +1208,7 @@
1263
1208
  "line": 102,
1264
1209
  "character": 17
1265
1210
  },
1266
- "name": "EslintConfigTransformer",
1267
- "componentId": {
1268
- "scope": "teambit.defender",
1269
- "name": "eslint/config-mutator",
1270
- "version": "0.0.101"
1271
- }
1211
+ "name": "EslintConfigTransformer"
1272
1212
  }
1273
1213
  },
1274
1214
  "isOptional": true,
@@ -1290,12 +1230,7 @@
1290
1230
  "line": 103,
1291
1231
  "character": 12
1292
1232
  },
1293
- "name": "EslintConfigTransformContext",
1294
- "componentId": {
1295
- "scope": "teambit.defender",
1296
- "name": "eslint/config-mutator",
1297
- "version": "0.0.101"
1298
- }
1233
+ "name": "EslintConfigTransformContext"
1299
1234
  },
1300
1235
  "isOptional": false,
1301
1236
  "isSpread": false
@@ -1386,11 +1321,7 @@
1386
1321
  "line": 85,
1387
1322
  "character": 54
1388
1323
  },
1389
- "name": "LinterContext",
1390
- "componentId": {
1391
- "scope": "teambit.defender",
1392
- "name": "linter"
1393
- }
1324
+ "name": "LinterContext"
1394
1325
  },
1395
1326
  "isOptional": false,
1396
1327
  "isSpread": false
@@ -1413,7 +1344,7 @@
1413
1344
  "componentId": {
1414
1345
  "scope": "teambit.defender",
1415
1346
  "name": "eslint",
1416
- "version": "1.0.225"
1347
+ "version": "1.0.227"
1417
1348
  },
1418
1349
  "taggedModuleExports": []
1419
1350
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_eslint@1.0.225/dist/eslint.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_eslint@1.0.225/dist/eslint.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_eslint@1.0.227/dist/eslint.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_eslint@1.0.227/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.225",
3
+ "version": "1.0.227",
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.225"
9
+ "version": "1.0.227"
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.225",
20
- "@teambit/linter": "1.0.225",
21
- "@teambit/logger": "0.0.952",
22
- "@teambit/cli": "0.0.859",
19
+ "@teambit/component": "1.0.227",
20
+ "@teambit/linter": "1.0.227",
21
+ "@teambit/logger": "0.0.953",
22
+ "@teambit/cli": "0.0.860",
23
23
  "@teambit/defender.eslint.config-mutator": "0.0.101",
24
- "@teambit/workspace-config-files": "1.0.225"
24
+ "@teambit/workspace-config-files": "1.0.227"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/eslint": "8.56.6",
@@ -30,7 +30,7 @@
30
30
  "@types/object-hash": "1.3.4",
31
31
  "@types/mocha": "10.0.1",
32
32
  "chai": "4.3.0",
33
- "@teambit/harmony.envs.core-aspect-env": "0.0.27"
33
+ "@teambit/harmony.envs.core-aspect-env": "0.0.30"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^17.0.0 || ^18.0.0",
package/tsconfig.json CHANGED
@@ -20,7 +20,8 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false
23
+ "noImplicitAny": false,
24
+ "composite": true
24
25
  },
25
26
  "exclude": [
26
27
  "artifacts",
@@ -35,5 +36,22 @@
35
36
  "include": [
36
37
  "**/*",
37
38
  "**/*.json"
39
+ ],
40
+ "references": [
41
+ {
42
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
43
+ },
44
+ {
45
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@1.0.227"
46
+ },
47
+ {
48
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
49
+ },
50
+ {
51
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
52
+ },
53
+ {
54
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace-config-files@1.0.227"
55
+ }
38
56
  ]
39
57
  }
@@ -1,2 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
- export declare const ESLintAspect: Aspect;
@@ -1 +0,0 @@
1
- export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,31 +0,0 @@
1
- import { Linter, LinterContext, LintResults } from '@teambit/linter';
2
- import { Logger } from '@teambit/logger';
3
- import { ESLintOptions } from './eslint.main.runtime';
4
- export declare class ESLintLinter implements Linter {
5
- private logger;
6
- private options;
7
- /**
8
- * reference to the eslint module.
9
- */
10
- private ESLint?;
11
- constructor(logger: Logger, options?: ESLintOptions,
12
- /**
13
- * reference to the eslint module.
14
- */
15
- ESLint?: any);
16
- id: string;
17
- displayName: string;
18
- displayConfig(): string;
19
- lint(context: LinterContext): Promise<LintResults>;
20
- private createTempTsConfigFile;
21
- private computeComponentResultsWithTotals;
22
- private computeManyComponentsTotals;
23
- /**
24
- * Create the eslint instance by options that was already merged with context
25
- * @param options
26
- * @param ESLintModule
27
- * @returns
28
- */
29
- private createEslint;
30
- version(): any;
31
- }
@@ -1,44 +0,0 @@
1
- import { ESLint as ESLintLib } from 'eslint';
2
- import { Linter, LinterContext, LinterMain } from '@teambit/linter';
3
- import { Logger, LoggerMain } from '@teambit/logger';
4
- import { EslintConfigMutator, EslintConfigTransformContext, EslintConfigTransformer } from '@teambit/defender.eslint.config-mutator';
5
- import { WorkspaceConfigFilesMain } from '@teambit/workspace-config-files';
6
- export type ESLintOptions = {
7
- /**
8
- * linter config for eslint.
9
- */
10
- config: ESLintLib.Options;
11
- /**
12
- * specify to path to resolve eslint plugins from.
13
- */
14
- pluginPath?: string;
15
- /**
16
- * decide the formatter for the CLI output.
17
- */
18
- formatter?: string;
19
- /**
20
- * file types to lint.
21
- */
22
- extensions?: string[];
23
- /**
24
- * typescript config for eslint.
25
- * If you pass this, bit will auto generate a temp config file in `node_modules/.cache` and pass it to eslint.
26
- * 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.
27
- * a `../../` will be added to the beginning of the path.
28
- */
29
- tsConfig?: Record<string, any>;
30
- };
31
- export declare class ESLintMain {
32
- private logger;
33
- constructor(logger: Logger);
34
- /**
35
- * create a eslint linter instance.
36
- * @param options eslint options.
37
- * @param ESLintModule reference to an `eslint` module.
38
- */
39
- createLinter(context: LinterContext, options: ESLintOptions, transformers?: EslintConfigTransformer[], ESLintModule?: any): Linter;
40
- static runtime: import("@teambit/harmony").RuntimeDefinition;
41
- static dependencies: import("@teambit/harmony").Aspect[];
42
- static provider([loggerExt]: [LoggerMain, WorkspaceConfigFilesMain, LinterMain]): Promise<ESLintMain>;
43
- }
44
- export declare function runTransformersWithContext(config: EslintConfigMutator, transformers: EslintConfigTransformer[] | undefined, context: EslintConfigTransformContext): EslintConfigMutator;
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { ESLintAspect } from './eslint.aspect';
2
- export { ESLintAspect };
3
- export type { ESLintMain, ESLintOptions } from './eslint.main.runtime';
4
- export default ESLintAspect;