Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/operators/no-loose-equality

In the code-quality set. Report only. Intent: suspicious. Upstream gates: strictRules.disallowedLooseComparison.

What it does

Disallows the loose comparison operators == and !=; use === and !==.

Configuration

[lint.rules]
"operators/no-loose-equality" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/operators rules · Edit this page

Last updated on

Was this page helpful?