I want to have the same option as explicit-length-check
to choose between greater-than
and none-zero
.
none-zero
could stay as default but if changed to greater-than
it should behave as below
const index = foo.indexOf('bar');
if (index !== -1) {}
const index = foo.indexOf('bar');
if (index > -1) {}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too