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(
258258 context : Readonly < RuleContext < keyof typeof errorMessages , Options > > ,
259259) : boolean {
260260 const discriminantType = getTypeOfNode ( node . discriminant , context ) ;
261- if ( discriminantType === null || ! discriminantType . isUnion ( ) ) {
261+ if ( ! discriminantType ? .isUnion ( ) ) {
262262 return true ;
263263 }
264264
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export type NamedCreateRuleCustomMeta<
5050 */
5151export type BaseOptions = ReadonlyArray < unknown > ;
5252
53- // eslint-disable-next-line functional/no-mixed-types
5453export type RuleDefinition <
5554 MessageIds extends string ,
5655 Options extends BaseOptions ,
@@ -169,6 +168,7 @@ export function createRuleUsingFunction<
169168 return Object . fromEntries (
170169 Object . entries ( ruleFunctionsMap ) . map ( ( [ nodeSelector , ruleFunction ] ) => [
171170 nodeSelector ,
171+ // prettier-ignore
172172 checkNode <
173173 MessageIds ,
174174 Readonly < RuleContext < MessageIds , Options > > ,
You can’t perform that action at this time.
0 commit comments