Skip to content

Commit

Permalink
Update: support async arrow fn in function-paren-newline (fixes #13728)…
Browse files Browse the repository at this point in the history
… (#13729)
  • Loading branch information
mdziekon committed Oct 6, 2020
1 parent fe301b8 commit da78fa1
Show file tree
Hide file tree
Showing 2 changed files with 370 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/function-paren-newline.js
Expand Up @@ -218,7 +218,7 @@ module.exports = {
}

case "ArrowFunctionExpression": {
const firstToken = sourceCode.getFirstToken(node);
const firstToken = sourceCode.getFirstToken(node, { skip: (node.async ? 1 : 0) });

if (!astUtils.isOpeningParenToken(firstToken)) {

Expand Down

0 comments on commit da78fa1

Please sign in to comment.