We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
isBooleanNode(node)
isInControlFlow(node)
eslint-plugin-unicorn/rules/utils/boolean.js
Lines 26 to 37 in d3e4b80
Currently, this function is too complicated, judging both the node itself and the node's parent.
It is easy to false positives (#1840). Let's split this into two functions
isBooleanExpression(node)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
eslint-plugin-unicorn/rules/utils/boolean.js
Lines 26 to 37 in d3e4b80
Currently, this function is too complicated, judging both the node itself and the node's parent.
It is easy to false positives (#1840). Let's split this into two functions
isBooleanExpression(node)
- ImplementedisInControlFlow(node)
- create a new functionThe text was updated successfully, but these errors were encountered: