From: Jérôme Benoit Date: Sun, 9 Oct 2022 19:19:34 +0000 (+0200) Subject: Fix lint-staged configuration, take 2 X-Git-Tag: v2.3.1~54 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4a297cd559d11d60dbc5310c11914a49496c421c;p=poolifier.git Fix lint-staged configuration, take 2 Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 9b4543c0..433ce7f0 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,6 +1,7 @@ module.exports = { '**/*.{js,mjs,ts}': ['eslint --cache --fix'], '**/*.{json,md,yml}': [ - 'prettier --loglevel silent --write, prettierx --write' + 'prettier --loglevel silent --write', + 'prettierx --write' ] } diff --git a/README.md b/README.md index 2db54d26..f0f8fc04 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ You can implement a worker-threads worker in a simple way by extending the class 'use strict' const { ThreadWorker } = require('poolifier') -function yourFunction(data) { +function yourFunction (data) { // this will be executed in the worker thread, // the data will be received by using the execute method return { ok: 1 }