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

handle ternary operation for jsx-no-bind #1723

Merged
merged 2 commits into from
Mar 14, 2018

Conversation

gwenaellarmet
Copy link
Contributor

fix for issue #1722

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.

Thanks, LGTM pending one comment

@@ -81,6 +81,12 @@ module.exports = {
node.callee.property.name === 'bind'
) {
return 'bindCall';
} else if (
nodeType === 'ConditionalExpression'
Copy link
Member

Choose a reason for hiding this comment

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

I think that this if condition can fit on one line :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I try to match the code style of the function, I can change it if needed

@ljharb ljharb merged commit a5f259f into jsx-eslint:master Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants