/ eslint Public
New option in no-unsafe-negation to report ! a < b #12163
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
This change enhances an existing feature of ESLint
Recommended issue for those participating in Hacktoberfest https://hacktoberfest.digitalocean.com/
The team would welcome a contribution from the community for this issue
Relates to ESLint's core rules
What rule do you want to change?
The rule currently targets only
>=are also relational operators.
! a < bis equivalent to
(a ? 0 : 1) < b(I think), which is rarely the intended meaning:
Does this change cause the rule to produce more or fewer warnings?
More if the option is set to
true. Default is
How will the change be implemented? (New option, new default behavior, etc.)?
Please provide some example code that this change will affect:
What does the rule currently do for this code?
What will the rule do after it's changed?
Are you willing to submit a pull request to implement this change?
The text was updated successfully, but these errors were encountered: