From 65055403a20f94a6326b773ec33d3488901cf0cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 31 May 2024 18:34:38 +0200 Subject: [PATCH] refactor: cleanup local eslint rule disablement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/http-client-pool/src/worker.ts | 1 - .../http-server-pool/express-hybrid/src/express-worker.ts | 1 - .../http-server-pool/express-worker_threads/src/main.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/examples/typescript/http-client-pool/src/worker.ts b/examples/typescript/http-client-pool/src/worker.ts index 5878523e..95917d64 100644 --- a/examples/typescript/http-client-pool/src/worker.ts +++ b/examples/typescript/http-client-pool/src/worker.ts @@ -40,7 +40,6 @@ class HttpClientWorker extends ThreadWorker { ...workerData?.axiosRequestConfig, }) return { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment text: response.data, } }, diff --git a/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts b/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts index f9364b43..2089b3ef 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts @@ -54,7 +54,6 @@ class ExpressWorker extends ClusterWorker< application.all('/api/echo', (req: Request, res: Response) => { ExpressWorker.requestHandlerPool - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment .execute({ data: req.body }, 'echo') .then(response => { return res.send(response.data).end() diff --git a/examples/typescript/http-server-pool/express-worker_threads/src/main.ts b/examples/typescript/http-server-pool/express-worker_threads/src/main.ts index dc70d7ec..61514364 100644 --- a/examples/typescript/http-server-pool/express-worker_threads/src/main.ts +++ b/examples/typescript/http-server-pool/express-worker_threads/src/main.ts @@ -23,7 +23,6 @@ expressApp.use(express.json()) expressApp.all('/api/echo', (req: Request, res: Response) => { requestHandlerPool - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment .execute({ body: req.body }, 'echo') .then(response => { return res.send(response.body).end() -- 2.34.1