Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upasync (t) => { } - Expected parentheses around arrow function argument. #416
Comments
This comment has been minimized.
This comment has been minimized.
|
There's already another discussion about this here: #414 |
feross
closed this
Feb 10, 2016
This comment has been minimized.
This comment has been minimized.
|
Oh, actually I don't get that issue. I only get errors on async arrow functions. (t) => {} works
async (t) => {} errorsSent from my iPhone
|
This comment has been minimized.
This comment has been minimized.
|
Oh didn't realize this was only for |
feross
reopened this
Feb 10, 2016
This comment has been minimized.
This comment has been minimized.
dhax
commented
Feb 11, 2016
|
having the same issue with async arrow function with basic setup:
|
This comment has been minimized.
This comment has been minimized.
|
Having the same issue. This prevents us from upgrading to standard v6. |
This comment has been minimized.
This comment has been minimized.
|
I made an issue in the babel-eslint repo as well: babel/babel-eslint#252 |
This comment has been minimized.
This comment has been minimized.
benjyhirsch
commented
Feb 13, 2016
|
This is a known issue with some of the rules in babel-eslint, hence https://github.com/babel/eslint-plugin-babel From the description:
One of the rules is:
|
This comment has been minimized.
This comment has been minimized.
|
This issue keeps us from upgrading, we're using async arrow functions a lot. Even if we add Hmm, maybe making a |
This comment has been minimized.
This comment has been minimized.
|
@cesarandreu That's certainly one option, but I wonder if we shouldn't just disable/change this rule given the opposition to it in the other issue #414 (comment) |
This comment has been minimized.
This comment has been minimized.
|
That'd also work :D. I've kinda grown to like it, just because it's consistent, but since it breaks with async arrow functions it's annoying :(. |
This comment has been minimized.
This comment has been minimized.
namuol
commented
Apr 9, 2016
|
TL;DR -- Here's the workaround that solves the problem:
Then, in your eslintrc:
|
This comment has been minimized.
This comment has been minimized.
|
This should be fixed now in |
azhang commentedFeb 10, 2016
I'm getting
Expected parentheses around arrow function argument.errors with my async arrow functions. Perhaps this is more of a eslint issue than a standardjs issue?