@code-pushup/eslint-plugin 0.8.21 → 0.8.23
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 +3 -3
- package/index.js +2 -2
- package/package.json +43 -3
package/bin.js
CHANGED
|
@@ -556,7 +556,7 @@ function slugify(text) {
|
|
|
556
556
|
}
|
|
557
557
|
function pluralize(text) {
|
|
558
558
|
if (text.endsWith("y")) {
|
|
559
|
-
return text.slice(0, -1)
|
|
559
|
+
return `${text.slice(0, -1)}ies`;
|
|
560
560
|
}
|
|
561
561
|
if (text.endsWith("s")) {
|
|
562
562
|
return `${text}es`;
|
|
@@ -627,12 +627,12 @@ function countOccurrences(values) {
|
|
|
627
627
|
);
|
|
628
628
|
}
|
|
629
629
|
function distinct(array) {
|
|
630
|
-
return
|
|
630
|
+
return [...new Set(array)];
|
|
631
631
|
}
|
|
632
632
|
function toUnixPath(path, options) {
|
|
633
633
|
const unixPath = path.replace(/\\/g, "/");
|
|
634
634
|
if (options?.toRelative) {
|
|
635
|
-
return unixPath.replace(process.cwd().replace(/\\/g, "/")
|
|
635
|
+
return unixPath.replace(`${process.cwd().replace(/\\/g, "/")}/`, "");
|
|
636
636
|
}
|
|
637
637
|
return unixPath;
|
|
638
638
|
}
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
|
|
|
5
5
|
|
|
6
6
|
// packages/plugin-eslint/package.json
|
|
7
7
|
var name = "@code-pushup/eslint-plugin";
|
|
8
|
-
var version = "0.8.
|
|
8
|
+
var version = "0.8.23";
|
|
9
9
|
|
|
10
10
|
// packages/plugin-eslint/src/lib/config.ts
|
|
11
11
|
import { z } from "zod";
|
|
@@ -624,7 +624,7 @@ function objectToKeys(obj) {
|
|
|
624
624
|
return Object.keys(obj);
|
|
625
625
|
}
|
|
626
626
|
function distinct(array) {
|
|
627
|
-
return
|
|
627
|
+
return [...new Set(array)];
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
// packages/plugin-eslint/src/lib/meta/hash.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/eslint-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.23",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@code-pushup/utils": "*",
|
|
6
6
|
"@code-pushup/models": "*",
|
|
@@ -14,5 +14,45 @@
|
|
|
14
14
|
"@nx/devkit": {
|
|
15
15
|
"optional": true
|
|
16
16
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"homepage": "https://github.com/code-pushup/cli#readme",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/code-pushup/cli/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/code-pushup/cli.git",
|
|
26
|
+
"directory": "packages/plugin-eslint"
|
|
27
|
+
},
|
|
28
|
+
"contributors": [
|
|
29
|
+
{
|
|
30
|
+
"name": "Igor Katsuba",
|
|
31
|
+
"email": "igor@katsuba.dev",
|
|
32
|
+
"url": "https://katsuba.dev"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Kateřina Pilátová",
|
|
36
|
+
"email": "katerina.pilatova@flowup.cz",
|
|
37
|
+
"url": "https://github.com/Tlacenka"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "Matěj Chalk",
|
|
41
|
+
"email": "matej.chalk@flowup.cz",
|
|
42
|
+
"url": "https://github.com/matejchalk"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "Michael Hladky",
|
|
46
|
+
"email": "michael.hladky@push-based.io",
|
|
47
|
+
"url": "https://push-based.io"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "Michael Seredenko",
|
|
51
|
+
"email": "misha.seredenko@push-based.io",
|
|
52
|
+
"url": "https://github.com/MishaSeredenkoPushBased"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"type": "module",
|
|
56
|
+
"main": "./index.js",
|
|
57
|
+
"types": "./src/index.d.ts"
|
|
58
|
+
}
|