@code-pushup/eslint-plugin 0.5.4 → 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.
- package/bin.js +2 -1
- package/index.js +1 -1
- 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
|
|
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