FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tools: move eslint and install babel-eslint by targos · Pull Request #17820 · nodejs/node · GitHub

/ node Public

tools: move eslint and install babel-eslint - #17820

Merged
targos merged 4 commits into
nodejs:masterfrom
targos:move-eslint
Jan 11, 2018
Merged

tools: move eslint and install babel-eslint#17820
targos merged 4 commits into
nodejs:masterfrom
targos:move-eslint

Conversation

targos commented Dec 22, 2017

Copy link
Copy Markdown
Member

Commit 1:

tools: move eslint from tools to tools/node_modules

This is required because we need to add the babel-eslint dependency
and it has to be able to resolve "eslint".

Refs: https://github.com/nodejs/node/pull/17755

Commit 2:

tools: add babel-eslint

Create tools/update-babel-eslint.sh script and execute it to do the
first installation of the package.
Update tools/license-builder.sh and execute it to add babel-eslint's
license to our LICENSE file.

Commit 3:

tools: use babel-eslint as ESLint parser
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

tools

/cc @mcollina

nodejs-github-bot added build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. labels Dec 22, 2017

Copy link
Copy Markdown
Contributor

@targos how many files does this create? I'm not going to block, but we should be consistent about decision making on new dependencies

@refack have you had any progress on new ways to vendor deps?

targos commented Dec 22, 2017

Copy link
Copy Markdown
Member Author

This creates 1217 files.

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Member

Commit 2 and 3 could be reverted after AsyncIterators are added to ESlint itself.

Copy link
Copy Markdown
Contributor

how many files does this create? I'm not going to block, but we should be consistent about decision making on new dependencies

Agree with @MylesBorins's comment. Don't want to start a big bikeshed on this PR, but in theory if this lands, so should #17320, which is very similar in nature.

Trott commented Dec 22, 2017

Copy link
Copy Markdown
Member

Why do we want to add babel-eslint as the parser? (Not objecting, of course, but I do want to understand the motivation!)

Copy link
Copy Markdown
Member

To support async-iterators. They are curreny a stage 3 proposal, and it’s not supported into eslint yet.

benjamingr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Rubberstamp lgtm after checking out and seeing things work.

benjamingr commented Dec 24, 2017
edited
Loading

Copy link
Copy Markdown
Member

@kittens

cjihrig commented Dec 24, 2017

Copy link
Copy Markdown
Contributor

According to https://twitter.com/geteslint/status/944829414159810560, there is an issue with babel-eslint and eslint 1.14.0. The issue appears fixed with babel-eslint 8.1.0. Assuming that we'll eventually update to 1.14.0+, it might make sense to update to both of those versions now.

I'm also not big on adding this to the repo, although I won't block this either. Even if we remove them later, they will still be part of the git history.

targos commented Dec 24, 2017

Copy link
Copy Markdown
Member Author

I also don't like having to add this dependency, but do we have an alternative?

This will be necessary for import.meta as well.

BTW 1054 of the new files come from lodash :(

mcollina commented Jan 2, 2018

Copy link
Copy Markdown
Member

I also don't like having to add this dependency, but do we have an alternative?

No, if we want to experiment with the new language feature in node core before they are finalyzed.

Is there anyone objecting landing this?

gibfahn commented Jan 2, 2018

Copy link
Copy Markdown
Member

I also don't like having to add this dependency, but do we have an alternative?

Would git submodules work here?

targos commented Jan 2, 2018

Copy link
Copy Markdown
Member Author

Added a commit to update ESLint to 4.14.0 and updated babel-eslint to the latest version.

CI: https://ci.nodejs.org/job/node-test-pull-request/12375/

Copy link
Copy Markdown
Member

Ping @targos

mcollina commented Jan 8, 2018

Copy link
Copy Markdown
Member

Are we ok to land this? cc @nodejs/tsc
@targos can you get it rebased?

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

targos commented Jan 9, 2018

Copy link
Copy Markdown
Member Author

It looks like the merge of master is making CI unhappy. Let me rebase this properly.

targos commented Jan 9, 2018

Copy link
Copy Markdown
Member Author

Updated

Copy link
Copy Markdown
Member

targos commented Jan 9, 2018

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member

@targos the older CI I started looks good from what I can tell, everything that is unstable is also unstable on other builds unrelated to the PR.

targos commented Jan 9, 2018

Copy link
Copy Markdown
Member Author

@benjamingr Oh, sorry my tab was not up-to-date. I didn't see your message. I stopped my run.

targos reopened this Jan 11, 2018
targos merged commit 4d96c17 into nodejs:master Jan 11, 2018

targos commented Jan 11, 2018
edited
Loading

Copy link
Copy Markdown
Member Author

Landed in 3dc3063, 7a52c51, b043a70 and 4d96c17.

targos deleted the move-eslint branch January 11, 2018 08:53

Copy link
Copy Markdown
Contributor

Does this need to land on v9.x?

evanlucas pushed a commit that referenced this pull request Jan 22, 2018
This is required because we need to add the babel-eslint dependency
and it has to be able to resolve "eslint".
babel-eslint is required to support future ES features such as async
iterators and import.meta.

Refs: #17755
PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
evanlucas pushed a commit that referenced this pull request Jan 22, 2018
PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
evanlucas pushed a commit that referenced this pull request Jan 30, 2018
This is required because we need to add the babel-eslint dependency
and it has to be able to resolve "eslint".
babel-eslint is required to support future ES features such as async
iterators and import.meta.

Refs: #17755
PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
evanlucas pushed a commit that referenced this pull request Jan 30, 2018
PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
evanlucas pushed a commit that referenced this pull request Jan 30, 2018
Create tools/update-babel-eslint.sh script and execute it to do the
first installation of the package.
Update tools/license-builder.sh and execute it to add babel-eslint's
license to our LICENSE file.

PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
evanlucas pushed a commit that referenced this pull request Jan 30, 2018
PR-URL: #17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>

Copy link
Copy Markdown
Contributor

Should we backport this to v6.x or v8.x?

vsemozhetbyt added a commit that referenced this pull request Mar 11, 2018
PR-URL: #19287
Refs: #17820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Mar 17, 2018
PR-URL: #19287
Refs: #17820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 20, 2018
PR-URL: #19287
Refs: #17820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
PR-URL: nodejs#19287
Refs: nodejs#17820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Copy link
Copy Markdown
Member

If this gets backported it should come with #19287

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.


Back | FazBrowse Home | New Git URL