Skip to content

Commit 56f7323

Browse files
hoeckmoltar
authored andcommitted
fix eslint complaints
1 parent da5e674 commit 56f7323

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

benchmarks/helpers/main.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export async function runAllBenchmarks() {
2828
return;
2929
}
3030

31-
const majorVersion = getNodeMajorVersion();
3231
const allResults: BenchmarkResult[] = [];
3332

3433
for (const [benchmark, benchmarks] of getRegisteredBenchmarks()) {

index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function main() {
1717

1818
const caseNames = args.length ? args : cases.cases;
1919

20-
for (let c of caseNames) {
20+
for (const c of caseNames) {
2121
if (c === 'spectypes') {
2222
// hack: manually run the spectypes compilation step - avoids
2323
// having to run it before any other benchmark, esp when working
@@ -48,7 +48,7 @@ async function main() {
4848
{
4949
const caseNames = args as cases.CaseName[];
5050

51-
for (let c of caseNames) {
51+
for (const c of caseNames) {
5252
console.log('Loading "%s"', c);
5353

5454
await cases.importCase(c);
@@ -60,6 +60,8 @@ async function main() {
6060

6161
default:
6262
console.error('unknown command:', command);
63+
64+
// eslint-disable-next-line no-process-exit
6365
process.exit(1);
6466
}
6567
}

test/benchmarks.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import '../cases/zod';
3535
test('all cases must have been imported in tests', () => {
3636
const registeredCases = new Set<string>();
3737

38-
getRegisteredBenchmarks().forEach(([benchmarkId, benchmarkCases]) => {
39-
benchmarkCases.forEach(b => {
38+
getRegisteredBenchmarks().forEach(nameBenchmarkPair => {
39+
nameBenchmarkPair[1].forEach(b => {
4040
registeredCases.add(b.moduleName);
4141
});
4242
});

0 commit comments

Comments
 (0)