Skip to content

tools: update eslint to latest #28173

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 4 commits into from

Conversation

BridgeAR
Copy link
Member

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

Sadly, an error occurred when I tried to trigger a build. :(

@nodejs-github-bot nodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Jun 11, 2019
Copy link
Member

@targos targos left a comment

Choose a reason for hiding this comment

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

RSLGTM

Copy link
Member

@trivikr trivikr left a comment

Choose a reason for hiding this comment

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

RSLGTM

@BridgeAR
Copy link
Member Author

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 11, 2019
@Trott
Copy link
Member

Trott commented Jun 12, 2019

Nit 1: Please specify what version you are upgrading to in the commit message. (Preferably what version we're upgrading from as well.)

Nit 2: If I'm not mistaken, unneeded disable comments will result in errors with our configuration. If I'm right about that, then make lint-js will fail when the first commit lands but the second does not. If that's the case (and again, I believe it is), please squash the two commits into a single commit so that there isn't a commit where linting fails.

@BridgeAR BridgeAR force-pushed the update-eslint-to-latest branch from 1739468 to 70e595c Compare June 12, 2019 09:18
@BridgeAR
Copy link
Member Author

@Trott thanks, I forgot that it would complain about the comments if they are not required. I updated the PR and incorporated the suggestions.

Lite-CI https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/3675/

This updates eslint from v6.0.0-alpha.2 to v6.0.0-rc.0.

This also removes eslint-disable comments about `bigint` typeof
checks. Those would otherwise have caused linting errors now that
`bigint` is accepted as valid entry.
@BridgeAR BridgeAR force-pushed the update-eslint-to-latest branch from 70e595c to 0f116e5 Compare June 17, 2019 10:17
@BridgeAR
Copy link
Member Author

Rebased due to conflicts.

Lite-CI https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/3686/

@BridgeAR
Copy link
Member Author

@ZYSzys
Copy link
Member

ZYSzys commented Jun 22, 2019

@BridgeAR eslint@6.0.0 was just released. How about updating to v6.0.0 directly ?

And update this line to eslint@latest ?

npm install --global-style --no-bin-links --production --no-package-lock eslint@next

Refs: https://github.com/eslint/eslint/releases/tag/v6.0.0

@BridgeAR
Copy link
Member Author

Updated to the latest release.

Copy link
Member

@ZYSzys ZYSzys left a comment

Choose a reason for hiding this comment

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

Still RSLGTM.

@cjihrig
Copy link
Contributor

cjihrig commented Jun 25, 2019

ESLint 6.0.1 was released. Please skip 6.0.0 before landing this.

@BridgeAR
Copy link
Member Author

BridgeAR added a commit to BridgeAR/node that referenced this pull request Jun 27, 2019
This updates eslint from v6.0.0-alpha.2 to v6.0.1

This also removes eslint-disable comments about `bigint` typeof
checks. Those would otherwise have caused linting errors now that
`bigint` is accepted as valid entry.

PR-URL: nodejs#28173
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
@BridgeAR
Copy link
Member Author

Landed in ed8fc7e

@BridgeAR BridgeAR closed this Jun 27, 2019
targos pushed a commit that referenced this pull request Jul 2, 2019
This updates eslint from v6.0.0-alpha.2 to v6.0.1

This also removes eslint-disable comments about `bigint` typeof
checks. Those would otherwise have caused linting errors now that
`bigint` is accepted as valid entry.

PR-URL: #28173
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
targos pushed a commit that referenced this pull request Jul 2, 2019
This updates eslint from v6.0.0-alpha.2 to v6.0.1

This also removes eslint-disable comments about `bigint` typeof
checks. Those would otherwise have caused linting errors now that
`bigint` is accepted as valid entry.

PR-URL: #28173
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
@targos targos mentioned this pull request Jul 2, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants