From 2db001c982155d15f6aab2e78e53c655b1f65e23 Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Thu, 25 Jan 2024 19:15:57 +0200 Subject: [PATCH] Fix ESLint issues --- lib/index.ts | 4 ++-- test/index.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 4c2ce28..9588a3c 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -10,11 +10,11 @@ export default async function promiseChunk( for (const item of generator()) { const promise = item.then( (r: T): T => { - queue.splice(queue.indexOf(promise), 1); + void queue.splice(queue.indexOf(promise), 1); return r; }, (e: Error): Error => { - queue.splice(queue.indexOf(promise), 1); + void queue.splice(queue.indexOf(promise), 1); return e; }, ); diff --git a/test/index.test.ts b/test/index.test.ts index 14eee31..72a438c 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -42,7 +42,7 @@ describe('promiseChunk', () => { const generator = function* (): Generator> { for (const [value, ms] of input) { - // eslint-disable-next-line no-loop-func + // eslint-disable-next-line @typescript-eslint/no-loop-func yield new Promise((resolve) => { setTimeout(() => { s += `${value}\n`;