@alextheman/eslint-plugin 4.4.0 → 4.4.1

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.
package/dist/index.cjs CHANGED
@@ -59,7 +59,7 @@ eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
59
59
 
60
60
  //#region package.json
61
61
  var name = "@alextheman/eslint-plugin";
62
- var version = "4.4.0";
62
+ var version = "4.4.1";
63
63
 
64
64
  //#endregion
65
65
  //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
@@ -3433,10 +3433,16 @@ var checkCallExpression_default = checkCallExpression;
3433
3433
 
3434
3434
  //#endregion
3435
3435
  //#region src/utility/combineRestrictedImports.ts
3436
- function combineRestrictedImports(firstGroup, secondGroup) {
3436
+ function combineRestrictedImports(...groups) {
3437
+ const paths = [];
3438
+ const patterns = [];
3439
+ for (const group of groups) {
3440
+ if (group.paths) paths.push(...group.paths);
3441
+ if (group.patterns) patterns.push(...group.patterns);
3442
+ }
3437
3443
  const combinedGroup = {
3438
- paths: [...firstGroup.paths ?? [], ...secondGroup.paths ?? []],
3439
- patterns: [...firstGroup.patterns ?? [], ...secondGroup.patterns ?? []]
3444
+ paths,
3445
+ patterns
3440
3446
  };
3441
3447
  if (combinedGroup.paths.length === 0) return (0, __alextheman_utility.omitProperties)(combinedGroup, "paths");
3442
3448
  if (combinedGroup.patterns.length === 0) return (0, __alextheman_utility.omitProperties)(combinedGroup, "patterns");
package/dist/index.d.cts CHANGED
@@ -235,7 +235,7 @@ declare function parseUseNormalizedImportsOptions(data: unknown): {
235
235
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
236
236
  //#endregion
237
237
  //#region src/utility/combineRestrictedImports.d.ts
238
- declare function combineRestrictedImports(firstGroup: NoRestrictedImportsOptions, secondGroup: NoRestrictedImportsOptions): NoRestrictedImportsOptions;
238
+ declare function combineRestrictedImports(...groups: NoRestrictedImportsOptions[]): NoRestrictedImportsOptions;
239
239
  //#endregion
240
240
  //#region src/utility/createRuleSchemaFromZodSchema.d.ts
241
241
  declare function createRuleSchemaFromZodSchema(schema: z.ZodType): JSONSchema4[];
package/dist/index.d.ts CHANGED
@@ -235,7 +235,7 @@ declare function parseUseNormalizedImportsOptions(data: unknown): {
235
235
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
236
236
  //#endregion
237
237
  //#region src/utility/combineRestrictedImports.d.ts
238
- declare function combineRestrictedImports(firstGroup: NoRestrictedImportsOptions, secondGroup: NoRestrictedImportsOptions): NoRestrictedImportsOptions;
238
+ declare function combineRestrictedImports(...groups: NoRestrictedImportsOptions[]): NoRestrictedImportsOptions;
239
239
  //#endregion
240
240
  //#region src/utility/createRuleSchemaFromZodSchema.d.ts
241
241
  declare function createRuleSchemaFromZodSchema(schema: z.ZodType): JSONSchema4[];
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  //#endregion
46
46
  //#region package.json
47
47
  var name = "@alextheman/eslint-plugin";
48
- var version = "4.4.0";
48
+ var version = "4.4.1";
49
49
 
50
50
  //#endregion
51
51
  //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
@@ -3419,10 +3419,16 @@ var checkCallExpression_default = checkCallExpression;
3419
3419
 
3420
3420
  //#endregion
3421
3421
  //#region src/utility/combineRestrictedImports.ts
3422
- function combineRestrictedImports(firstGroup, secondGroup) {
3422
+ function combineRestrictedImports(...groups) {
3423
+ const paths = [];
3424
+ const patterns = [];
3425
+ for (const group of groups) {
3426
+ if (group.paths) paths.push(...group.paths);
3427
+ if (group.patterns) patterns.push(...group.patterns);
3428
+ }
3423
3429
  const combinedGroup = {
3424
- paths: [...firstGroup.paths ?? [], ...secondGroup.paths ?? []],
3425
- patterns: [...firstGroup.patterns ?? [], ...secondGroup.patterns ?? []]
3430
+ paths,
3431
+ patterns
3426
3432
  };
3427
3433
  if (combinedGroup.paths.length === 0) return omitProperties(combinedGroup, "paths");
3428
3434
  if (combinedGroup.patterns.length === 0) return omitProperties(combinedGroup, "patterns");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "repository": {
6
6
  "type": "git",