Reports uses of loose equality operators == and !=.
==
!=
config = [ FunctionalJavascript.NoLooseEquality.rule ]
function compare(a, b) { return a == b; } function compare(a, b) { return a != b; }
function compare(a, b) { return a === b; } function compare(a, b) { return a !== b; }
You can try this rule out by running the following command:
elm-review --template mateusfpleite/elm-review-functional-javascript/example --rules NoLooseEquality
Reports uses of loose equality operators
==and!=.Fail
Success
Try it out
You can try this rule out by running the following command: