Skip to content

Bug: Reproducible allowAutomaticSingleRunInference failure #5880

Closed
@aaronadamsCA

Description

@aaronadamsCA

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

I believe I've reproduced #5136.

I seem to have it narrowed down to the following very specific combination:

  • Using typescript-eslint together with eslint-plugin-import;
  • Using allowAutomaticSingleRunInference;
  • Importing from "@mui/joy/styles" - it seems this import is haunted somehow.

Even weirder - it doesn't always reproduce locally, but fails every time when running on GitHub Actions:

https://github.com/aaronadamsCA/typescript-eslint-issue-5136/actions/runs/3321426085/jobs/5489056308

This was not easy to isolate, but hopefully this reproduction can help resolve the issue for good.

For now we will simply disable allowAutomaticSingleRunInference in our repositories to avoid this issue.

Reproduction Repository Link

https://github.com/aaronadamsCA/typescript-eslint-issue-5136

Repro Steps

  1. clone the repo
  2. yarn install
  3. yarn run check

Versions

package version
@typescript-eslint/eslint-plugin 5.41.0
@typescript-eslint/parser 5.41.0
TypeScript 4.8.4
ESLint 8.26.0
node 16.17.0

Also note Gatsby has a transitive dependency on @typescript-eslint/eslint-plugin@npm:4.33.0, but I don't believe this is related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions