},
},
{
- 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',
},
},
* @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,
* @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,