15$: warn on (lo <= x && x <= hi) if lo>hi
Opened this issue · 1 comments
strager commented
https://twitter.com/boshen_c/status/1739191812131324257
An expression such as 10 <= x && x <= 9
is always false. quick-lint-js should warn about such cases.
Note that 10 <= x && x <= 9
(buggy) is equivalent to x >= 10 && x <= 9
.
yashmasani commented
Hey @strager can I claim this for hire task :D