Rule: triple-equals
Requires ===
and !==
in place of ==
and !=
.
Config
Two arguments may be optionally provided:
"allow-null-check"
allows==
and!=
when comparing tonull
."allow-undefined-check"
allows==
and!=
when comparing toundefined
.
Config examples
"triple-equals": true
"triple-equals": [true, "allow-null-check"]
"triple-equals": [true, "allow-undefined-check"]
Schema
{ "type": "array", "items": { "type": "string", "enum": [ "allow-null-check", "allow-undefined-check" ] }, "minLength": 0, "maxLength": 2 }