Skip to content

Commit 2ff1784

Browse files
authored
chore: remove unused eslint directives (#7803)
**Motivation** Remove any unused or inactive codebase. **Description** Remove all unused eslint directives as we are using `biome` now. **Steps to test or reproduce** Run lint rules and all tests
1 parent 0eb947d commit 2ff1784

File tree

61 files changed

+0
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+0
-155
lines changed

packages/api/test/unit/client/httpClient.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import {HttpStatusCode} from "../../../src/utils/httpStatusCode.js";
2222
import {Endpoint, Schema} from "../../../src/utils/index.js";
2323
import {compileRouteUrlFormatter} from "../../../src/utils/urlFormat.js";
2424

25-
/* eslint-disable @typescript-eslint/return-await */
26-
2725
describe("httpClient json client", () => {
2826
const afterEachCallbacks: (() => Promise<any> | any)[] = [];
2927
afterEach(async () => {

packages/api/test/utils/fetchOpenApiSpec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import path from "node:path";
33
import {fetch} from "@lodestar/utils";
44
import {OpenApiFile, OpenApiJson} from "./parseOpenApiSpec.js";
55

6-
/* eslint-disable no-console */
7-
86
export async function fetchOpenApiSpec(openApiFile: OpenApiFile): Promise<OpenApiJson> {
97
if (fs.existsSync(openApiFile.filepath)) {
108
const openApiJson = JSON.parse(fs.readFileSync(openApiFile.filepath, "utf8")) as OpenApiJson;

packages/beacon-node/src/chain/bls/multithread/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
21
import path from "node:path";
32
import {Worker, spawn} from "@chainsafe/threads";
43
// `threads` library creates self global variable which breaks `timeout-abort-controller` https://github.com/jacobheun/timeout-abort-controller/issues/9
5-
// Don't add an eslint disable here as a reminder that this has to be fixed eventually
64
// @ts-ignore
75
// biome-ignore lint/suspicious/noGlobalAssign: <explanation>
86
self = undefined;

packages/beacon-node/src/chain/bls/multithread/worker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
21
import worker from "node:worker_threads";
32
import {PublicKey} from "@chainsafe/blst";
43
import {expose} from "@chainsafe/threads/worker";

packages/beacon-node/src/monitoring/system.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// We want to keep `system` export to be used as namespace
2-
/* eslint-disable import/no-named-as-default-member */
32
import os from "node:os";
43
import path from "node:path";
54
import {Logger} from "@lodestar/utils";

packages/beacon-node/src/util/kzg.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ const G2POINT_COUNT = 65;
4141
const TOTAL_SIZE = 2 * POINT_COUNT_BYTES + G1POINT_BYTES * G1POINT_COUNT + G2POINT_BYTES * G2POINT_COUNT;
4242

4343
export async function initCKZG(): Promise<void> {
44-
/* eslint-disable @typescript-eslint/ban-ts-comment */
4544
// @ts-ignore
4645
ckzg = (await import("c-kzg")).default as typeof ckzg;
47-
/* eslint-enable @typescript-eslint/ban-ts-comment */
4846
}
4947

5048
export enum TrustedFileMode {

packages/beacon-node/test/e2e/network/reqresp.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import {expectRejectedWithLodestarError} from "../../utils/errors.js";
1313
import {connect, getPeerIdOf, onPeerConnect} from "../../utils/network.js";
1414
import {getNetworkForTest} from "../../utils/networkWithMockDb.js";
1515

16-
/* eslint-disable require-yield, @typescript-eslint/naming-convention */
17-
1816
describe("network / reqresp / main thread", () => {
1917
vi.setConfig({testTimeout: 3000});
2018

packages/beacon-node/test/e2e/network/reqrespEncode.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import {GetReqRespHandlerFn} from "../../../src/network/reqresp/types.js";
2222
import {LocalStatusCache} from "../../../src/network/statusCache.js";
2323
import {testLogger} from "../../utils/logger.js";
2424

25-
/* eslint-disable require-yield */
26-
2725
describe("reqresp encoder", () => {
2826
let port = 60000;
2927

packages/beacon-node/test/sim/electra-interop.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ import {shell} from "./shell.js";
3131
// DEV_RUN=true EL_BINARY_DIR=ethpandaops/ethereumjs:master-0e06ddf EL_SCRIPT_DIR=ethereumjsdocker yarn vitest run test/sim/electra-interop.test.ts
3232
// ```
3333

34-
/* eslint-disable no-console, @typescript-eslint/naming-convention */
35-
3634
const jwtSecretHex = "0xdc6457099f127cf0bac78de8b297df04951281909db4f58b43def7c7151e765d";
3735
const retries = defaultExecutionEngineHttpOpts.retries;
3836
const retryDelay = defaultExecutionEngineHttpOpts.retryDelay;

packages/beacon-node/test/sim/mergemock.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import {shell} from "./shell.js";
2525
// EL_BINARY_DIR=g11tech/mergemock:latest EL_SCRIPT_DIR=mergemock LODESTAR_PRESET=mainnet ETH_PORT=8661 ENGINE_PORT=8551 yarn vitest run test/sim/mergemock.test.ts
2626
// ```
2727

28-
/* eslint-disable no-console, @typescript-eslint/naming-convention */
29-
3028
const jwtSecretHex = "0xdc6457099f127cf0bac78de8b297df04951281909db4f58b43def7c7151e765d";
3129

3230
describe("executionEngine / ExecutionEngineHttp", () => {

0 commit comments

Comments
 (0)