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
stevensacks
changed the title
[Bug]: jsx-handler-names reports error with inline ternary conditional callbacks
[Enhancement]: jsx-handler-names reports error with inline ternary conditional callbacks
Nov 21, 2024
I hope it's ok that I've changed the name to Enhancement. Since it's not technically a bug because it is not written to support this, it's a request for enhancement.
Is there an existing issue for this?
Description Overview
Conditionally applying callback functions with inline ternary statements violates the rule, even when the condition will satisfy the rule.
Expected Behavior
If there is an inline ternary condition and it returns the properly named function, it should pass.
eslint-plugin-react version
v7.37.2
eslint version
v8.57.0
node version
v20.17.0
The text was updated successfully, but these errors were encountered: