@code-pushup/eslint-plugin 0.5.7 → 0.6.1

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 +2 -2
  3. 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.length ? severities.sort((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ") : "passed";
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
@@ -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.7";
8
+ var version = "0.6.1";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
@@ -913,7 +913,7 @@ async function findCodePushupEslintrc(project) {
913
913
  }
914
914
  function getLintFilePatterns(project) {
915
915
  const options = project.targets?.["lint"]?.options;
916
- return options?.lintFilePatterns == null ? [project.root] : toArray(options.lintFilePatterns);
916
+ return options?.lintFilePatterns == null ? [`${project.root}/**/*`] : toArray(options.lintFilePatterns);
917
917
  }
918
918
  function getEslintConfig(project) {
919
919
  const options = project.targets?.["lint"]?.options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.5.7",
3
+ "version": "0.6.1",
4
4
  "dependencies": {
5
5
  "@code-pushup/utils": "*",
6
6
  "@code-pushup/models": "*",