We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00549ff commit 157d486Copy full SHA for 157d486
benchmark/index.ts
@@ -1,12 +1,15 @@
1
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair -- ignore
2
/* eslint-disable no-console -- ignore */
3
-import * as Benchmark from "benchmark";
4
-import fs from "fs";
5
-import { parseForESLint } from "../src/index.js";
+import Benchmark from "benchmark";
+import fs from "node:fs";
+import { fileURLToPath } from "node:url";
6
import { parseForESLint as parseOld } from "../node_modules/svelte-eslint-parser/lib/index.js";
7
+import { parseForESLint } from "../src/index.js";
8
9
const contents = `${fs.readFileSync(
- require.resolve("../explorer-v2/src/lib/RulesSettings.svelte"),
10
+ fileURLToPath(
11
+ import.meta.resolve("../explorer-v2/src/lib/RulesSettings.svelte"),
12
+ ),
13
"utf-8",
14
)}// comments`;
15
0 commit comments