@code-pushup/eslint-plugin 0.52.0 → 0.53.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 -2
  2. package/index.js +3 -3
  3. package/package.json +39 -18
package/bin.js CHANGED
@@ -16,7 +16,7 @@ var MAX_ISSUE_MESSAGE_LENGTH = 1024;
16
16
  var slugRegex = /^[a-z\d]+(?:-[a-z\d]+)*$/;
17
17
  var filenameRegex = /^(?!.*[ \\/:*?"<>|]).+$/;
18
18
  function hasDuplicateStrings(strings) {
19
- const sortedStrings = [...strings].sort();
19
+ const sortedStrings = strings.toSorted();
20
20
  const duplStrings = sortedStrings.filter(
21
21
  (item, index) => index !== 0 && item === sortedStrings[index - 1]
22
22
  );
@@ -1079,7 +1079,7 @@ function toAudit(slug, issues) {
1079
1079
  auditIssues.map(({ severity }) => severity)
1080
1080
  );
1081
1081
  const severities = objectToEntries(severityCounts);
1082
- const summaryText = [...severities].sort((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ");
1082
+ const summaryText = severities.toSorted((a, b) => -compareIssueSeverity(a[0], b[0])).map(([severity, count = 0]) => pluralizeToken(severity, count)).join(", ");
1083
1083
  return {
1084
1084
  slug,
1085
1085
  score: Number(auditIssues.length === 0),
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
 
5
5
  // packages/plugin-eslint/package.json
6
6
  var name = "@code-pushup/eslint-plugin";
7
- var version = "0.52.0";
7
+ var version = "0.53.1";
8
8
 
9
9
  // packages/plugin-eslint/src/lib/config.ts
10
10
  import { z as z17 } from "zod";
@@ -23,7 +23,7 @@ var MAX_ISSUE_MESSAGE_LENGTH = 1024;
23
23
  var slugRegex = /^[a-z\d]+(?:-[a-z\d]+)*$/;
24
24
  var filenameRegex = /^(?!.*[ \\/:*?"<>|]).+$/;
25
25
  function hasDuplicateStrings(strings) {
26
- const sortedStrings = [...strings].sort();
26
+ const sortedStrings = strings.toSorted();
27
27
  const duplStrings = sortedStrings.filter(
28
28
  (item, index) => index !== 0 && item === sortedStrings[index - 1]
29
29
  );
@@ -1051,7 +1051,7 @@ function groupsFromRuleCategories(rules) {
1051
1051
  })
1052
1052
  )
1053
1053
  );
1054
- return [...groups].sort((a, b) => a.slug.localeCompare(b.slug));
1054
+ return groups.toSorted((a, b) => a.slug.localeCompare(b.slug));
1055
1055
  }
1056
1056
 
1057
1057
  // packages/plugin-eslint/src/lib/meta/transform.ts
package/package.json CHANGED
@@ -1,35 +1,56 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.52.0",
3
+ "version": "0.53.1",
4
4
  "license": "MIT",
5
5
  "description": "Code PushUp plugin for detecting problems in source code using ESLint.📋",
6
- "dependencies": {
7
- "@code-pushup/utils": "0.52.0",
8
- "@code-pushup/models": "0.52.0",
9
- "eslint": "^8.46.0",
10
- "zod": "^3.22.4"
11
- },
12
- "peerDependencies": {
13
- "@nx/devkit": "^17.0.0 || ^18.0.0 || ^19.0.0"
14
- },
15
- "peerDependenciesMeta": {
16
- "@nx/devkit": {
17
- "optional": true
18
- }
19
- },
20
6
  "homepage": "https://github.com/code-pushup/cli/tree/main/packages/plugin-eslint#readme",
21
7
  "bugs": {
22
- "url": "https://github.com/code-pushup/cli/issues"
8
+ "url": "https://github.com/code-pushup/cli/issues?q=is%3Aissue%20state%3Aopen%20type%3ABug%20label%3A\"🧩%20eslint-plugin\""
23
9
  },
24
10
  "repository": {
25
11
  "type": "git",
26
12
  "url": "git+https://github.com/code-pushup/cli.git",
27
13
  "directory": "packages/plugin-eslint"
28
14
  },
15
+ "keywords": [
16
+ "CLI",
17
+ "Code PushUp",
18
+ "ESLint",
19
+ "JavaScript",
20
+ "TypeScript",
21
+ "plugin",
22
+ "static analysis",
23
+ "linting",
24
+ "audit",
25
+ "performance",
26
+ "score monitoring",
27
+ "code quality",
28
+ "conformance",
29
+ "KPI tracking",
30
+ "tech debt",
31
+ "automated feedback",
32
+ "regression guard",
33
+ "actionable feedback",
34
+ "trend analysis"
35
+ ],
29
36
  "publishConfig": {
30
37
  "access": "public"
31
38
  },
32
39
  "type": "module",
33
40
  "main": "./index.js",
34
- "types": "./src/index.d.ts"
35
- }
41
+ "types": "./src/index.d.ts",
42
+ "dependencies": {
43
+ "@code-pushup/utils": "0.53.1",
44
+ "@code-pushup/models": "0.53.1",
45
+ "eslint": "^8.46.0",
46
+ "zod": "^3.22.4"
47
+ },
48
+ "peerDependencies": {
49
+ "@nx/devkit": "^17.0.0 || ^18.0.0 || ^19.0.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "@nx/devkit": {
53
+ "optional": true
54
+ }
55
+ }
56
+ }