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] destructuring-assignment: fix false negative when using typeof props.a #3835

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

golopot
Copy link
Contributor

@golopot golopot commented Sep 29, 2024

Fixes #3828

The rule failed to catch usages of typeof props.a because it is parsed a TSQualifiedName instead of a memberExpression.

golopot and others added 2 commits September 29, 2024 22:32
…of props.a`

Fixes jsx-eslint#3828

Co-authored-by: Chiawen Chen <golopot@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@golopot golopot force-pushed the issue-3828 branch 2 times, most recently from 3cf37dc to 76025ba Compare September 30, 2024 15:20
@golopot golopot changed the base branch from issue-3828 to master September 30, 2024 15:20
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 93.66%. Comparing base (1f95a24) to head (1a1eb4b).

Files with missing lines Patch % Lines
lib/rules/destructuring-assignment.js 12.50% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3835      +/-   ##
==========================================
- Coverage   97.69%   93.66%   -4.03%     
==========================================
  Files         136      133       -3     
  Lines        9958     9957       -1     
  Branches     3688     3693       +5     
==========================================
- Hits         9728     9326     -402     
- Misses        230      631     +401     
Flag Coverage Δ
93.66% <12.50%> (-4.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks! i'll get this landed in the next day or two.

@ljharb ljharb merged commit 63aceff into jsx-eslint:master Oct 2, 2024
376 checks passed
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/destructuring-assignment inconsistent behavior
2 participants