@code-pushup/eslint-plugin 0.6.5 → 0.6.6

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 +7 -7
  2. package/index.js +1 -1
  3. package/package.json +43 -3
package/bin.js CHANGED
@@ -567,13 +567,6 @@ async function readJsonFile(path) {
567
567
  const text = await readTextFile(path);
568
568
  return JSON.parse(text);
569
569
  }
570
- function toUnixPath(path, options) {
571
- const unixPath = path.replace(/\\/g, "/");
572
- if (options?.toRelative) {
573
- return unixPath.replace(process.cwd().replace(/\\/g, "/") + "/", "");
574
- }
575
- return unixPath;
576
- }
577
570
  function pluginWorkDir(slug) {
578
571
  return join("node_modules", ".code-pushup", slug);
579
572
  }
@@ -617,6 +610,13 @@ function countOccurrences(values) {
617
610
  function distinct(array) {
618
611
  return Array.from(new Set(array));
619
612
  }
613
+ function toUnixPath(path, options) {
614
+ const unixPath = path.replace(/\\/g, "/");
615
+ if (options?.toRelative) {
616
+ return unixPath.replace(process.cwd().replace(/\\/g, "/") + "/", "");
617
+ }
618
+ return unixPath;
619
+ }
620
620
 
621
621
  // packages/plugin-eslint/src/lib/setup.ts
622
622
  import { ESLint } from "eslint";
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.6.5";
8
+ var version = "0.6.6";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
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
+ }