Skip to content

[Fix] destructuring-assignment: Handle destructuring of useContext in SFC#2797

Merged
ljharb merged 1 commit intojsx-eslint:masterfrom
ed-jinyoung-park:issue-2309
Dec 28, 2022
Merged

[Fix] destructuring-assignment: Handle destructuring of useContext in SFC#2797
ljharb merged 1 commit intojsx-eslint:masterfrom
ed-jinyoung-park:issue-2309

Conversation

@ed-jinyoung-park
Copy link
Copy Markdown
Contributor

@ed-jinyoung-park ed-jinyoung-park commented Sep 16, 2020

i reopen PR on resolve issue - #2309 cause i did a lot of commits while editing.

  • add rule of handling destructuring of useContext in SFC
  • delete detecting variable named 'context' in SFC

Fixes #2309. Closes #2787.

Loading
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.

[react/destructuring-assignment] Shows weird behaviour when I declare a variable with the name context

2 participants