-
-
Notifications
You must be signed in to change notification settings - Fork 78
Add support for async functions in arrow-parens #9
Conversation
*/ | ||
function parens(node) { | ||
var token = context.getFirstToken(node); | ||
if (node.async) token = context.getTokenAfter(token); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this line like I mentioned in #8 (comment)
Add support for async functions in arrow-parens
@leebyron Ok should be fixed. Also tested in With |
@jquense Oh can you add me to the npm users or publish |
@hzoo sorry forgot to npm install first. publishing now |
Um it it looks like it passes to me? https://travis-ci.org/babel/eslint-plugin-babel |
K thanks - we should add a travis badge to the readme |
good call :) and I will add you to the npm users as well, as soon as I get a free moment |
Add support for async functions in arrow-parens
Fixes #8
Depends on a fix in babel-eslint I will make, which is to keep
node.async
Ref babel/babel-eslint#166
https://github.com/babel/babel-eslint/blob/f5d9f37a36978adaa660d0515cd58bff56380181/acorn-to-esprima.js#L242-L245
@leebyron