Skip to content

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

Closed
Trott wants to merge 3 commits into
nodejs:masterfrom
Trott:new-parens
Closed

Update ESLint, replace custom rule with built-in#8478
Trott wants to merge 3 commits into
nodejs:masterfrom
Trott:new-parens

Conversation

@Trott

Copy link
Copy Markdown
Member
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.
@TrottTrott added the tools Issues and PRs related to the tools directory. label Sep 10, 2016
@nodejs-github-botnodejs-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
Copy Markdown
Member

LGTM if CI is green.

@Trott

Copy link
Copy Markdown
MemberAuthor

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 <jasnell@gmail.com>
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 <jasnell@gmail.com>
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 <jasnell@gmail.com>
@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in a6b1f17, 2da2625, and d4061a6.

@TrottTrott 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 <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Sep 14, 2016
PR-URL: #8478
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <jasnell@gmail.com>
@MylesBorins

Copy link
Copy Markdown
Contributor

@Trott do you want to backport this to lts?

@Trott

Trott commented Oct 1, 2016

Copy link
Copy Markdown
MemberAuthor

@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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assertIssues and PRs related to the assert subsystem.child_processIssues and PRs related to the child_process subsystem.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Trott@jasnell@MylesBorins@nodejs-github-bot