-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
space-before-function-paren rules for 'asyncArrow' #27
Comments
All the new rules (especially ES6) inherits from airbnb style. I prefer to follow their
I don't mind either way, feel free to PR. I think the reason to have a space for anonymous function is to avoid the possible confusion that |
Speaking of airbnb, I also prefer I previously retain |
Currently I am using |
Agree with adding asyncArrow only for now, others can defer to v5. |
I have faced the issue during reviewing the PR hexojs/hexo#3954
Currently we are using
['error', 'never']
:eslint-config-hexo/eslint.js
Line 106 in ada1570
IMHO we could add a space between
async
&await
and function for better distinguishment (['error', {"anonymous": "never", "named": "never", "asyncArrow": "always"}]
), which will resulted in:The text was updated successfully, but these errors were encountered: