File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ function isExhaustiveTypeSwitchViolation(
258
258
context : Readonly < RuleContext < keyof typeof errorMessages , Options > > ,
259
259
) : boolean {
260
260
const discriminantType = getTypeOfNode ( node . discriminant , context ) ;
261
- if ( discriminantType === null || ! discriminantType . isUnion ( ) ) {
261
+ if ( ! discriminantType ? .isUnion ( ) ) {
262
262
return true ;
263
263
}
264
264
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export type NamedCreateRuleCustomMeta<
50
50
*/
51
51
export type BaseOptions = ReadonlyArray < unknown > ;
52
52
53
- // eslint-disable-next-line functional/no-mixed-types
54
53
export type RuleDefinition <
55
54
MessageIds extends string ,
56
55
Options extends BaseOptions ,
@@ -169,6 +168,7 @@ export function createRuleUsingFunction<
169
168
return Object . fromEntries (
170
169
Object . entries ( ruleFunctionsMap ) . map ( ( [ nodeSelector , ruleFunction ] ) => [
171
170
nodeSelector ,
171
+ // prettier-ignore
172
172
checkNode <
173
173
MessageIds ,
174
174
Readonly < RuleContext < MessageIds , Options > > ,
You can’t perform that action at this time.
0 commit comments