Add WRR worker choice strategy
[poolifier.git] / .eslintrc.js
index b37ad59fb91769bb590ec5829dade6800872973b..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',
@@ -35,11 +39,13 @@ module.exports = defineConfig({
           'comparator',
           'ecma',
           'enum',
-          'inheritdoc',
+          'fibonacci',
+          'inheritDoc',
           'jsdoc',
           'poolifier',
           'readonly',
           'serializable',
+          'sinon',
           'unregister',
           'workerpool'
         ],
@@ -52,8 +58,6 @@ module.exports = defineConfig({
       files: ['**/*.ts'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        ecmaVersion: 2020,
-        sourceType: 'module',
         project: './tsconfig.json'
       },
       plugins: ['@typescript-eslint'],
@@ -77,9 +81,6 @@ module.exports = defineConfig({
         'jsdoc/match-description': [
           'warn',
           {
-            // mainDescription:
-            //   '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
-            // matchDescription: '^[A-Z`].+(\\.|`.+`)$',
             contexts: ['any'],
             tags: {
               param: true,
@@ -120,22 +121,22 @@ module.exports = defineConfig({
       }
     },
     {
-      files: ['benchmarks/**/*.js'],
+      files: ['tests/pools/selection-strategies/**/*.js'],
       rules: {
+        'node/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
     },
     {
-      files: ['examples/**/*.js'],
+      files: ['benchmarks/**/*.js'],
       rules: {
-        'node/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
     },
     {
-      files: ['examples/typescript/**/*.ts'],
+      files: ['examples/**/*.js'],
       rules: {
-        'import/no-unresolved': 'off',
+        'node/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
     }