E0188: '=' changes variables; to compare, use '===' instead
In an if
statement or a loop, it is likely a mistake to use =
to compare a
variable with a constant:
To fix this error, write ===
or ==
instead of =
to compare for equality:
Alternatively, if assignment was intended, write parentheses around the
assignment to suppress the warning:
Introduced in quick-lint-js version 2.0.0.
Documentation for other errors