You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/oxlint/src/snapshots/fixtures__tsgolint_--type-aware@oxlint.snap
+39-2Lines changed: 39 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,20 @@ working directory: fixtures/tsgolint
126
126
: ^^^^^^^
127
127
`----
128
128
129
+
x typescript-eslint(no-unnecessary-condition): Unnecessary conditional, value is always truthy.
130
+
,-[no-unneccessary-condition.ts:3:19]
131
+
2 | declare const b2: boolean;
132
+
3 | export const t1 = b1 && b2;
133
+
: ^^
134
+
`----
135
+
136
+
x typescript-eslint(strict-boolean-expressions): Unexpected object value in conditional. An object is always truthy.
137
+
,-[no-unneccessary-condition.ts:3:19]
138
+
2 | declare const b2: boolean;
139
+
3 | export const t1 = b1 && b2;
140
+
: ^^
141
+
`----
142
+
129
143
x typescript-eslint(no-unnecessary-boolean-literal-compare): This expression unnecessarily compares a boolean value to a boolean instead of using it directly.
130
144
,-[no-unnecessary-boolean-literal-compare.ts:2:5]
131
145
1 | declare const someCondition: boolean;
@@ -181,6 +195,14 @@ working directory: fixtures/tsgolint
181
195
3 |
182
196
`----
183
197
198
+
x typescript-eslint(no-unnecessary-condition): Unnecessary comparison between literal values.
199
+
,-[no-unsafe-enum-comparison.ts:9:20]
200
+
8 | }
201
+
9 | const comparison = Status.Open === Color.Red;
202
+
: ^^^^^^^^^^^^^^^^^^^^^^^^^
203
+
10 |
204
+
`----
205
+
184
206
x typescript-eslint(no-unsafe-enum-comparison): The two values in this comparison do not have a shared enum type.
185
207
,-[no-unsafe-enum-comparison.ts:9:20]
186
208
8 | }
@@ -283,6 +305,13 @@ working directory: fixtures/tsgolint
0 commit comments