Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-eq-null

- Disallow null comparisons without type-checking operators

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 !=.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.