Interesting Bugs Caught by ESLint’s no-constant-binary-expression

from blog Jordan Eldredge's Blog, | ↗ original
↗ original
I contributed a rule to ESLint that catches a surprisingly wide variety of logic bugs.