Skip to content

"ts-strict-with-react" this test case reports error #811

@theozhang32

Description

@theozhang32

Describe the bug

With the latest version v7.3.0, when i run pnpm test, "ts-strict-with-react" reports error.

Image

The bug seems to be caused by this feature.

Reproduction

use the latest version, run pnpm install and pnpm test.(@eslint-react/eslint-plugin >= v2.10.0)

System Info

System:
    OS: macOS 14.8.3
    CPU: (8) arm64 Apple M1
    Memory: 83.91 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.17.0 - /Users/theozhang/.local/state/fnm_multishells/94324_1770616357606/bin/node
    npm: 10.9.2 - /Users/theozhang/.local/state/fnm_multishells/94324_1770616357606/bin/npm
    pnpm: 10.16.1 - /Users/theozhang/.local/state/fnm_multishells/94324_1770616357606/bin/pnpm
  Browsers:
    Chrome: 144.0.7559.133
    Safari: 26.2

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions