@code-pushup/eslint-plugin 0.8.6 → 0.8.7

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 +6 -6
  2. package/index.js +10 -10
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // packages/plugin-eslint/src/lib/runner/index.ts
2
- import { mkdir as mkdir2, writeFile } from "fs/promises";
3
- import { dirname, join as join2 } from "path";
2
+ import { mkdir as mkdir2, writeFile } from "node:fs/promises";
3
+ import { dirname, join as join2 } from "node:path";
4
4
 
5
5
  // packages/models/src/lib/audit.ts
6
6
  import { z as z2 } from "zod";
@@ -532,12 +532,12 @@ var reportSchema = packageVersionSchema({
532
532
  // packages/utils/src/lib/file-system.ts
533
533
  import { bundleRequire } from "bundle-require";
534
534
  import chalk from "chalk";
535
- import { mkdir, readFile, readdir, stat } from "fs/promises";
536
- import { join } from "path";
535
+ import { mkdir, readFile, readdir, stat } from "node:fs/promises";
536
+ import { join } from "node:path";
537
537
 
538
538
  // packages/utils/src/lib/formatting.ts
539
539
  function slugify(text) {
540
- return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z0-9-]/g, "");
540
+ return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z\d-]/g, "");
541
541
  }
542
542
  function pluralize(text) {
543
543
  if (text.endsWith("y")) {
@@ -664,7 +664,7 @@ async function lint({
664
664
  }
665
665
 
666
666
  // packages/plugin-eslint/src/lib/meta/hash.ts
667
- import { createHash } from "crypto";
667
+ import { createHash } from "node:crypto";
668
668
  function ruleIdToSlug(ruleId, options) {
669
669
  const slug = slugify(ruleId);
670
670
  if (!options?.length) {
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // packages/plugin-eslint/src/lib/eslint-plugin.ts
2
- import { mkdir as mkdir2, writeFile } from "fs/promises";
3
- import { dirname as dirname2, join as join3 } from "path";
4
- import { fileURLToPath } from "url";
2
+ import { mkdir as mkdir2, writeFile } from "node:fs/promises";
3
+ import { dirname as dirname2, join as join3 } from "node:path";
4
+ 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.6";
8
+ var version = "0.8.7";
9
9
 
10
10
  // packages/plugin-eslint/src/lib/config.ts
11
11
  import { z } from "zod";
@@ -554,12 +554,12 @@ var reportSchema = packageVersionSchema({
554
554
  // packages/utils/src/lib/file-system.ts
555
555
  import { bundleRequire } from "bundle-require";
556
556
  import chalk from "chalk";
557
- import { mkdir, readFile, readdir, stat } from "fs/promises";
558
- import { join } from "path";
557
+ import { mkdir, readFile, readdir, stat } from "node:fs/promises";
558
+ import { join } from "node:path";
559
559
 
560
560
  // packages/utils/src/lib/formatting.ts
561
561
  function slugify(text) {
562
- return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z0-9-]/g, "");
562
+ return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z\d-]/g, "");
563
563
  }
564
564
  function truncateText(text, maxChars) {
565
565
  if (text.length <= maxChars) {
@@ -613,7 +613,7 @@ function distinct(array) {
613
613
  }
614
614
 
615
615
  // packages/plugin-eslint/src/lib/meta/hash.ts
616
- import { createHash } from "crypto";
616
+ import { createHash } from "node:crypto";
617
617
  function ruleIdToSlug(ruleId, options) {
618
618
  const slug = slugify(ruleId);
619
619
  if (!options?.length) {
@@ -790,8 +790,8 @@ async function listAuditsAndGroups(eslint, patterns) {
790
790
  }
791
791
 
792
792
  // packages/plugin-eslint/src/lib/runner/index.ts
793
- import { platform } from "os";
794
- import { dirname, join as join2 } from "path";
793
+ import { platform } from "node:os";
794
+ import { dirname, join as join2 } from "node:path";
795
795
 
796
796
  // packages/plugin-eslint/src/lib/setup.ts
797
797
  import { ESLint } from "eslint";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/eslint-plugin",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "dependencies": {
5
5
  "@code-pushup/utils": "*",
6
6
  "@code-pushup/models": "*",