@code-pushup/eslint-plugin 0.16.7 → 0.17.0

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 +5 -6
  2. package/index.js +6 -7
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -6,8 +6,8 @@ import { dirname, join as join2 } from "node:path";
6
6
  import { z as z2 } from "zod";
7
7
 
8
8
  // packages/models/src/lib/implementation/schemas.ts
9
+ import { MATERIAL_ICONS } from "vscode-material-icons";
9
10
  import { z } from "zod";
10
- import { MATERIAL_ICONS } from "@code-pushup/portal-client";
11
11
 
12
12
  // packages/models/src/lib/implementation/limits.ts
13
13
  var MAX_SLUG_LENGTH = 128;
@@ -165,10 +165,9 @@ function scorableSchema(description, refSchema, duplicateCheckFn, duplicateMessa
165
165
  { description }
166
166
  );
167
167
  }
168
- var materialIconSchema = z.enum(
169
- MATERIAL_ICONS,
170
- { description: "Icon from VSCode Material Icons extension" }
171
- );
168
+ var materialIconSchema = z.enum(MATERIAL_ICONS, {
169
+ description: "Icon from VSCode Material Icons extension"
170
+ });
172
171
  function hasWeightedRefsInCategories(categoryRefs) {
173
172
  return categoryRefs.reduce((acc, { weight }) => weight + acc, 0) !== 0;
174
173
  }
@@ -551,7 +550,7 @@ var reportSchema = packageVersionSchema({
551
550
  // packages/utils/src/lib/file-system.ts
552
551
  import { bundleRequire } from "bundle-require";
553
552
  import chalk from "chalk";
554
- import { mkdir, readFile, readdir, stat } from "node:fs/promises";
553
+ import { mkdir, readFile, readdir, rm, stat } from "node:fs/promises";
555
554
  import { join } from "node:path";
556
555
 
557
556
  // packages/utils/src/lib/formatting.ts
package/index.js CHANGED
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
5
5
 
6
6
  // packages/plugin-eslint/package.json
7
7
  var name = "@code-pushup/eslint-plugin";
8
- var version = "0.16.7";
8
+ var version = "0.17.0";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
@@ -28,8 +28,8 @@ var eslintPluginConfigSchema = z.object({
28
28
  import { z as z3 } from "zod";
29
29
 
30
30
  // packages/models/src/lib/implementation/schemas.ts
31
+ import { MATERIAL_ICONS } from "vscode-material-icons";
31
32
  import { z as z2 } from "zod";
32
- import { MATERIAL_ICONS } from "@code-pushup/portal-client";
33
33
 
34
34
  // packages/models/src/lib/implementation/limits.ts
35
35
  var MAX_SLUG_LENGTH = 128;
@@ -187,10 +187,9 @@ function scorableSchema(description, refSchema, duplicateCheckFn, duplicateMessa
187
187
  { description }
188
188
  );
189
189
  }
190
- var materialIconSchema = z2.enum(
191
- MATERIAL_ICONS,
192
- { description: "Icon from VSCode Material Icons extension" }
193
- );
190
+ var materialIconSchema = z2.enum(MATERIAL_ICONS, {
191
+ description: "Icon from VSCode Material Icons extension"
192
+ });
194
193
  function hasWeightedRefsInCategories(categoryRefs) {
195
194
  return categoryRefs.reduce((acc, { weight }) => weight + acc, 0) !== 0;
196
195
  }
@@ -573,7 +572,7 @@ var reportSchema = packageVersionSchema({
573
572
  // packages/utils/src/lib/file-system.ts
574
573
  import { bundleRequire } from "bundle-require";
575
574
  import chalk from "chalk";
576
- import { mkdir, readFile, readdir, stat } from "node:fs/promises";
575
+ import { mkdir, readFile, readdir, rm, stat } from "node:fs/promises";
577
576
  import { join } from "node:path";
578
577
 
579
578
  // packages/utils/src/lib/formatting.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.16.7",
3
+ "version": "0.17.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/utils": "*",