Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

prefer-object-spread

- Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead

Fixable

Examples of incorrect code for this rule:.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.