diff --git a/eslint.config.mjs b/eslint.config.mjs index 4db8163..34400a1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -89,6 +89,13 @@ export default tseslint.config( allowObject: true } ] + }, + settings: { + 'import/resolver': { + typescript: { + project: './tsconfig.lint.json' + } + } } } ) diff --git a/tsconfig.json b/tsconfig.json index 1d6bf59..b51ca7f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,5 @@ "skipLibCheck": true, "newLine": "lf" }, - "exclude": ["./dist", "./node_modules", "./__tests__", "./coverage"] + "exclude": ["./dist", "./node_modules", "./__tests__", "./coverage", "./jest.config.ts"] } diff --git a/tsconfig.lint.json b/tsconfig.lint.json index a08b563..cd9a6e7 100644 --- a/tsconfig.lint.json +++ b/tsconfig.lint.json @@ -2,8 +2,9 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "./tsconfig.json", "compilerOptions": { - "noEmit": true + "noEmit": true, + "rootDir": "." }, - "include": ["./__tests__/**/*", "./src/**/*"], + "include": ["./__tests__/**/*", "./src/**/*", "./jest.config.ts"], "exclude": ["./dist", "./node_modules", "./coverage", "*.json"] }