quick-lint/quick-lint-js

15$: warn on (lo <= x && x <= hi) if lo>hi

Opened this issue · 1 comments

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.

Hey @strager can I claim this for hire task :D