File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/eslint-plugin/docs/rules Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ if (!(someNullCondition ?? true)) {
124
124
125
125
| Comparison | Fixer Output | Notes |
126
126
| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- |
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 ` | |
131
131
| ` nullableBooleanVar === true ` | ` nullableBooleanVar ` | Only checked/fixed if the ` allowComparingNullableBooleansToTrue ` option is ` false ` |
132
132
| ` nullableBooleanVar !== true ` | ` !nullableBooleanVar ` | Only checked/fixed if the ` allowComparingNullableBooleansToTrue ` option is ` false ` |
133
133
| ` nullableBooleanVar === false ` | ` nullableBooleanVar ?? true ` | Only checked/fixed if the ` allowComparingNullableBooleansToFalse ` option is ` false ` |
You can’t perform that action at this time.
0 commit comments