Disallow Unused Expressions (no-unused-expressions)
Unused expressions are those expressions that evaluate to a value but are never used. For example:
This rule aims to eliminate unused expressions. The value of an expression should always be used, except in the case of expressions that side effect: function calls, assignments, and the
The following patterns are considered warnings:
a && b()
The following patterns are not considered warnings:
a = 0
This rule was introduced in ESLint 0.1.0.