X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=a3f0793611f69d3c9127a29e1e9ad97452a4a494;hb=a59e741b92e7cdb08833307b92e14bad571bf23e;hp=ca01b306546da789593b9de39c479763bacf7640;hpb=bdaf31cd0e637aa466c78d54a49f157899a2cb3f;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index ca01b306..a3f07936 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,18 @@ module.exports = defineConfig({ skipWords: [ 'christopher', 'comparator', + 'cpu', + 'cpus', 'ecma', 'enum', 'fibonacci', - 'inheritdoc', + 'inheritDoc', 'jsdoc', + 'os', 'poolifier', 'readonly', 'serializable', + 'sinon', 'unregister', 'workerpool' ], @@ -53,8 +61,6 @@ module.exports = defineConfig({ files: ['**/*.ts'], parser: '@typescript-eslint/parser', parserOptions: { - ecmaVersion: 2020, - sourceType: 'module', project: './tsconfig.json' }, plugins: ['@typescript-eslint'], @@ -117,6 +123,13 @@ module.exports = defineConfig({ 'jsdoc/require-jsdoc': 'off' } }, + { + files: ['tests/pools/selection-strategies/**/*.js'], + rules: { + 'node/no-missing-require': 'off', + 'jsdoc/require-jsdoc': 'off' + } + }, { files: ['benchmarks/**/*.js'], rules: {