build: silence linter
[poolifier.git] / .eslintrc.js
index c5784c0f286cac8f39b921950a6ae437e2a88e8e..4f57c1e21608a81ee836fc80d2122ed97881602a 100644 (file)
@@ -20,7 +20,7 @@ module.exports = defineConfig({
   settings: {
     'import/resolver': {
       typescript: {
-        project: './tsconfig.eslint.json'
+        project: './tsconfig.json'
       }
     }
   },
@@ -37,8 +37,8 @@ module.exports = defineConfig({
       'warn',
       {
         skipWords: [
+          'axios',
           'benoit',
-          'benny',
           'browserslist',
           'builtins',
           'christopher',
@@ -47,32 +47,46 @@ module.exports = defineConfig({
           'comparator',
           'cpu',
           'cpus',
+          'cryptographically',
           'ctx',
           'deprecations',
+          'deque',
           'dequeue',
           'dequeued',
+          'deregisters',
+          'dts',
           'ecma',
           'elu',
           'enqueue',
           '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',
@@ -81,9 +95,11 @@ module.exports = defineConfig({
           'typedoc',
           'unlink',
           'unref',
-          'unregister',
           'utf8',
+          'webcrypto',
           'workerpool',
+          'ws',
+          'wss',
           'wwr'
         ],
         skipIfMatch: ['^@.*', '^plugin:.*']
@@ -96,7 +112,7 @@ module.exports = defineConfig({
       plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        project: './tsconfig.eslint.json'
+        project: './tsconfig.json'
       },
       extends: [
         'plugin:@typescript-eslint/recommended',
@@ -118,10 +134,13 @@ module.exports = defineConfig({
         'import/no-unresolved': 'off',
         '@typescript-eslint/no-unsafe-argument': 'off',
         '@typescript-eslint/no-unsafe-call': '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/restrict-template-expressions': 'off'
+        '@typescript-eslint/no-redundant-type-constituents': 'off',
+        '@typescript-eslint/strict-boolean-expressions': 'off',
+        '@typescript-eslint/return-await': 'off'
       }
     },
     {
@@ -161,7 +180,7 @@ module.exports = defineConfig({
       }
     },
     {
-      files: ['examples/**/*.js'],
+      files: ['examples/javascript/**/*.js'],
       rules: {
         'n/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'