X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=9d0d7ce4cea3efda4777c7004a459cd307f8df57;hb=58c0dd01a282b063f30a1d4b71b98d1426239c04;hp=f44581f539d3e05de1a79bc29156fadfa70b5930;hpb=3314e5404cc3f813e24a78ae5d42793062efc9d1;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index f44581f5..9d0d7ce4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -65,6 +65,7 @@ module.exports = defineConfig({ 'fibonacci', 'fp', 'fs', + 'func', 'inheritDoc', 'javascript', 'jsdoc', @@ -131,7 +132,21 @@ module.exports = defineConfig({ { 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', @@ -149,7 +164,7 @@ module.exports = defineConfig({ extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] }, { - files: ['tests/**/*.js'], + files: ['tests/**/*.js', 'tests/**/*.mjs'], rules: { 'jsdoc/require-jsdoc': 'off' } @@ -163,7 +178,6 @@ module.exports = defineConfig({ { files: ['examples/javascript/**/*.js'], rules: { - 'n/no-missing-require': 'off', 'jsdoc/require-jsdoc': 'off' } }