Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
[Fix] Avoid typescript-eslint deprecation warnings about typeParameters#3788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…amed to typeArguments
codecovbot commentedJul 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #3788 +/- ##======================================= Coverage 97.75% 97.75% ======================================= Files 135 135 Lines 9715 9719 +4 Branches 3527 3530 +3 =======================================+ Hits 9497 9501 +4 Misses 218 218 ☔ View full report in Codecov by Sentry. |
Unfortunately we're not even testing on v6 yet, let alone v7 - see#3629, which I think this would need to be blocked on (or, that one would cover this one) |
Motivation
When using
eslint-plugin-react
(7.35.0; latest) in a Typescript project with@typescript-eslint/parser": "^7.0.0"
, I got the following warnings when running ESLint:Changes
typeParameters
so that they:typeArguments
first (to support@typescript-eslint/typescript-estree
v7+)typeParameters
(to support@typescript-eslint/typescript-estree
vv+)Testing
Used
yarn patch-package
to also patchpropTypes.js
and verified that the deprecation errors disappeared on my project.