From c9577f2d11abedb767d52bc4fbbb7531089800a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 19 Jun 2023 15:00:29 +0200 Subject: [PATCH] build: fix eslint configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 8 +++++++- benchmarks/versus-external-pools/dynamic-tinypool.mjs | 3 --- benchmarks/versus-external-pools/fixed-tinypool.mjs | 3 --- 3 files changed, 7 insertions(+), 7 deletions(-) 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++) { -- 2.34.1