mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
lib,src,test: lint codebase according new rules for v18.x
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com> PR-URL: https://github.com/nodejs/node/pull/48697 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Danielle Adams <adamzdanielle@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
1 parent
2262653148
commit
fcf3781d22
5 files changed
+5
-14
No files matched your search
@@ -110,14 +110,6 @@ const {
|
||||
JSTransferable, kDeserialize, kTransfer, kTransferList,
|
||||
} = require('internal/worker/js_transferable');
|
||||
|
||||
const {
|
||||
newReadableStreamFromStreamBase,
|
||||
} = require('internal/webstreams/adapters');
|
||||
|
||||
const {
|
||||
readableStreamCancel,
|
||||
} = require('internal/webstreams/readablestream');
|
||||
|
||||
const getDirectoryEntriesPromise = promisify(getDirents);
|
||||
const validateRmOptionsPromise = promisify(validateRmOptions);
|
||||
|
||||
|
||||
@@ -549,7 +549,6 @@ class ESMLoader {
|
||||
* until it reaches the bottom or short-circuits.
|
||||
* @param {URL['href']} url The URL/path of the module to be loaded
|
||||
* @param {object} context Metadata about the module
|
||||
*
|
||||
* @returns {{ format: ModuleFormat, source: ModuleSource }}
|
||||
*/
|
||||
async load(url, context = {}) {
|
||||
|
||||
@@ -28,6 +28,7 @@ ignore = [
|
||||
"PLC1901",
|
||||
"RUF005",
|
||||
"RUF100",
|
||||
"RUF012",
|
||||
]
|
||||
line-length = 172
|
||||
target-version = "py37"
|
||||
|
||||
@@ -365,9 +365,10 @@ MaybeLocal<Function> BuiltinLoader::LookupAndCompileInternal(
|
||||
return scope.Escape(fun);
|
||||
}
|
||||
|
||||
MaybeLocal<Function> BuiltinLoader::LookupAndCompile(Local<Context> context,
|
||||
const char* id,
|
||||
Environment* optional_env) {
|
||||
MaybeLocal<Function> BuiltinLoader::LookupAndCompile(
|
||||
Local<Context> context,
|
||||
const char* id,
|
||||
Environment* optional_env) {
|
||||
Result result;
|
||||
std::vector<Local<String>> parameters;
|
||||
Isolate* isolate = context->GetIsolate();
|
||||
|
||||
@@ -715,7 +715,6 @@ class WPTRunner {
|
||||
/**
|
||||
* Report the status of each specific test case (there could be multiple
|
||||
* in one test file).
|
||||
*
|
||||
* @param {string} filename
|
||||
* @param {Test} test The Test object returned by WPT harness
|
||||
*/
|
||||
@@ -735,7 +734,6 @@ class WPTRunner {
|
||||
|
||||
/**
|
||||
* Report the status of each WPT test (one per file)
|
||||
*
|
||||
* @param {string} filename
|
||||
* @param {object} harnessStatus - The status object returned by WPT harness.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user