@code-pushup/eslint-plugin 0.5.7 → 0.6.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.
- package/bin.js +2 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -741,7 +741,7 @@ function toAudit(slug, issues) {
|
|
|
741
741
|
auditIssues.map(({ severity }) => severity)
|
|
742
742
|
);
|
|
743
743
|
const severities = objectToEntries(severityCounts);
|
|
744
|
-
const summaryText = severities.
|
|
744
|
+
const summaryText = severities.sort((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ");
|
|
745
745
|
return {
|
|
746
746
|
slug,
|
|
747
747
|
score: Number(auditIssues.length === 0),
|
|
@@ -805,6 +805,7 @@ async function executeRunner(argv = process.argv) {
|
|
|
805
805
|
slug,
|
|
806
806
|
score: 1,
|
|
807
807
|
value: 0,
|
|
808
|
+
displayValue: "passed",
|
|
808
809
|
details: { issues: [] }
|
|
809
810
|
}
|
|
810
811
|
);
|
package/index.js
CHANGED