From 1aa6f1c43722e458840202be82e312a07338238a Mon Sep 17 00:00:00 2001 From: Hans Bergren Date: Thu, 21 May 2020 14:33:23 -0400 Subject: [PATCH] Remove `ignoreRHS` from `no-unnecessary-condition` documentation This was removed from the actual code in this PR: https://github.com/typescript-eslint/typescript-eslint/pull/1163 --- .../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 5b24b4cc9659..09e6730c3c5d 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`: