diff --git a/docs/src/rules/no-else-return.md b/docs/src/rules/no-else-return.md index 379de922b321..a41336553f79 100644 --- a/docs/src/rules/no-else-return.md +++ b/docs/src/rules/no-else-return.md @@ -19,14 +19,14 @@ function foo() { ## Rule Details -This rule is aimed at highlighting an unnecessary block of code following an `if` containing a return statement. As such, it will warn when it encounters an `else` following a chain of `if`s, all of them containing a `return` statement. +This rule is aimed at highlighting an unnecessary block of code following an `if` containing a `return` statement. As such, it will warn when it encounters an `else` following a chain of `if`s, all of them containing a `return` statement. ## Options This rule has an object option: -* `allowElseIf: true` (default) allows `else if` blocks after a return -* `allowElseIf: false` disallows `else if` blocks after a return +* `allowElseIf: true` (default) allows `else if` blocks after a `return` +* `allowElseIf: false` disallows `else if` blocks after a `return` ### allowElseIf: true pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy