Fix eslint configuration for benchmark
[poolifier.git] / .eslintrc.js
index a3f0793611f69d3c9127a29e1e9ad97452a4a494..97bc34b207c647a0ecdbe69a447c94def6cceda2 100644 (file)
@@ -35,21 +35,35 @@ module.exports = defineConfig({
       'warn',
       {
         skipWords: [
+          'browserslist',
           'christopher',
+          'cjs',
           'comparator',
           'cpu',
           'cpus',
+          'ctx',
           'ecma',
           'enum',
           'fibonacci',
+          'fs',
           'inheritDoc',
           'jsdoc',
+          'microjob',
+          'num',
           'os',
+          'piscina',
           'poolifier',
+          'poolify',
           'readonly',
           'serializable',
           'sinon',
+          'threadjs',
+          'threadwork',
+          'tsconfig',
+          'typedoc',
+          'unlink',
           'unregister',
+          'utf8',
           'workerpool'
         ],
         skipIfMatch: ['^@.*', '^plugin:.*']
@@ -113,6 +127,16 @@ module.exports = defineConfig({
         'jsdoc/require-returns-type': 'off'
       }
     },
+    {
+      files: ['examples/typescript/**/*.ts'],
+      rules: {
+        'import/no-unresolved': 'off',
+        'jsdoc/require-jsdoc': 'off',
+        '@typescript-eslint/no-unsafe-argument': 'off',
+        '@typescript-eslint/no-unsafe-call': 'off',
+        '@typescript-eslint/no-unsafe-assignment': 'off'
+      }
+    },
     {
       files: ['**/*.js'],
       extends: 'plugin:node/recommended'
@@ -126,8 +150,7 @@ module.exports = defineConfig({
     {
       files: ['tests/pools/selection-strategies/**/*.js'],
       rules: {
-        'node/no-missing-require': 'off',
-        'jsdoc/require-jsdoc': 'off'
+        'node/no-missing-require': 'off'
       }
     },
     {
@@ -136,6 +159,12 @@ module.exports = defineConfig({
         'jsdoc/require-jsdoc': 'off'
       }
     },
+    {
+      files: ['benchmarks/versus-external-pools/**/*.js'],
+      rules: {
+        'node/no-missing-require': 'off'
+      }
+    },
     {
       files: ['examples/**/*.js'],
       rules: {