Skip to content
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

Update ESLint, replace custom rule with built-in #8478

Closed
wants to merge 3 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Sep 10, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tools

Description of change

Three commits:

  • Preparatory commit that fixes some instances where the new keyword is used without parentheses. These are some edge cases that were missed by the previous version of ESLint. Basically, the rule got a bug fix, and now it's finding a tiny bit more stuff in our code.
  • The usual huge honkin' change set that upgrades ESLint.
  • A commit that replaces the custom rule we have that forbids assert.deepEqual() with a built-in rule that does the same (and seems to find a few uses that our custom rule did not, so that's a plus).

ESLint 3.5.0 introduces a `no-restricted-properties` rule. Replace our
custom `no-deepEqual` rule with this rule.
@Trott Trott added the tools Issues and PRs related to the tools directory. label Sep 10, 2016
@nodejs-github-bot nodejs-github-bot added assert Issues and PRs related to the assert subsystem. child_process Issues and PRs related to the child_process subsystem. labels Sep 10, 2016
@jasnell
Copy link
Member

jasnell commented Sep 12, 2016

LGTM if CI is green.

@Trott
Copy link
Member Author

Trott commented Sep 12, 2016

Trott added a commit to Trott/io.js that referenced this pull request Sep 13, 2016
Trott added a commit to Trott/io.js that referenced this pull request Sep 13, 2016
PR-URL: nodejs#8478
Reviewed-By: James M Snell <[email protected]>
Trott added a commit to Trott/io.js that referenced this pull request Sep 13, 2016
ESLint 3.5.0 introduces a `no-restricted-properties` rule. Replace our
custom `no-deepEqual` rule with this rule.

PR-URL: nodejs#8478
Reviewed-By: James M Snell <[email protected]>
@Trott
Copy link
Member Author

Trott commented Sep 13, 2016

Landed in a6b1f17, 2da2625, and d4061a6.

@Trott Trott closed this Sep 13, 2016
Fishrock123 pushed a commit that referenced this pull request Sep 14, 2016
PR-URL: #8478
Reviewed-By: James M Snell <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Sep 14, 2016
PR-URL: #8478
Reviewed-By: James M Snell <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Sep 14, 2016
ESLint 3.5.0 introduces a `no-restricted-properties` rule. Replace our
custom `no-deepEqual` rule with this rule.

PR-URL: #8478
Reviewed-By: James M Snell <[email protected]>
@MylesBorins
Copy link
Contributor

@Trott do you want to backport this to lts?

@Trott
Copy link
Member Author

Trott commented Oct 1, 2016

@Trott do you want to backport this to lts?

@thealphanerd I'm inclined to skip it if it doesn't cause you any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem. child_process Issues and PRs related to the child_process subsystem. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants