Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

object-shorthand

- Require or disallow method and property shorthand syntax for object literals

Fixable

This rule enforces the use of the shorthand syntax. This applies to all methods (including generators) defined in object literals and any properties defined where the key name matches name of the assigned variable.

What ESLint should do when it catches the rule break

Show a warning

Options

always

Rule examples

You can check them out here.