Skip to content

tools: enable no-proto rule for linter#5140

Closed
JacksonTian wants to merge 1 commit intonodejs:masterfrom
JacksonTian:no-proto
Closed

tools: enable no-proto rule for linter#5140
JacksonTian wants to merge 1 commit intonodejs:masterfrom
JacksonTian:no-proto

Conversation

@JacksonTian
Copy link
Copy Markdown
Contributor

Enable no-proto in .eslintrc.

Use Object.setPrototypeOf() and Object.getPrototypeOf()
instead of.

Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.
@evanlucas
Copy link
Copy Markdown
Contributor

@mscdex mscdex added the tools Issues and PRs related to the tools directory. label Feb 8, 2016
@Trott
Copy link
Copy Markdown
Member

Trott commented Feb 9, 2016

I'm +0 on this and happy to defer to others on whether it's worth doing or not. But since I fully expect someone might ask, "Why?", here's the answer from the ESLint doc for no-proto:

__proto__ property has been deprecated as of ECMAScript 3.1 and shouldn't be used in the code. Use getPrototypeOf method instead.

@thefourtheye
Copy link
Copy Markdown
Contributor

LGTM if CI is happy

@silverwind
Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@jasnell
Copy link
Copy Markdown
Member

jasnell commented Feb 10, 2016

LGTM

jasnell pushed a commit that referenced this pull request Feb 10, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Copy Markdown
Member

jasnell commented Feb 10, 2016

Landed in cc195bf

@jasnell jasnell closed this Feb 10, 2016
rvagg pushed a commit that referenced this pull request Feb 15, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Feb 18, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
@JacksonTian JacksonTian deleted the no-proto branch February 18, 2016 02:14
MylesBorins pushed a commit that referenced this pull request Feb 18, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Feb 18, 2016
MylesBorins pushed a commit that referenced this pull request Mar 2, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants