X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=.eslintrc.js;h=11fb2803e0eac7e59ca325948ae07cfc521a07a3;hb=301c53e7ae6cf1120298ea10868a9091904c01a2;hp=fe04926fd46565df433f78e3c01a083283bdbc85;hpb=e00a6c53e0d42d4b76791441975b70888ead0a73;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index fe04926f..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,13 +37,19 @@ module.exports = defineConfig({ skipWords: [ 'christopher', 'comparator', + 'cpu', + 'cpus', 'ecma', 'enum', - 'inheritdoc', + 'fibonacci', + 'inheritDoc', 'jsdoc', + 'os', 'poolifier', 'readonly', 'serializable', + 'sinon', + 'tsconfig', 'unregister', 'workerpool' ], @@ -52,8 +62,6 @@ module.exports = defineConfig({ files: ['**/*.ts'], parser: '@typescript-eslint/parser', parserOptions: { - ecmaVersion: 2020, - sourceType: 'module', project: './tsconfig.json' }, plugins: ['@typescript-eslint'], @@ -116,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: {