docs: refine README.md
[poolifier.git] / .eslintrc.js
index 2e396436b0d6d4c95af5a4764cb024fe2d1016ef..c4f0c6d26777bb3cf6710aac51448dce92372577 100644 (file)
@@ -1,4 +1,3 @@
-// @ts-check
 const { defineConfig } = require('eslint-define-config')
 
 module.exports = defineConfig({
@@ -31,6 +30,7 @@ module.exports = defineConfig({
       'warn',
       {
         skipWords: [
+          'Benoit',
           'benny',
           'browserslist',
           'builtins',
@@ -40,8 +40,12 @@ module.exports = defineConfig({
           'cpu',
           'cpus',
           'ctx',
+          'deprecations',
+          'dequeue',
           'ecma',
+          'enqueue',
           'enum',
+          'errored',
           'esm',
           'fibonacci',
           'fs',
@@ -52,9 +56,11 @@ module.exports = defineConfig({
           'num',
           'os',
           'piscina',
+          'pnpm',
           'poolifier',
           'poolify',
           'readonly',
+          'resize',
           'serializable',
           'sinon',
           'threadjs',
@@ -65,7 +71,8 @@ module.exports = defineConfig({
           'unlink',
           'unregister',
           'utf8',
-          'workerpool'
+          'workerpool',
+          'wwr'
         ],
         skipIfMatch: ['^@.*', '^plugin:.*']
       }
@@ -77,7 +84,7 @@ module.exports = defineConfig({
       plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        project: './tsconfig.json'
+        project: './tsconfig.eslint.json'
       },
       extends: [
         'plugin:@typescript-eslint/eslint-recommended',
@@ -91,7 +98,7 @@ module.exports = defineConfig({
           'error',
           { ignoreProperties: true }
         ],
-        'tsdoc/syntax': 'error'
+        'tsdoc/syntax': 'warn'
       }
     },
     {
@@ -104,7 +111,7 @@ module.exports = defineConfig({
       }
     },
     {
-      files: ['**/*.js'],
+      files: ['**/*.js', '**/*.mjs'],
       plugins: ['jsdoc'],
       extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
     },