Skip to content

Commit

Permalink
fix(no-expression-statements): arrow functions cannot be self returning
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 11, 2024
1 parent 711bab1 commit cad0237
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 cad0237

Please sign in to comment.