Skip to content

Commit 6291f38

Browse files
authored
docs(eslint-plugin): [no-unnecessary-boolean-literal-compare] fix fixer docs (#3397)
1 parent e8ce2bf commit 6291f38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ if (!(someNullCondition ?? true)) {
124124

125125
| Comparison | Fixer Output | Notes |
126126
| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- |
127-
| `booleanVar === true` | `booleanLiteral` | |
128-
| `booleanVar !== true` | `!booleanLiteral` | |
129-
| `booleanVar === false` | `!booleanLiteral` | |
130-
| `booleanVar !== false` | `booleanLiteral` | |
127+
| `booleanVar === true` | `booleanVar` | |
128+
| `booleanVar !== true` | `!booleanVar` | |
129+
| `booleanVar === false` | `!booleanVar` | |
130+
| `booleanVar !== false` | `booleanVar` | |
131131
| `nullableBooleanVar === true` | `nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
132132
| `nullableBooleanVar !== true` | `!nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
133133
| `nullableBooleanVar === false` | `nullableBooleanVar ?? true` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` |

0 commit comments

Comments
 (0)