Skip to content

Commit c038257

Browse files
authored
docs: add eqeqeq in related rules to no-eq-null (#19310)
1 parent 89c8fc5 commit c038257

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/rules/no-eq-null.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: no-eq-null
33
rule_type: suggestion
4+
related_rules:
5+
- eqeqeq
46
---
57

68

@@ -14,7 +16,7 @@ if (foo == null) {
1416

1517
## Rule Details
1618

17-
The `no-eq-null` rule aims reduce potential bug and unwanted behavior by ensuring that comparisons to `null` only match `null`, and not also `undefined`. As such it will flag comparisons to null when using `==` and `!=`.
19+
The `no-eq-null` rule aims reduce potential bug and unwanted behavior by ensuring that comparisons to `null` only match `null`, and not also `undefined`. As such it will flag comparisons to `null` when using `==` and `!=`.
1820

1921
Examples of **incorrect** code for this rule:
2022

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy