X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=11fb2803e0eac7e59ca325948ae07cfc521a07a3;hb=ed1ecf09c599769ed61771ec25d71c39c19ba70b;hp=37a3c5d5e01ed40af758998e7a956f074417151b;hpb=a38092895499e2e6e9f8c45bd12bdef3849897ff;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 37a3c5d5..11fb2803 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', + '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'], @@ -118,6 +124,12 @@ module.exports = defineConfig({ 'jsdoc/require-jsdoc': 'off' } }, + { + files: ['tests/pools/selection-strategies/**/*.js'], + rules: { + 'node/no-missing-require': 'off' + } + }, { files: ['benchmarks/**/*.js'], rules: {