Bug: rc-v8 projectService option leads to default project errors when used with eslint-plugin-import #9223
Closed
4 tasks done
Labels
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
triage
Waiting for team members to take a look
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
While trying out
@typescript-eslint@rc-v8
, with theprojectService
key andeslint-plugin-import
, a number of unrelated files end up being included in the default project. This then leads to the "Too many files (>...) have matched the default project" error.This has surfaced in the past, first in #8428, and then as a general issue in #8428.
The core issue is that the
projectService
key is not deleted in the relevanteslint-module-utils
call-site., so files end up being parsed with the project service.I'd be happy to contribute a PR, either for this specific key, or for the more general issue of exporting a utility to do the deletion.
I filed this as a separate issue, in case it helps tracking, but feel free to move it around 😇
Reproduction Repository Link
https://github.com/fpapado/typescript-eslint-v8-with-plugin-import
Repro Steps
pnpm install
pnpm eslint .
Versions
@typescript-eslint/eslint-plugin
8.0.0-alpha.25
@typescript-eslint/parser
8.0.0-alpha.25
The text was updated successfully, but these errors were encountered: