Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23b4b66

Browse files
authored
docs(eslint-plugin): remove ignoreRHS from no-unnecessary-condition (typescript-eslint#2052)
1 parent e9586c6 commit 23b4b66

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/eslint-plugin/docs/rules/no-unnecessary-condition.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ function bar(arg?: string | null) {
6464

6565
Accepts an object with the following options:
6666

67-
- `ignoreRhs` (default `false`) - doesn't check if the right-hand side of `&&` and `||` is a necessary condition. For example, the following code is valid with this option on:
68-
69-
```ts
70-
function head<T>(items: T[]) {
71-
return items.length && items[0].toUpperCase();
72-
}
73-
```
74-
7567
- `allowConstantLoopConditions` (default `false`) - allows constant expressions in loops.
7668

7769
Example of correct code for when `allowConstantLoopConditions` is `true`:

0 commit comments

Comments
 (0)