From 721434705bd569e33911e25d2688e33f10898d52 Mon Sep 17 00:00:00 2001 From: Jonathan Wilsson Date: Sat, 24 Sep 2022 18:13:59 +0200 Subject: [PATCH] docs: fix logical-assignment-operators option typo (#16346) --- docs/src/rules/logical-assignment-operators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/rules/logical-assignment-operators.md b/docs/src/rules/logical-assignment-operators.md index d462d6ef423..a7a67d145f8 100644 --- a/docs/src/rules/logical-assignment-operators.md +++ b/docs/src/rules/logical-assignment-operators.md @@ -99,7 +99,7 @@ This option checks for additional patterns with if statements which could be exp ::: incorrect -Examples of **incorrect** code for this rule with the `["always", { enforceIfStatements: true }]` option: +Examples of **incorrect** code for this rule with the `["always", { enforceForIfStatements: true }]` option: ```js /*eslint logical-assignment-operators: ["error", "always", { enforceForIfStatements: true }]*/ @@ -113,7 +113,7 @@ if (a === null || a === undefined) a = b // <=> a ??= b ::: -Examples of **correct** code for this rule with the `["always", { enforceIfStatements: true }]` option: +Examples of **correct** code for this rule with the `["always", { enforceForIfStatements: true }]` option: ::: correct