Skip to content

Reduce false positive of eslint rule exhaustive-deps improving dependency analysis#33462

Closed
seiyab wants to merge 3 commits intofacebook:mainfrom
seiyab:eslint-react-hooks-destructured
Closed

Reduce false positive of eslint rule exhaustive-deps improving dependency analysis#33462
seiyab wants to merge 3 commits intofacebook:mainfrom
seiyab:eslint-react-hooks-destructured

Conversation

@seiyab
Copy link
Copy Markdown

@seiyab seiyab commented Jun 6, 2025

Summary

This false positive is reported at #16265 (comment) and a member confirmed it is a bug #16265 (comment)

How did you test this change?

Added test cases

seiyab added 3 commits June 6, 2025 14:28
Signed-off-by: seiya <20365512+seiyab@users.noreply.github.com>
Signed-off-by: seiya <20365512+seiyab@users.noreply.github.com>
Signed-off-by: seiya <20365512+seiyab@users.noreply.github.com>
Comment on lines -1850 to +1871
* Assuming () means the passed/returned node:
* (props) => (props)
* props.(foo) => (props.foo)
* props.foo.(bar) => (props).foo.bar
* props.foo.bar.(baz) => (props).foo.bar.baz
* Assuming {} means the passed/returned node and multiple "=>" means recursive calls:
* {props} => {props}
* {props}.foo => {props.foo}
* {props}.foo.bar.baz => {props.foo}.bar.baz => {props.foo.bar}.baz => {props.foo.bar.baz}
* props.{foo} => props.{foo}
* props.foo.{bar} => props.foo.{bar}
* {ref}.current => {ref}.current
* {props}.foo() => {props}.foo()
* {foo}.bar.baz=123 => {foo.bar}.baz=123
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm suspicious of the original comment but not sure enough. Feel free to revert the comment.

@seiyab seiyab changed the title Reduce false positive of eslint rule exhaustive-deps improving dependency analysis in Reduce false positive of eslint rule exhaustive-deps improving dependency analysis Jun 7, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 5, 2025

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions Bot added the Resolution: Stale Automatically closed due to inactivity label Sep 5, 2025
@github-actions
Copy link
Copy Markdown

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@github-actions github-actions Bot closed this Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Resolution: Stale Automatically closed due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants