Skip to content

Commit

Permalink
Docs: Remove superfluous object option sample code (#10652)
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter authored and aladdin-add committed Jul 28, 2018
1 parent d34a13b commit c2bb8bb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/rules/no-else-return.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ This rule is aimed at highlighting an unnecessary block of code following an `if

This rule has an object option:

```json
{
"no-else-return": ["error", { "allowElseIf": true }],
// or
"no-else-return": ["error", { "allowElseIf": false }]
}
```

* `allowElseIf: true` (default) allows `else if` blocks after a return
* `allowElseIf: false` disallows `else if` blocks after a return

Expand Down

0 comments on commit c2bb8bb

Please sign in to comment.