-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
.eslintrc: enable es6's spread #5028
Conversation
This came up in nodejs#5020 (comment). This patch basically enables spread option so that eslint will be happy.
LGTM, but do we need this if we aren't using it anywhere yet? |
Hmmm, that is true. But unless we enable, no code can use spread operator, right? |
That's true, but in that case, we might as well just turn everything on. I think in future versions of ESLint we'll be able to just enable an entire language version. |
@cjihrig Fair enough. I included all the relevant es6 things from http://eslint.org/docs/user-guide/configuring.html#specifying-language-options. PTAL. |
Oh wait! There are linter errors now. |
Okay, fixed now. All because of the usage of |
LGTM pending CI. |
LGTM |
1 similar comment
LGTM |
Btw I just tried eslint 2 (which is still in beta) here: https://github.com/targos/node/commits/eslint-v2 |
LGTM |
1 similar comment
LGTM |
This change enables the es6 environment in eslint. Rather than selecting es6 rules one at a time, this turns all of them on with the exception of modules. Ref: nodejs#5028
I was referring to the upcoming |
Closing in favor of #5052 |
This came up in
#5020 (comment). This
patch basically enables spread option so that eslint will be happy.