You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Title: Faulty Codemod: [react/19/remove-context-provider] Extra Parentheses in Return Statement
Description:
I found an issue while using codemod react/19/remove-context-provider. The generated code adds extra parentheses after the return statement, which makes the code appear redundant.
waterbird-i
changed the title
Faulty Codemod: Extra Parentheses in Return Statement
Faulty Codemod: [react/19/remove-context-provider] Extra Parentheses in Return Statement
Jan 6, 2025
Issue Title: Faulty Codemod: [react/19/remove-context-provider] Extra Parentheses in Return Statement
Description:
I found an issue while using codemod react/19/remove-context-provider. The generated code adds extra parentheses after the return statement, which makes the code appear redundant.
Example Code:
Suggested Improvement:
I suggest removing the outer parentheses to make the code more concise, as shown below:
Additional Information:
Please confirm whether this is an intentional design choice or an issue that needs to be fixed. Thank you for your efforts and contributions!
The text was updated successfully, but these errors were encountered: