From 23b4b662717f96f9dbbf161ac31d38a5871aed23 Mon Sep 17 00:00:00 2001 From: Hans Bergren Date: Thu, 21 May 2020 15:17:47 -0400 Subject: [PATCH] docs(eslint-plugin): remove `ignoreRHS` from `no-unnecessary-condition` (#2052) --- .../eslint-plugin/docs/rules/no-unnecessary-condition.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md b/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md index 5b24b4cc965..09e6730c3c5 100644 --- a/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md +++ b/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md @@ -64,14 +64,6 @@ function bar(arg?: string | null) { Accepts an object with the following options: -- `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: - -```ts -function head(items: T[]) { - return items.length && items[0].toUpperCase(); -} -``` - - `allowConstantLoopConditions` (default `false`) - allows constant expressions in loops. Example of correct code for when `allowConstantLoopConditions` is `true`: