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

lint/types/no-loose-comparison

In the code-quality set. Safe fix where types prove it, unsafe otherwise. Intent: suspicious.

What it does

Comparisons should be strict.

Configuration

[lint.rules]
"types/no-loose-comparison" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/types rules · Edit this page

Last updated on

Was this page helpful?