X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=9a058e827c6117531f41d87c8f182b9f87191aba;hb=be71219a2e687e8a46a167503df4f5620807db0b;hp=e160b189d2394e46a51c9572026d1fd0aa14a1ef;hpb=e102732c0e3966b81834b2c0bdd087eb051162ad;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index e160b189..9a058e82 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,7 +37,8 @@ module.exports = defineConfig({ 'warn', { skipWords: [ - 'Benoit', + 'axios', + 'benoit', 'benny', 'browserslist', 'builtins', @@ -47,8 +48,10 @@ module.exports = defineConfig({ 'comparator', 'cpu', 'cpus', + 'cryptographically', 'ctx', 'deprecations', + 'deque', 'dequeue', 'dequeued', 'ecma', @@ -57,23 +60,32 @@ module.exports = defineConfig({ 'enum', 'errored', 'esm', + 'fastify', 'fibonacci', + 'fp', 'fs', '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', @@ -81,9 +93,13 @@ module.exports = defineConfig({ 'tsdoc', 'typedoc', 'unlink', + 'unref', 'unregister', 'utf8', + 'webcrypto', 'workerpool', + 'ws', + 'wss', 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] @@ -99,7 +115,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 +131,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' } }, { @@ -158,7 +180,7 @@ module.exports = defineConfig({ } }, { - files: ['examples/**/*.js'], + files: ['examples/javascript/**/*.js'], rules: { 'n/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off'