Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug: rc-v8 projectService option leads to default project errors when used with eslint-plugin-import #9223

Copy link
Copy link
Closed as not planned
@fpapado

Description

@fpapado
Issue body actions

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

While trying out @typescript-eslint@rc-v8, with the projectService key and eslint-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 relevant eslint-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

  1. clone the repo
  2. pnpm install
  3. pnpm eslint .

Versions

package version
@typescript-eslint/eslint-plugin 8.0.0-alpha.25
@typescript-eslint/parser 8.0.0-alpha.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.triageWaiting for team members to take a lookWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.