Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-implicit-coercion

- Disallow shorthand type conversions

Fixable

This rule is aimed to flag shorter notations for the type conversion, then suggest a more self-explanatory notation.

What ESLint should do when it catches the rule break

Show a warning

Options

boolean

Warns shorter type conversions for boolean type.

number

Warns shorter type conversions for number type.

string

Warns shorter type conversions for string type.

Rule examples

You can check them out here.