Fix GitHub actions issues on tests with windows and stable node
[poolifier.git] / .eslintrc.js
index 8349a186d427042acf07ca85601142640afb89ac..11fb2803e0eac7e59ca325948ae07cfc521a07a3 100644 (file)
@@ -7,6 +7,10 @@ module.exports = defineConfig({
     node: true,
     mocha: true
   },
+  parserOptions: {
+    ecmaVersion: 2021,
+    sourceType: 'module'
+  },
   plugins: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
   extends: [
     'standard',
@@ -33,15 +37,19 @@ module.exports = defineConfig({
         skipWords: [
           'christopher',
           'comparator',
+          'cpu',
+          'cpus',
           'ecma',
           'enum',
           'fibonacci',
           'inheritDoc',
           'jsdoc',
+          'os',
           'poolifier',
           'readonly',
           'serializable',
           'sinon',
+          'tsconfig',
           'unregister',
           'workerpool'
         ],
@@ -54,8 +62,6 @@ module.exports = defineConfig({
       files: ['**/*.ts'],
       parser: '@typescript-eslint/parser',
       parserOptions: {
-        ecmaVersion: 2020,
-        sourceType: 'module',
         project: './tsconfig.json'
       },
       plugins: ['@typescript-eslint'],
@@ -121,8 +127,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'
       }
     },
     {