Fix lint-staged configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 19:08:38 +0000 (21:08 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 19:08:38 +0000 (21:08 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.lintstagedrc.js
tests/pools/abstract/abstract-pool.test.js

index ad032a8b2f3abb542919ec1a5535e2ba1836be5d..9b4543c077cb18680ca5df57bdfde47a902c0b66 100644 (file)
@@ -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'
+  ]
 }
index 24c7debd3c86deda03f4e312682d60546ed07c61..1e337ff9f4a3a3cd18800434d65965679c7d6535 100644 (file)
@@ -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