refactor: cleanup local eslint rule disablement
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 16:34:38 +0000 (18:34 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 16:34:38 +0000 (18:34 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
examples/typescript/http-client-pool/src/worker.ts
examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts
examples/typescript/http-server-pool/express-worker_threads/src/main.ts

index 5878523ee19a74e192e22f6773ec1d02a35a9699..95917d64207d4d846353be93b6560b9ff6b21e9d 100644 (file)
@@ -40,7 +40,6 @@ class HttpClientWorker extends ThreadWorker<WorkerData, WorkerResponse> {
           ...workerData?.axiosRequestConfig,
         })
         return {
-          // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
           text: response.data,
         }
       },
index f9364b43fe354fc91d6a661516035e72bc90fc4f..2089b3ef928d95837fafdeaf106dcd33a4bde05c 100644 (file)
@@ -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()
index dc70d7ec03a0ceb8589863b615a63e178e0c72b2..615143646507d8e2f33922426384a19e8e5e906c 100644 (file)
@@ -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()