Skip to content

Commit 39115c8

Browse files
gfyoungbtmills
andauthored
Docs: provide more context to no-eq-null (#14801)
* Docs: provide more context to no-eq-null * Encourage use of the more powerful eqeqeq rule for linting equality checks. * Indicate this rule is compatible with an analogous rule in JSHint. xref #179 closes #14749 * Update docs/rules/no-eq-null.md Co-authored-by: Brandon Mills <btmills@users.noreply.github.com> Co-authored-by: Brandon Mills <btmills@users.noreply.github.com>
1 parent 9a3c73c commit 39115c8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/rules/no-eq-null.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ while (qux !== null) {
3939
baz();
4040
}
4141
```
42+
43+
## Compatibility
44+
45+
* **JSHint**: This rule corresponds to `eqnull` rule of JSHint.
46+
47+
## When Not To Use It
48+
49+
If you want to enforce type-checking operations in general, use the more powerful [eqeqeq](./eqeqeq) instead.

0 commit comments

Comments
 (0)