From 937e8172c579605e1ed1a286f7c8c9fa743394d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 30 May 2024 22:28:40 +0200 Subject: [PATCH] fix(ci): silence linter MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- eslint.config.js | 13 +++++++++++-- src/pools/cluster/fixed.ts | 2 +- src/pools/thread/fixed.ts | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index fd2c801d..0f1bd02e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -44,14 +44,23 @@ export default defineFlatConfig([ }, }, { - files: ['tests/**/*.cjs', 'benchmarks/**/*.cjs', 'examples/**/*.cjs'], + files: ['examples/**/*.js', 'examples/**/*.cjs'], rules: { + 'no-undef': 'off', + 'n/no-missing-import': 'off', '@typescript-eslint/no-require-imports': 'off', }, }, { - files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'], + files: ['benchmarks/**/*.cjs'], rules: { + '@typescript-eslint/no-require-imports': 'off', + }, + }, + { + files: ['tests/**/*.js', 'tests/**/*.mjs', 'tests/**/*.cjs'], + rules: { + '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-empty-function': 'off', }, }, diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index 51a891bf..bf61cd47 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -26,7 +26,7 @@ export class FixedClusterPool< * @param numberOfWorkers - Number of workers for this pool. * @param filePath - Path to an implementation of a `ClusterWorker` file, which can be relative or absolute. * @param opts - Options for this fixed cluster pool. - * @param maximumNumberOfWorkers + * @param maximumNumberOfWorkers - The maximum number of workers for this pool. */ public constructor ( numberOfWorkers: number, diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index 85c5c9be..69b3c307 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -30,7 +30,7 @@ export class FixedThreadPool< * @param numberOfThreads - Number of threads for this pool. * @param filePath - Path to an implementation of a `ThreadWorker` file, which can be relative or absolute. * @param opts - Options for this fixed thread pool. - * @param maximumNumberOfThreads + * @param maximumNumberOfThreads - The maximum number of threads for this pool. */ public constructor ( numberOfThreads: number, -- 2.34.1