From: Jérôme Benoit Date: Fri, 31 May 2024 16:34:38 +0000 (+0200) Subject: refactor: cleanup local eslint rule disablement X-Git-Tag: v4.0.14~28 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=65055403a20f94a6326b773ec33d3488901cf0cc;p=poolifier.git refactor: cleanup local eslint rule disablement Signed-off-by: Jérôme Benoit --- 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()