Uh oh!
There was an error while loading. Please reload this page.
tools: update ESLint to version 2.1.0 - #5214
Conversation
Trott
commented
Feb 13, 2016
I hate to re-open the whole "OH NOES SHOULD WE ENABLE ES6-EVERYTHING OR NOT?!?!" question. But maybe it's easier to come to consensus if it's a "Eh, we've gotta upgrade to ESLint 2.0 sooner or later, and sooner is probably better, so..." To hopefully clarify a bit: ESLint 2 appears to remove options that allow enabling picking and choosing your ES6 features. You can't say "Arrow functions are OK, but NO SPREAD OPERATORS!!!!" Well, you can, but it probably involves writing a custom rule. (The exception is ES6 modules which are turned off unless you take an extra step to turn them on.) This was something that On the upside, ESLint 2 seems to have found some stuff missed by ESLint 1. And it has some features we might want. Interested parties can review new rules available at http://eslint.org/blog/2016/02/eslint-v2.0.0-released#new-rules. |
silverwind
commented
Feb 13, 2016
|
silverwind
commented
Feb 13, 2016
Nevermind, I see you made that change in the seond commit. I'd suggest moving config changes to its own commit. |
cjihrig
commented
Feb 13, 2016
Trott
commented
Feb 13, 2016
@silverwind I put the |
Trott
commented
Feb 13, 2016
silverwind
commented
Feb 14, 2016
Thanks! I'm fine with two commits there. I think we need |
Trott
commented
Feb 14, 2016
@silverwind According to the docs, specifying |
silverwind
commented
Feb 14, 2016
Ah, your're right, the parser option is set by the env: |
silverwind
commented
Feb 14, 2016
LGTM |
targos
commented
Feb 15, 2016
When I updated to v1, I used |
targos
commented
Feb 15, 2016
Can you please make sure that the |
Trott
commented
Feb 15, 2016
@targos wrote:
Ugh, yes, that was a mistake. I'll fix that. |
Trott
commented
Feb 15, 2016
@targos wrote:
Oh, yes, definitely! I did not know about |
jasnell
commented
Feb 15, 2016
LGTM |
Trott
commented
Feb 15, 2016
@targos The reworking of the commits and using |
Trott
commented
Feb 15, 2016
MylesBorins
commented
Feb 15, 2016
Looks like eslint has updated to v2.1.0 already. Might want to bump it in this PR |
Trott
commented
Feb 18, 2016
Rebased against master. Another CI: https://ci.nodejs.org/job/node-test-pull-request/1693/ |
Trott
commented
Feb 18, 2016
Current status:
OK to land this on |
MylesBorins
commented
Feb 18, 2016
via email
Lgtm! |
silverwind
commented
Feb 18, 2016
|
jbergstroem
commented
Feb 18, 2016
LGTM (I knew you were waiting for me! 😣) |
ESLint 2.0 is coming. Some lint rules have been tightened. PR-URL: nodejs#5214
We are about to upgrade from ESlint 1 to ESLint 2. Remove lint rules that will not exist in ESLint 2.
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new features but this change attempts to be minimal in its changes. However, some things could not be avoided reasonably. ESLint 2.1.0 found a few lint issues that ESLing 1.x missed with template strings that did not take advantage of any features of template strings, and `let` declarations where `const` sufficed. Additionally, ESLint 2.1.0 removes some granularity around enabling ES6 features. Some features (e.g., spread operator) that had been turned off in our configuration for ESLint 1.x are now permitted. PR-URL: nodejs#5214
Now that we are using ESLint 2, replace ESLint 1 rules with their ESLint 2 equivalents. PR-URL: nodejs#5214
Trott
commented
Feb 18, 2016
OK, one last rebase against master and a CI run before landing. |
ESLint 2.1.0 is coming. Some lint rules have been tightened. PR-URL: nodejs#5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
We are about to upgrade from ESlint 1 to ESLint 2. Remove lint rules that will not exist in ESLint 2. PR-URL: nodejs#5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new features but this change attempts to be minimal in its changes. However, some things could not be avoided reasonably. ESLint 2.1.0 found a few lint issues that ESLing 1.x missed with template strings that did not take advantage of any features of template strings, and `let` declarations where `const` sufficed. Additionally, ESLint 2.1.0 removes some granularity around enabling ES6 features. Some features (e.g., spread operator) that had been turned off in our configuration for ESLint 1.x are now permitted. PR-URL: nodejs#5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Now that we are using ESLint 2, replace ESLint 1 rules with their ESLint 2 equivalents. PR-URL: nodejs#5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
ESLint 2.1.0 is coming. Some lint rules have been tightened. PR-URL: #5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
We are about to upgrade from ESlint 1 to ESLint 2. Remove lint rules that will not exist in ESLint 2. PR-URL: #5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new features but this change attempts to be minimal in its changes. However, some things could not be avoided reasonably. ESLint 2.1.0 found a few lint issues that ESLing 1.x missed with template strings that did not take advantage of any features of template strings, and `let` declarations where `const` sufficed. Additionally, ESLint 2.1.0 removes some granularity around enabling ES6 features. Some features (e.g., spread operator) that had been turned off in our configuration for ESLint 1.x are now permitted. PR-URL: #5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Now that we are using ESLint 2, replace ESLint 1 rules with their ESLint 2 equivalents. PR-URL: #5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
MylesBorins
commented
Feb 22, 2016
@Trott I think this one may need to be manually backported... would you be up for it? |
Trott
commented
Feb 22, 2016
@thealphanerd Here you go: #5372 |
Update ESLint to 2.1.0. ESLint has a number of potentially-useful new
features but this change attempts to be minimal in its changes.
However, some things could not be avoided reasonably.
ESLint 2.1.0 found a few lint issues that ESLint 1.x missed, particularly
around template strings that did not take advantage of any features of
template strings, and
letdeclarations whereconstsufficed.Additionally, ESLint 2.1.0 removes some granularity around enabling ES6
features. Some features (e.g., spread operator) that had been turned off
in our configuration for ESLint 1.x are now permitted.