From: Jérôme Benoit Date: Mon, 1 May 2023 14:38:44 +0000 (+0200) Subject: fix: fix eslint configuration X-Git-Tag: v2.4.12~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b70e9c5e0a74918b454e038ce1b56868f4f59d6e;p=poolifier.git fix: fix eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 6ff6e4c1..58450447 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,6 +17,13 @@ module.exports = defineConfig({ 'plugin:import/recommended', 'plugin:promise/recommended' ], + settings: { + 'import/resolver': { + typescript: { + project: './tsconfig.eslint.json' + } + } + }, rules: { 'sort-imports': [ 'error', @@ -104,7 +111,6 @@ 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' diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index c2d0a1b8..7268ebdc 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -1,6 +1,6 @@ import { join } from 'path' -import { DynamicThreadPool, FixedThreadPool } from 'poolifier' import type { MyData, MyResponse } from './worker' +import { DynamicThreadPool, FixedThreadPool } from 'poolifier' export const fixedPool = new FixedThreadPool>( 8,