-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools,lib: refactor prefer-primordials rule #36018
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you separate this pull request for each purpose?
- Refactoring of the rule
- Add
Safe
prefix on the Map and Set, etc. - Replace
prototype
property with primordials.
5ef69fb
to
601d050
Compare
Not sure if this needs to be rebased or closed (since it overlaps with PRs that landed?) but one or the other. |
601d050
to
599119c
Compare
Blocked on nodejs/build#2504. |
nodejs/build#2504 has now been fixed by nodejs/build#2514. |
@Leko I think this is ready to land, would you kindly have another look at this PR, I believe I've addressed all your objections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aduh95 Thank you for a lot of works to support optional chaining! LGTM
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: nodejs#36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
599119c
to
7fd6c20
Compare
Landed in 7fd6c20 |
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Refactor the ESLint rule source code to improve readability.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes