quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.52k stars 192 forks source link

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

Open strager opened 8 months ago

strager commented 8 months ago

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 8 months ago

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