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 upWeird behavior with await #268
Comments
This comment has been minimized.
This comment has been minimized.
|
This is caused by two rules that make sense alone but conflict in this situation, and other situations like it. I opened as an issue on eslint to get their feedback: eslint/eslint#3878 |
feross
added
question
blocked
labels
Sep 21, 2015
This comment has been minimized.
This comment has been minimized.
|
It does not work either with string interpolation: (async function () {
console.log(`${await 'foo'}`)
})()So your proposal to disable this rule for unary operators does not really make sense.
|
This comment has been minimized.
This comment has been minimized.
|
I found another strange behaviour which I think is the same as this:
As you can see I don't use initial spaces in arrays ( |
This comment has been minimized.
This comment has been minimized.
matjaz
commented
Jan 26, 2016
|
any updates on this? |
This comment has been minimized.
This comment has been minimized.
|
This issue is similar to #387. I'll repeat what I posted there earlier: This issue is caused by the keyword spacing rules that we have enabled conflicting with other spacing rules that we have enabled. Fortunately, the next version of eslint (v2) (which will ship in standard v6) has a new, better rule From the docs for
This is fixed on the |
julien-f commentedSep 21, 2015