From: Jérôme Benoit Date: Thu, 30 May 2024 20:28:40 +0000 (+0200) Subject: fix(ci): silence linter X-Git-Tag: v4.0.14~39 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=937e8172c579605e1ed1a286f7c8c9fa743394d8;p=poolifier.git fix(ci): silence linter Signed-off-by: Jérôme Benoit --- 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,