File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair -- ignore
2
2
/* eslint-disable no-console -- ignore */
3
- import * as Benchmark from "benchmark" ;
4
- import fs from "fs" ;
5
- import { parseForESLint } from "../src/index.js " ;
3
+ import Benchmark from "benchmark" ;
4
+ import fs from "node: fs" ;
5
+ import { fileURLToPath } from "node:url " ;
6
6
import { parseForESLint as parseOld } from "../node_modules/svelte-eslint-parser/lib/index.js" ;
7
+ import { parseForESLint } from "../src/index.js" ;
7
8
8
9
const contents = `${ fs . readFileSync (
9
- require . resolve ( "../explorer-v2/src/lib/RulesSettings.svelte" ) ,
10
+ fileURLToPath (
11
+ import . meta. resolve ( "../explorer-v2/src/lib/RulesSettings.svelte" ) ,
12
+ ) ,
10
13
"utf-8" ,
11
14
) } // comments`;
12
15
You can’t perform that action at this time.
0 commit comments