eslint-plugin-unicorn
eslint-plugin-unicorn copied to clipboard
Don't prefer number properties for Infinity by default
We were discussing this on the tc39 forums... I don't think the consistency is worth it.
Infinity
and -Infinity
require less cognitive load and are easier to write than Number.POSITIVE_INFINTY
and Number.NEGATIVE_INFINITY
.