Add WRR worker choice strategy
[poolifier.git] / .eslintrc.js
index c251c5a5a1bd3f38f530c89f1cad94fbdebf8f13..ff5c0f762a27a0eca3a9e12489bdb32d5aede4fe 100644 (file)
@@ -7,6 +7,10 @@ module.exports = defineConfig({
     node: true,
     mocha: true
   },
+  parserOptions: {
+    ecmaVersion: 2021,
+    sourceType: 'module'
+  },
   plugins: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
   extends: [
     'standard',
@@ -54,8 +58,6 @@ module.exports = defineConfig({
       files: ['**/*.ts'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        ecmaVersion: 2020,
-        sourceType: 'module',
         project: './tsconfig.json'
       },
       plugins: ['@typescript-eslint'],
@@ -118,6 +120,13 @@ module.exports = defineConfig({
         'jsdoc/require-jsdoc': 'off'
       }
     },
+    {
+      files: ['tests/pools/selection-strategies/**/*.js'],
+      rules: {
+        'node/no-missing-require': 'off',
+        'jsdoc/require-jsdoc': 'off'
+      }
+    },
     {
       files: ['benchmarks/**/*.js'],
       rules: {