Skip to content

Commit

Permalink
Docs: Update options in object-shorthand (#6898)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeber authored and ilyavolodin committed Aug 12, 2016
1 parent cd09c96 commit 3fe3a4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/rules/object-shorthand.md
Expand Up @@ -86,10 +86,9 @@ var foo = {

## Options

The rule takes an option which specifies when it should be applied. It can be set to
"always", "properties", "methods", or "never". The default is "always".
The rule takes an option which specifies when it should be applied. It can be set to one of the following values:

* `"always"` expects that the shorthand will be used whenever possible.
* `"always"` (default) expects that the shorthand will be used whenever possible.
* `"methods"` ensures the method shorthand is used (also applies to generators).
* `"properties` ensures the property shorthand is used (where the key and variable name match).
* `"never"` ensures that no property or method shorthand is used in any object literal.
Expand Down

0 comments on commit 3fe3a4f

Please sign in to comment.