From: Jérôme Benoit Date: Mon, 19 Jun 2023 13:00:29 +0000 (+0200) Subject: build: fix eslint configuration X-Git-Tag: v2.6.3~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c9577f2d11abedb767d52bc4fbbb7531089800a6;p=poolifier.git build: fix eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 4d8c7ffd..6be6f2d4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -137,7 +137,7 @@ module.exports = defineConfig({ } }, { - files: ['benchmarks/**/*.js'], + files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'], rules: { 'jsdoc/require-jsdoc': 'off' } @@ -148,6 +148,12 @@ module.exports = defineConfig({ 'n/no-missing-require': 'off' } }, + { + files: ['benchmarks/versus-external-pools/**/*.mjs'], + rules: { + 'n/no-missing-import': 'off' + } + }, { files: ['examples/**/*.js'], rules: { diff --git a/benchmarks/versus-external-pools/dynamic-tinypool.mjs b/benchmarks/versus-external-pools/dynamic-tinypool.mjs index 18e3866b..68d73b67 100644 --- a/benchmarks/versus-external-pools/dynamic-tinypool.mjs +++ b/benchmarks/versus-external-pools/dynamic-tinypool.mjs @@ -16,9 +16,6 @@ const tinypool = new Tinypool({ idleTimeout: 60000 // this is the same as poolifier default }) -/** - * - */ async function run () { const promises = [] for (let i = 0; i < iterations; i++) { diff --git a/benchmarks/versus-external-pools/fixed-tinypool.mjs b/benchmarks/versus-external-pools/fixed-tinypool.mjs index c6e7c049..0875e3f4 100644 --- a/benchmarks/versus-external-pools/fixed-tinypool.mjs +++ b/benchmarks/versus-external-pools/fixed-tinypool.mjs @@ -16,9 +16,6 @@ const tinypool = new Tinypool({ idleTimeout: 60000 // this is the same as poolifier default }) -/** - * - */ async function run () { const promises = [] for (let i = 0; i < iterations; i++) {