From ff07812554946161cb770d3c42a03b77be0804c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 9 Oct 2022 21:08:38 +0200 Subject: [PATCH] Fix lint-staged configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .lintstagedrc.js | 4 +++- tests/pools/abstract/abstract-pool.test.js | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index ad032a8b..9b4543c0 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,6 @@ module.exports = { '**/*.{js,mjs,ts}': ['eslint --cache --fix'], - '**/*.{json,md,yml}': ['prettier --write'] + '**/*.{json,md,yml}': [ + 'prettier --loglevel silent --write, prettierx --write' + ] } diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index 24c7debd..1e337ff9 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -4,19 +4,15 @@ const { FixedThreadPool, WorkerChoiceStrategies } = require('../../../lib/index') - const numberOfWorkers = 1 - const workerNotFoundInTasksUsageMapError = new Error( 'Worker could not be found in worker tasks usage map' ) - class StubPoolWithWorkerTasksUsageMapClear extends FixedThreadPool { removeAllWorker () { this.workersTasksUsage.clear() } } - class StubPoolWithIsMainMethod extends FixedThreadPool { isMain () { return false -- 2.34.1