@code-pushup/eslint-plugin 0.16.5 → 0.16.7

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 +2 -2
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -186,7 +186,7 @@ var auditSchema = z2.object({
186
186
  );
187
187
  var pluginAuditsSchema = z2.array(auditSchema, {
188
188
  description: "List of audits maintained in a plugin"
189
- }).refine(
189
+ }).min(1).refine(
190
190
  (auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
191
191
  (auditMetadata) => ({
192
192
  message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
@@ -496,7 +496,7 @@ var pluginReportSchema = pluginMetaSchema.merge(
496
496
  })
497
497
  ).merge(
498
498
  z12.object({
499
- audits: z12.array(auditReportSchema),
499
+ audits: z12.array(auditReportSchema).min(1),
500
500
  groups: z12.array(groupSchema).optional()
501
501
  })
502
502
  ).refine(
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.5";
8
+ var version = "0.16.7";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
@@ -208,7 +208,7 @@ var auditSchema = z3.object({
208
208
  );
209
209
  var pluginAuditsSchema = z3.array(auditSchema, {
210
210
  description: "List of audits maintained in a plugin"
211
- }).refine(
211
+ }).min(1).refine(
212
212
  (auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
213
213
  (auditMetadata) => ({
214
214
  message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
@@ -518,7 +518,7 @@ var pluginReportSchema = pluginMetaSchema.merge(
518
518
  })
519
519
  ).merge(
520
520
  z13.object({
521
- audits: z13.array(auditReportSchema),
521
+ audits: z13.array(auditReportSchema).min(1),
522
522
  groups: z13.array(groupSchema).optional()
523
523
  })
524
524
  ).refine(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/utils": "*",