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

lint/types/prefer-identical-same-type

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

What it does

Use ===/!== over ==/!=, if values have the same type

Configuration

[lint.rules]
"types/prefer-identical-same-type" = "error"

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

Replaces

More lint/types rules · Edit this page

Last updated on

Was this page helpful?