X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=c1e571d5fda56bf1c550cac7c0c4e78fa3712239;hb=96f8e6b29466ced347e1a317a1864a136ed6a5ab;hp=a95cf1ae1ee0e2696294e2d3516acac166b298de;hpb=f58df60b2e083443a940af9ae07883a5568e84bf;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index a95cf1ae..c1e571d5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -97,7 +97,6 @@ module.exports = defineConfig({ 'unlink', 'unref', 'utf8', - 'webcrypto', 'workerpool', 'ws', 'wss', @@ -122,17 +121,28 @@ module.exports = defineConfig({ 'standard-with-typescript' ], rules: { - '@typescript-eslint/no-inferrable-types': [ - 'error', - { ignoreProperties: true } - ], + '@typescript-eslint/non-nullable-type-assertion-style': 'off', 'tsdoc/syntax': 'warn' } }, { files: ['examples/typescript/**/*.ts'], rules: { - 'import/no-unresolved': 'off', + 'import/no-unresolved': [ + 'error', + { + ignore: [ + '^axios$', + '^express$', + '^fastify$', + '^fastify-plugin$', + '^node-fetch$', + '^nodemailer$', + '^poolifier$', + '^ws$' + ] + } + ], '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-return': 'off', @@ -164,7 +174,6 @@ module.exports = defineConfig({ { files: ['examples/javascript/**/*.js'], rules: { - 'n/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off' } }