Skip to content

Commit

Permalink
fix(no-expression-statements): arrow functions cannot be self returni…
Browse files Browse the repository at this point in the history
…ng (#847)
  • Loading branch information
RebeccaStevens committed Jul 11, 2024
1 parent 969b77b commit 7217fa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/no-expression-statements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ function checkExpressionStatement(
typescript !== undefined &&
declaration !== undefined &&
typescript.isFunctionLike(declaration) &&
!typescript.isArrowFunction(declaration) &&
"body" in declaration &&
declaration.body !== undefined &&
typescript.isBlock(declaration.body)
Expand Down

0 comments on commit 7217fa4

Please sign in to comment.