refactor: refine argument type
[poolifier.git] / .eslintrc.js
index f981727ab3800ebe3efd391953978767f5e4b162..9a058e827c6117531f41d87c8f182b9f87191aba 100644 (file)
@@ -37,7 +37,8 @@ module.exports = defineConfig({
       'warn',
       {
         skipWords: [
-          'Benoit',
+          'axios',
+          'benoit',
           'benny',
           'browserslist',
           'builtins',
@@ -47,8 +48,10 @@ module.exports = defineConfig({
           'comparator',
           'cpu',
           'cpus',
+          'cryptographically',
           'ctx',
           'deprecations',
+          'deque',
           'dequeue',
           'dequeued',
           'ecma',
@@ -57,22 +60,32 @@ module.exports = defineConfig({
           'enum',
           'errored',
           'esm',
+          'fastify',
           'fibonacci',
+          'fp',
           'fs',
           'inheritDoc',
+          'javascript',
           'jsdoc',
+          'localhost',
           'microjob',
           'mjs',
+          'nodemailer',
+          'npx',
           'num',
           'os',
           'perf',
           'piscina',
           'pnpm',
           'poolifier',
-          'poolify',
+          'prepend',
+          'prepends',
+          'readdir',
           'readonly',
+          'req',
           'resize',
           'sinon',
+          'smtp',
           'threadjs',
           'threadwork',
           'tinypool',
@@ -80,9 +93,13 @@ module.exports = defineConfig({
           'tsdoc',
           'typedoc',
           'unlink',
+          'unref',
           'unregister',
           'utf8',
+          'webcrypto',
           'workerpool',
+          'ws',
+          'wss',
           'wwr'
         ],
         skipIfMatch: ['^@.*', '^plugin:.*']
@@ -114,9 +131,16 @@ module.exports = defineConfig({
     {
       files: ['examples/typescript/**/*.ts'],
       rules: {
+        'import/no-unresolved': 'off',
         '@typescript-eslint/no-unsafe-argument': 'off',
         '@typescript-eslint/no-unsafe-call': 'off',
-        '@typescript-eslint/no-unsafe-assignment': 'off'
+        '@typescript-eslint/no-unsafe-return': 'off',
+        '@typescript-eslint/no-unsafe-assignment': 'off',
+        '@typescript-eslint/no-unsafe-member-access': 'off',
+        '@typescript-eslint/no-unnecessary-type-assertion': 'off',
+        '@typescript-eslint/no-redundant-type-constituents': 'off',
+        '@typescript-eslint/strict-boolean-expressions': 'off',
+        '@typescript-eslint/return-await': 'off'
       }
     },
     {
@@ -156,7 +180,7 @@ module.exports = defineConfig({
       }
     },
     {
-      files: ['examples/**/*.js'],
+      files: ['examples/javascript/**/*.js'],
       rules: {
         'n/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'