Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gfyoung and btmills committed Jul 15, 2021
1 parent 9a3c73c commit 39115c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/rules/no-eq-null.md
Expand Up @@ -39,3 +39,11 @@ while (qux !== null) {
baz();
}
```

## Compatibility

* **JSHint**: This rule corresponds to `eqnull` rule of JSHint.

## When Not To Use It

If you want to enforce type-checking operations in general, use the more powerful [eqeqeq](./eqeqeq) instead.

0 comments on commit 39115c8

Please sign in to comment.