@code-pushup/eslint-plugin 0.6.2 → 0.6.4

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.
Files changed (3) hide show
  1. package/bin.js +1 -35
  2. package/index.js +2 -36
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -588,40 +588,6 @@ function compareIssueSeverity(severity1, severity2) {
588
588
  return levels[severity1] - levels[severity2];
589
589
  }
590
590
 
591
- // packages/utils/src/lib/execute-process.ts
592
- function objectToCliArgs(params) {
593
- if (!params) {
594
- return [];
595
- }
596
- return Object.entries(params).flatMap(([key, value]) => {
597
- if (key === "_") {
598
- if (Array.isArray(value)) {
599
- return value;
600
- } else {
601
- return [value + ""];
602
- }
603
- }
604
- const prefix = key.length === 1 ? "-" : "--";
605
- if (Array.isArray(value)) {
606
- return value.map((v) => `${prefix}${key}="${v}"`);
607
- }
608
- if (Array.isArray(value)) {
609
- return value.map((v) => `${prefix}${key}="${v}"`);
610
- }
611
- if (typeof value === "string") {
612
- return [`${prefix}${key}="${value}"`];
613
- }
614
- if (typeof value === "number") {
615
- return [`${prefix}${key}=${value}`];
616
- }
617
- if (typeof value === "boolean") {
618
- return [`${prefix}${value ? "" : "no-"}${key}`];
619
- }
620
- throw new Error(`Unsupported type ${typeof value} for key ${key}`);
621
- });
622
- }
623
- objectToCliArgs({ z: 5 });
624
-
625
591
  // packages/utils/src/lib/git.ts
626
592
  import simpleGit from "simple-git";
627
593
  var git = simpleGit();
@@ -635,7 +601,7 @@ import cliui from "@isaacs/cliui";
635
601
  import chalk3 from "chalk";
636
602
  import Table from "cli-table3";
637
603
 
638
- // packages/utils/src/lib/transformation.ts
604
+ // packages/utils/src/lib/transform.ts
639
605
  function toArray(val) {
640
606
  return Array.isArray(val) ? val : [val];
641
607
  }
package/index.js CHANGED
@@ -5,7 +5,7 @@ import { fileURLToPath } from "url";
5
5
 
6
6
  // packages/plugin-eslint/package.json
7
7
  var name = "@code-pushup/eslint-plugin";
8
- var version = "0.6.2";
8
+ var version = "0.6.4";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
@@ -594,40 +594,6 @@ function pluginWorkDir(slug) {
594
594
  return join("node_modules", ".code-pushup", slug);
595
595
  }
596
596
 
597
- // packages/utils/src/lib/execute-process.ts
598
- function objectToCliArgs(params) {
599
- if (!params) {
600
- return [];
601
- }
602
- return Object.entries(params).flatMap(([key, value]) => {
603
- if (key === "_") {
604
- if (Array.isArray(value)) {
605
- return value;
606
- } else {
607
- return [value + ""];
608
- }
609
- }
610
- const prefix = key.length === 1 ? "-" : "--";
611
- if (Array.isArray(value)) {
612
- return value.map((v) => `${prefix}${key}="${v}"`);
613
- }
614
- if (Array.isArray(value)) {
615
- return value.map((v) => `${prefix}${key}="${v}"`);
616
- }
617
- if (typeof value === "string") {
618
- return [`${prefix}${key}="${value}"`];
619
- }
620
- if (typeof value === "number") {
621
- return [`${prefix}${key}=${value}`];
622
- }
623
- if (typeof value === "boolean") {
624
- return [`${prefix}${value ? "" : "no-"}${key}`];
625
- }
626
- throw new Error(`Unsupported type ${typeof value} for key ${key}`);
627
- });
628
- }
629
- objectToCliArgs({ z: 5 });
630
-
631
597
  // packages/utils/src/lib/git.ts
632
598
  import simpleGit from "simple-git";
633
599
  var git = simpleGit();
@@ -641,7 +607,7 @@ import cliui from "@isaacs/cliui";
641
607
  import chalk3 from "chalk";
642
608
  import Table from "cli-table3";
643
609
 
644
- // packages/utils/src/lib/transformation.ts
610
+ // packages/utils/src/lib/transform.ts
645
611
  function toArray(val) {
646
612
  return Array.isArray(val) ? val : [val];
647
613
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "dependencies": {
5
5
  "@code-pushup/utils": "*",
6
6
  "@code-pushup/models": "*",