X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=e421cd282cf758417b1609b6a887f4335619b708;hb=25f5b5de1c522d29f7a16597245a2f7c9434b124;hp=c4f0c6d26777bb3cf6710aac51448dce92372577;hpb=38ab80f97eb7a9493cc7da023ea27e8d8de718ee;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index c4f0c6d2..e421cd28 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,14 +17,21 @@ module.exports = defineConfig({ 'plugin:import/recommended', 'plugin:promise/recommended' ], + settings: { + 'import/resolver': { + typescript: { + project: './tsconfig.eslint.json' + } + } + }, rules: { 'sort-imports': [ - 'warn', + 'error', { - ignoreMemberSort: true, ignoreDeclarationSort: true } ], + 'import/order': 'error', 'spellcheck/spell-checker': [ 'warn', @@ -36,13 +43,16 @@ module.exports = defineConfig({ 'builtins', 'christopher', 'cjs', + 'cloneable', 'comparator', 'cpu', 'cpus', 'ctx', 'deprecations', 'dequeue', + 'dequeued', 'ecma', + 'elu', 'enqueue', 'enum', 'errored', @@ -55,16 +65,17 @@ module.exports = defineConfig({ 'mjs', 'num', 'os', + 'perf', 'piscina', 'pnpm', 'poolifier', 'poolify', 'readonly', 'resize', - 'serializable', 'sinon', 'threadjs', 'threadwork', + 'tinypool', 'tsconfig', 'tsdoc', 'typedoc', @@ -104,7 +115,6 @@ module.exports = defineConfig({ { files: ['examples/typescript/**/*.ts'], rules: { - 'import/no-unresolved': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-assignment': 'off' @@ -128,7 +138,7 @@ module.exports = defineConfig({ } }, { - files: ['benchmarks/**/*.js'], + files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'], rules: { 'jsdoc/require-jsdoc': 'off' } @@ -139,6 +149,13 @@ module.exports = defineConfig({ 'n/no-missing-require': 'off' } }, + { + files: ['benchmarks/versus-external-pools/**/*.mjs'], + rules: { + 'n/no-missing-import': 'off', + 'import/no-unresolved': 'off' + } + }, { files: ['examples/**/*.js'], rules: {