-
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: add no-duplicate-requires rule #21712
tools: add no-duplicate-requires rule #21712
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.
A test for the custom rule would be good.
38b0037
to
10d3bb2
Compare
doc/api/worker_threads.md
Outdated
@@ -296,7 +297,7 @@ if (isMainThread) { | |||
console.log('received:', value); | |||
}); | |||
} else { | |||
require('worker_threads').once('message', (value) => { | |||
worker_threads.once('message', (value) => { |
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.
This should instead use worker_threads.parentPort
(see #21486). Might be helpful to apply that first.
I wonder if this might be subsequently upstreamable to ESLint core. |
10d3bb2
to
9b92f50
Compare
CI after rebasing: https://ci.nodejs.org/job/node-test-pull-request/15779/ |
Looks like it needs another rebase due to a PR I just landed. Sorry. |
9b92f50
to
a1e019b
Compare
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/15836/ |
Windows fanned is "Resume Build"-resistant so here's a Rebuild instead: https://ci.nodejs.org/job/node-test-commit-windows-fanned/19249/ |
(All green in CI.) |
landed in 8cae9b2 |
PR-URL: #21712 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]>
PR-URL: #21712 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]>
a1e019b
to
e406cca
Compare
/cc @nodejs/linting
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes