Skip to content

Commit 7214347

Browse files
authored
docs: fix logical-assignment-operators option typo (#16346)
1 parent a578780 commit 7214347

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/rules/logical-assignment-operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This option checks for additional patterns with if statements which could be exp
9999
100100
::: incorrect
101101
102-
Examples of **incorrect** code for this rule with the `["always", { enforceIfStatements: true }]` option:
102+
Examples of **incorrect** code for this rule with the `["always", { enforceForIfStatements: true }]` option:
103103
104104
```js
105105
/*eslint logical-assignment-operators: ["error", "always", { enforceForIfStatements: true }]*/
@@ -113,7 +113,7 @@ if (a === null || a === undefined) a = b // <=> a ??= b
113113
114114
:::
115115
116-
Examples of **correct** code for this rule with the `["always", { enforceIfStatements: true }]` option:
116+
Examples of **correct** code for this rule with the `["always", { enforceForIfStatements: true }]` option:
117117
118118
::: correct
119119

0 commit comments

Comments
 (0)