Skip to content

Commit 4302d46

Browse files
committed
chore: fix eslint errors
1 parent 34a7689 commit 4302d46

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/asyncify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as t from '@babel/types'
22
import { NodePath } from '@babel/traverse'
33

44
import returnsOrAwaitsPromises from './util/returnsOrAwaitsPromises'
5-
import { isPromiseHandler, isPromiseMethodCall } from './util/predicates'
5+
import { isPromiseMethodCall } from './util/predicates'
66
import findPromiseChains from './util/findPromiseChains'
77
import unwindPromiseChain from './util/unwindPromiseChain'
88
import finalCleanup from './util/finalCleanup'

src/util/builders.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import * as t from '@babel/types'
2-
import { NodePath } from '@babel/traverse'
3-
42
import { needsAwait } from './predicates'
53

64
export function awaited<T extends t.Expression>(node: T): t.Expression {

src/util/convertConditionalReturns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function convertConditionalReturns(
4848
parent.traverse(
4949
{
5050
IfStatement: {
51-
enter(path: NodePath<t.IfStatement>) {
51+
enter(path: NodePath<t.IfStatement>): void {
5252
if (path.parentPath.isIfStatement()) return
5353
ifDepth++
5454
const { returning, notReturning } = splitBranches(path)
@@ -62,7 +62,7 @@ export default function convertConditionalReturns(
6262
}
6363
}
6464
},
65-
exit(path: NodePath<t.IfStatement>) {
65+
exit(path: NodePath<t.IfStatement>): void {
6666
if (path.parentPath.isIfStatement()) return
6767
ifDepth--
6868
},

src/util/finalCleanup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function finalCleanup(path: NodePath<t.Function>): void {
2525
path.traverse(
2626
{
2727
IfStatement: {
28-
exit(path: NodePath<t.IfStatement>) {
28+
exit(path: NodePath<t.IfStatement>): void {
2929
const consequent = path.get('consequent')
3030
const alternate = path.get('alternate')
3131
if (isEmptyBlock(consequent)) {

src/util/shouldIgnoreChain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import getFinallyHandler from './getFinallyHandler'
88

99
function chainLength(path: NodePath<t.CallExpression>): number {
1010
let length = 0
11-
for (const link of iterateChain(path)) length++
11+
for (const link of iterateChain(path)) length++ // eslint-disable-line @typescript-eslint/no-unused-vars
1212
return length
1313
}
1414

0 commit comments

Comments
 (0)