Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] prop-types: false positives since upgrading typescript-eslint to v8 #3809

Closed
wants to merge 1 commit into from

Conversation

pplancq
Copy link

@pplancq pplancq commented Aug 30, 2024

Hello!

I'd like to start by thanking the amazing staff at this bookshop for all their hard work.

I'm thrilled to present my first contribution, which is a correction to the false positive of prop-types rule that have been raised since version v8 of typescript-eslint.

Since version v8, it seems that the typeParameters parameter no longer exists, so I've replaced it with the typeArguments parameter, which is equivalent and all without causing a breaking change.

Closes #3796

@pplancq pplancq changed the title [Fix] prop-types: positives since upgrading typescript-eslint to v8 [Fix] prop-types: false positives since upgrading typescript-eslint to v8 Aug 30, 2024
@pplancq pplancq force-pushed the bugfix/prop-types branch from 8e738fe to 99bd721 Compare August 30, 2024 13:19
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (a2306e7) to head (99bd721).
Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3809      +/-   ##
==========================================
+ Coverage   97.49%   97.75%   +0.25%     
==========================================
  Files         132      132              
  Lines        9707     9707              
  Branches     3554     3555       +1     
==========================================
+ Hits         9464     9489      +25     
+ Misses        243      218      -25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ljharb
Copy link
Member

ljharb commented Aug 30, 2024

The change looks good, but I'd prefer not to add code to support v8 of typescript-eslint when we're not even testing on v6 yet (see #3629, which i think subsumes this PR)

@pplancq
Copy link
Author

pplancq commented Aug 30, 2024

Thanks for your reply, I was thinking more of this PR as a patch while waiting for full compatibility.

I see that your PR has been going on for a while and I understand perfectly that some things take time.

Now it's up to you to decide whether or not to add this modification.

@ljharb
Copy link
Member

ljharb commented Sep 12, 2024

Obsoleted by #3629.

@ljharb ljharb closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: react/prop-types false positives since upgrading typescript-eslint to v8
2 participants