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

+3-1
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)