Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

yoda

- Require or disallow “Yoda” conditions

Fixable

This rule aims to enforce consistent style of conditions which compare a variable to a literal value.

What ESLint should do when it catches the rule break

Show a warning

Options

never

Rule examples

You can check them out here.