Skip to content

Commit 7184dab

Browse files
style: auto fixes
1 parent 6599ffc commit 7184dab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rules/no-conditional-statements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/utils/rule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export type NamedCreateRuleCustomMeta<
5050
*/
5151
export type BaseOptions = ReadonlyArray<unknown>;
5252

53-
// eslint-disable-next-line functional/no-mixed-types
5453
export 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>>,

0 commit comments

Comments
 (0)