-
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
lib: refactor to reuse validators #38608
Conversation
lib/zlib.js
Outdated
@@ -71,6 +71,7 @@ const { | |||
const { owner_symbol } = require('internal/async_hooks').symbols; | |||
const { | |||
validateFunction, | |||
validateNumber |
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.
nit: trailing comma
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.
OK. But the lint seems to pass. Shall we add this to the lint rule?
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.
OK. But the lint seems passed. Shall we add this to the lint rule?
It would be nice if the lint rule could be added
Why is this happening? 👀 make[2]: Leaving directory '/home/runner/work/node/node/benchmark/napi/type-tag-check/build'
npm ERR! normalizeEncoding is not a function
make[1]: *** [Makefile:689: tools/doc/node_modules] Error 1 |
f55af36
to
92726a9
Compare
8659f35
to
fce76fe
Compare
It seems that we should leave Updated |
Most likely the error comes from |
1648190
to
48d020c
Compare
Yeah, you are right. I misread the file name. Updated |
FYI force pushing makes the review process a bit harder, if you could prefer fixup commits instead that'd be nice. FYI you can update your local branch using |
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
OK, get it. Updated |
The advantage of doing this is that `eslint --fix` can automatically add trailing commas, which avoids wasting time on manual formatting Refs: nodejs#38701 Refs: nodejs#38608 (review)
PR-URL: #38608 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 5d7b6c2 |
PR-URL: #38608 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This appears to depend on #37045 so adding a matching backport label. |
No description provided.