Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git] / .eslintrc.js
index 40f952b098ffe8c6fa993f7272c2b60060fc88fd..c1e571d5fda56bf1c550cac7c0c4e78fa3712239 100644 (file)
@@ -39,7 +39,6 @@ module.exports = defineConfig({
         skipWords: [
           'axios',
           'benoit',
-          'benny',
           'browserslist',
           'builtins',
           'christopher',
@@ -54,6 +53,8 @@ module.exports = defineConfig({
           'deque',
           'dequeue',
           'dequeued',
+          'deregisters',
+          'dts',
           'ecma',
           'elu',
           'enqueue',
@@ -64,6 +65,7 @@ module.exports = defineConfig({
           'fibonacci',
           'fp',
           'fs',
+          'func',
           'inheritDoc',
           'javascript',
           'jsdoc',
@@ -94,9 +96,7 @@ module.exports = defineConfig({
           'typedoc',
           'unlink',
           'unref',
-          'unregister',
           'utf8',
-          'webcrypto',
           'workerpool',
           'ws',
           'wss',
@@ -121,17 +121,28 @@ module.exports = defineConfig({
         'standard-with-typescript'
       ],
       rules: {
-        '@typescript-eslint/no-inferrable-types': [
-          'error',
-          { ignoreProperties: true }
-        ],
+        '@typescript-eslint/non-nullable-type-assertion-style': 'off',
         'tsdoc/syntax': 'warn'
       }
     },
     {
       files: ['examples/typescript/**/*.ts'],
       rules: {
-        'import/no-unresolved': 'off',
+        'import/no-unresolved': [
+          'error',
+          {
+            ignore: [
+              '^axios$',
+              '^express$',
+              '^fastify$',
+              '^fastify-plugin$',
+              '^node-fetch$',
+              '^nodemailer$',
+              '^poolifier$',
+              '^ws$'
+            ]
+          }
+        ],
         '@typescript-eslint/no-unsafe-argument': 'off',
         '@typescript-eslint/no-unsafe-call': 'off',
         '@typescript-eslint/no-unsafe-return': 'off',
@@ -149,40 +160,20 @@ module.exports = defineConfig({
       extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
     },
     {
-      files: ['tests/**/*.js'],
+      files: ['tests/**/*.js', 'tests/**/*.mjs'],
       rules: {
         'jsdoc/require-jsdoc': 'off'
       }
     },
-    {
-      files: ['tests/pools/selection-strategies/**/*.js'],
-      rules: {
-        'n/no-missing-require': 'off'
-      }
-    },
     {
       files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
       rules: {
         'jsdoc/require-jsdoc': 'off'
       }
     },
-    {
-      files: ['benchmarks/versus-external-pools/**/*.js'],
-      rules: {
-        'n/no-missing-require': 'off'
-      }
-    },
-    {
-      files: ['benchmarks/versus-external-pools/**/*.mjs'],
-      rules: {
-        'n/no-missing-import': 'off',
-        'import/no-unresolved': 'off'
-      }
-    },
     {
       files: ['examples/javascript/**/*.js'],
       rules: {
-        'n/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
     }