import-js / import-js/eslint-import-resolver-typescript

Always issues "Multiple projects found, consider using a single `tsconfig` with `references` to speed up, or use `noWarnOnMultipleProjects` to suppress this warning"

Open
#484 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
825
Forks
73
PR merge metrics
No merged PRs in 30d

Description

I have set up my codebase to use TypeScript's Project References, but I am still getting this warning every time I run ESLint with this plugin active.

My codebase is a monorepo. I am using Solution-Style Project References (with a single `tsconfig.json` at the project root with with an empty array for `files` and `references` to all of the individual projects, which each have their own `tsconfig.json`s). https://github.com/import-js/eslint-import-resolver-typescript/issues/474 suggests that this plugin cannot follow Solution-Style Project References without them being explicitly defined in a `project` array, but I've done this and I'm still getting the warning.

Relevant section of my `eslint.config.js` file:

```js

{
settings: {
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true,
project: ['tsconfig.json', 'tsconfig.test.json', 'packages/*/tsconfig.json']
})
]
}
},

```

Root `tsconfig.json`:

```json
{
"files": [],
"references": [
{ "path": "./packages/common" },
{ "path": "./packages/common-back" },
{ "path": "./packages/back" },
{ "path": "./packages/common-front" },
{ "path": "./packages/front" },
],
"include": [],
"exclude": ["node_modules/**/*", "*/**/.jest/**/*", "*/**/*.test.*"]
}
```

- `eslint` 9.38.0
- `typescript` 5.9.3
- `typescript-eslint` 8.46.2
- `eslint-plugin-import-x` 4.16.1
- `eslint-import-resolver-typescript` 4.4.4

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the warning with the shown eslint.config.js and the root tsconfig.json plus packages/*/tsconfig.json project settings. Trace how the resolver handles the project list and Solution-Style references, then verify the warning is no longer emitted for this setup without breaking the noWarnOnMultipleProjects behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.