Skip to content

Commit

Permalink
Docs: Clarify generator-star-spacing config example (fixes eslint#8027)…
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatran1403 authored and kaicataldo committed Feb 7, 2017
1 parent a11d4a6 commit c596690
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/rules/generator-star-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ The rule takes one option, an object, which has two keys `before` and `after` ha

The default is `{"before": true, "after": false}`.

An example configuration:

```json
"generator-star-spacing": ["error", {"before": false, "after": true}]
"generator-star-spacing": ["error", {"before": true, "after": false}]
```

And the option has shorthand as a string keyword:
Expand All @@ -69,6 +71,8 @@ And the option has shorthand as a string keyword:
* `{"before": true, "after": true}``"both"`
* `{"before": false, "after": false}``"neither"`

An example of shorthand configuration:

```json
"generator-star-spacing": ["error", "after"]
```
Expand Down

0 comments on commit c596690

Please sign in to comment.