@code-pushup/eslint-plugin 0.5.3 → 0.5.5

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 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -740,7 +740,8 @@ function toAudit(slug, issues) {
740
740
  const severityCounts = countOccurrences(
741
741
  auditIssues.map(({ severity }) => severity)
742
742
  );
743
- const summaryText = objectToEntries(severityCounts).sort((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ");
743
+ const severities = objectToEntries(severityCounts);
744
+ const summaryText = severities.length ? severities.sort((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ") : "passed";
744
745
  return {
745
746
  slug,
746
747
  score: Number(auditIssues.length === 0),
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.5.3";
8
+ var version = "0.5.5";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "dependencies": {
5
5
  "@code-pushup/utils": "*",
6
6
  "@code-pushup/models": "*",