X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=49838a24cbfd6ed9746ae52557b5772c58a188ed;hb=b04bd0f17e1ef9d2b5bd13ec69405f03ee86ff51;hp=5d9c45bfded4540646464d5bef191deb85360260;hpb=afd32690462d4db7617668ac9274081ec6024542;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 5d9c45bf..49838a24 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,7 +20,7 @@ module.exports = defineConfig({ settings: { 'import/resolver': { typescript: { - project: './tsconfig.eslint.json' + project: './tsconfig.json' } } }, @@ -37,42 +37,57 @@ module.exports = defineConfig({ 'warn', { skipWords: [ - 'Benoit', - 'benny', + 'axios', + 'benoit', 'browserslist', 'builtins', 'christopher', 'cjs', + 'cloneable', 'comparator', 'cpu', 'cpus', + 'cryptographically', 'ctx', 'deprecations', + 'deque', 'dequeue', 'dequeued', + 'deregisters', + 'dts', 'ecma', 'elu', 'enqueue', 'enum', 'errored', 'esm', + 'fastify', 'fibonacci', + 'fp', 'fs', + 'func', 'inheritDoc', + 'javascript', 'jsdoc', + 'localhost', 'microjob', 'mjs', + 'nodemailer', + 'npx', 'num', 'os', 'perf', 'piscina', 'pnpm', 'poolifier', - 'poolify', + 'prepend', + 'prepends', + 'readdir', 'readonly', + 'req', 'resize', - 'serializable', 'sinon', + 'smtp', 'threadjs', 'threadwork', 'tinypool', @@ -80,9 +95,12 @@ module.exports = defineConfig({ 'tsdoc', 'typedoc', 'unlink', - 'unregister', + 'unref', 'utf8', + 'webcrypto', 'workerpool', + 'ws', + 'wss', 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] @@ -95,10 +113,9 @@ module.exports = defineConfig({ plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'], parser: '@typescript-eslint/parser', parserOptions: { - project: './tsconfig.eslint.json' + project: './tsconfig.json' }, extends: [ - 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:import/typescript', @@ -115,9 +132,16 @@ 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/no-redundant-type-constituents': 'off', + '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/return-await': 'off' } }, { @@ -131,12 +155,6 @@ module.exports = defineConfig({ 'jsdoc/require-jsdoc': 'off' } }, - { - files: ['tests/pools/selection-strategies/**/*.js'], - rules: { - 'n/no-missing-require': 'off' - } - }, { files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'], rules: { @@ -144,20 +162,7 @@ module.exports = defineConfig({ } }, { - files: ['benchmarks/versus-external-pools/**/*.js'], - rules: { - 'n/no-missing-require': 'off' - } - }, - { - files: ['benchmarks/versus-external-pools/**/*.mjs'], - rules: { - 'n/no-missing-import': 'off', - 'import/no-unresolved': 'off' - } - }, - { - files: ['examples/**/*.js'], + files: ['examples/javascript/**/*.js'], rules: { 'n/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off'