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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃搸 Implement noYodaExpression
- yoda
#2743
Comments
I think we could just skip the implementation of |
cool, will keep that in mind :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Issue just to keep track of my progress on the rule implementation, discussed here.
Implement the equivalent ESLint rule yoda to forbid the use of yoda expressions.
Options
We wont implement the part of the original rules that enforces the use of yoda expressions (
always
) as it seems that is rarely used.The
onlyEquality
option is also used rarely so we will skip it for now.The
exceptRange
option is more adopted so it's worth supporting it.The snippets below are from the ESLint rule tests.
Valid
Valid - Range expressions
Invalid
The text was updated successfully, but these errors were encountered: