jsx-eslint/eslint-plugin-react

[Bug]: Not working with @typescript-eslint/parser v8

Open

#3.792 geöffnet am 1. Aug. 2024

Auf GitHub ansehen
 (4 Kommentare) (7 Reaktionen) (0 zugewiesene Personen)JavaScript (2.797 Forks)batch import
help wantedtypescript

Repository-Metriken

Stars
 (8.630 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

Due to : https://github.com/typescript-eslint/typescript-eslint/pull/8933

accessing "typeParameters" will now be undefined.

It needs to be changed to "typeArguments" (and the other deprecations in the Pr linked above).

Expected Behavior

The result is that eslint-pugin-react doesn't find any declared props in a typescript project.

I see there is a PR to fix this: https://github.com/jsx-eslint/eslint-plugin-react/pull/3788 but it is about the deprecations, not the fact that eslint-plugin-react just stops working without any indication why (no errors from npm etc.)

eslint-plugin-react version

7.35.0

eslint version

v8.57.0

node version

v22

Contributor Guide