Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-unused-expressions

- Disallow unused expressions

This rule aims to eliminate unused expressions which have no effect on the state of the program.

What ESLint should do when it catches the rule break

Show a warning

Options

allowShortCircuit

Allows to use short circuit evaluations in the expressions.

allowTernary

Allows to use ternary operators in the expressions similarly to short circuit evaluations.

allowTaggedTemplates

Allows to use tagged template literals in the expressions.

Rule examples

You can check them out here.