X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=523f20f8c389d47b15b3b45d5072bad47e31c507;hb=c4424e52e4924efa5eef704cb5dcb82f2760e0da;hp=0b465dadff597167df9220f9715c1f8724b010c3;hpb=78ebe9d5933520d55ba8d025bb124e8beca01a4c;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 0b465dad..523f20f8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,16 +37,14 @@ module.exports = defineConfig({ 'warn', { skipWords: [ - 'Benoit', - 'Uint8', - 'Uint16', - 'Uint32', - 'Uint64', + 'axios', + 'benoit', 'benny', 'browserslist', 'builtins', 'christopher', 'cjs', + 'cloneable', 'comparator', 'cpu', 'cpus', @@ -55,32 +53,39 @@ module.exports = defineConfig({ 'dequeue', 'dequeued', 'ecma', + 'elu', 'enqueue', 'enum', 'errored', 'esm', + 'fastify', 'fibonacci', + 'fp', 'fs', 'inheritDoc', 'jsdoc', 'microjob', 'mjs', + 'npx', 'num', 'os', + 'perf', 'piscina', 'pnpm', 'poolifier', 'poolify', 'readonly', + 'req', 'resize', - 'serializable', 'sinon', 'threadjs', 'threadwork', + 'tinypool', 'tsconfig', 'tsdoc', 'typedoc', 'unlink', + 'unref', 'unregister', 'utf8', 'workerpool', @@ -99,7 +104,6 @@ module.exports = defineConfig({ project: './tsconfig.eslint.json' }, extends: [ - 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:import/typescript', @@ -116,9 +120,15 @@ 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' + '@typescript-eslint/no-unsafe-return': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', + '@typescript-eslint/no-unsafe-member-access': 'off', + '@typescript-eslint/no-unnecessary-type-assertion': 'off', + '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/return-await': 'off' } }, { @@ -139,7 +149,7 @@ module.exports = defineConfig({ } }, { - files: ['benchmarks/**/*.js'], + files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'], rules: { 'jsdoc/require-jsdoc': 'off' } @@ -151,7 +161,14 @@ module.exports = defineConfig({ } }, { - files: ['examples/**/*.js'], + files: ['benchmarks/versus-external-pools/**/*.mjs'], + rules: { + 'n/no-missing-import': 'off', + 'import/no-unresolved': 'off' + } + }, + { + files: ['examples/javascript/**/*.js'], rules: { 'n/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off'