Skip to content

Commit 5296201

Browse files
committed
fix: imports
1 parent 5fc7eec commit 5296201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/reverse-if-else.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { AST_NODE_TYPES } from '@typescript-eslint/utils'
12
import type { Command } from '../types'
2-
import { AST_NODE_TYPES } from '@typescript-eslint/utils'
33

44
export const reverseIfElse: Command = {
55
name: 'reverse-if-else',
@@ -12,7 +12,7 @@ export const reverseIfElse: Command = {
1212

1313
const elseNode = node.alternate
1414

15-
const isElseif = elseNode?.type === AST_NODE_TYPES.IfStatement
15+
const isElseif = elseNode?.type === ('IfStatement' as AST_NODE_TYPES.IfStatement)
1616
if (isElseif)
1717
return ctx.reportError('Unable reverse when `else if` statement exist')
1818

0 commit comments

Comments
 (0)