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