X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=11fb2803e0eac7e59ca325948ae07cfc521a07a3;hb=refs%2Ftags%2Fv2.3.2;hp=b37ad59fb91769bb590ec5829dade6800872973b;hpb=f3636726b3bf4ec12f6694090bbb04c8dcc56037;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index b37ad59f..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'], @@ -77,9 +85,6 @@ module.exports = defineConfig({ 'jsdoc/match-description': [ 'warn', { - // mainDescription: - // '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us', - // matchDescription: '^[A-Z`].+(\\.|`.+`)$', contexts: ['any'], tags: { param: true, @@ -120,22 +125,21 @@ module.exports = defineConfig({ } }, { - files: ['benchmarks/**/*.js'], + files: ['tests/pools/selection-strategies/**/*.js'], rules: { - 'jsdoc/require-jsdoc': 'off' + 'node/no-missing-require': 'off' } }, { - files: ['examples/**/*.js'], + files: ['benchmarks/**/*.js'], rules: { - 'node/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off' } }, { - files: ['examples/typescript/**/*.ts'], + files: ['examples/**/*.js'], rules: { - 'import/no-unresolved': 'off', + 'node/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off' } }