Skip to content

Commit fdc463d

Browse files
GuillaumeLagrangeart049
authored andcommitted
chore: fix eslint warnings
1 parent ca109b6 commit fdc463d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/core/src/native_core/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ try {
4040
stopBenchmark: () => {
4141
return 0;
4242
},
43+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4344
setExecutedBenchmark: (_pid: number, _uri: string) => {
4445
return 0;
4546
},
47+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4648
setIntegration: (_name: string, _version: string) => {
4749
return 0;
4850
},

packages/tinybench-plugin/src/walltime.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ export function runWalltimeBench(bench: Bench, rootCallingFile: string): void {
3535

3636
// Override the function under test to add a static frame
3737
const { fn } = task as unknown as { fn: Fn };
38+
// eslint-disable-next-line no-inner-declarations
3839
async function __codspeed_root_frame__() {
3940
await fn();
4041
}
42+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4143
(task as any).fn = __codspeed_root_frame__;
4244

4345
// run the warmup of the task right before its actual run
@@ -121,9 +123,11 @@ export function runWalltimeBench(bench: Bench, rootCallingFile: string): void {
121123

122124
// Override the function under test to add a static frame
123125
const { fn } = task as unknown as { fn: Fn };
126+
// eslint-disable-next-line no-inner-declarations
124127
function __codspeed_root_frame__() {
125128
fn();
126129
}
130+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
127131
(task as any).fn = __codspeed_root_frame__;
128132

129133
InstrumentHooks.startBenchmark();

0 commit comments

Comments
 (0)