diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-20 15:14:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 15:14:37 -0400 |
commit | a7c002ae634b20a2f84c90417327a88c9ac2df99 (patch) | |
tree | c21a179412ee70f59eb0c38acfbe5d4998870224 /cli/bench | |
parent | 2f47b4d1fd8e37a5e45bc1b8f3623708e0f95e2e (diff) |
chore: enable no-console dlint rule (#25113)
Diffstat (limited to 'cli/bench')
-rw-r--r-- | cli/bench/console.js | 3 | ||||
-rw-r--r-- | cli/bench/encode_into.js | 3 | ||||
-rw-r--r-- | cli/bench/getrandom.js | 3 | ||||
-rw-r--r-- | cli/bench/http/deno_tcp.ts | 1 | ||||
-rw-r--r-- | cli/bench/op_now.js | 3 | ||||
-rw-r--r-- | cli/bench/secure_curves.js | 3 | ||||
-rw-r--r-- | cli/bench/stdio/stdio.js | 2 | ||||
-rw-r--r-- | cli/bench/tty.js | 3 | ||||
-rw-r--r-- | cli/bench/url_parse.js | 3 | ||||
-rw-r--r-- | cli/bench/webstorage.js | 2 | ||||
-rw-r--r-- | cli/bench/write_file.js | 3 |
11 files changed, 29 insertions, 0 deletions
diff --git a/cli/bench/console.js b/cli/bench/console.js index 947061a3b..1d336fbbd 100644 --- a/cli/bench/console.js +++ b/cli/bench/console.js @@ -1,3 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + const count = 100000; for (let i = 0; i < count; i++) console.log("Hello World"); diff --git a/cli/bench/encode_into.js b/cli/bench/encode_into.js index 4881f8752..11f5a56d9 100644 --- a/cli/bench/encode_into.js +++ b/cli/bench/encode_into.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + let [total, count] = typeof Deno !== "undefined" ? Deno.args : [process.argv[2], process.argv[3]]; diff --git a/cli/bench/getrandom.js b/cli/bench/getrandom.js index 87149afeb..3c3ec4aa1 100644 --- a/cli/bench/getrandom.js +++ b/cli/bench/getrandom.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + let [total, count] = typeof Deno !== "undefined" ? Deno.args : [process.argv[2], process.argv[3]]; diff --git a/cli/bench/http/deno_tcp.ts b/cli/bench/http/deno_tcp.ts index bac9ac497..b79591073 100644 --- a/cli/bench/http/deno_tcp.ts +++ b/cli/bench/http/deno_tcp.ts @@ -3,6 +3,7 @@ // TODO(bartlomieju): Replace this with a real HTTP server once // https://github.com/denoland/deno/issues/726 is completed. // Note: this is a keep-alive server. +// deno-lint-ignore-file no-console const addr = Deno.args[0] || "127.0.0.1:4500"; const [hostname, port] = addr.split(":"); const listener = Deno.listen({ hostname, port: Number(port) }); diff --git a/cli/bench/op_now.js b/cli/bench/op_now.js index ba6be9c3a..bcc3ea3c5 100644 --- a/cli/bench/op_now.js +++ b/cli/bench/op_now.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + const queueMicrotask = globalThis.queueMicrotask || process.nextTick; let [total, count] = typeof Deno !== "undefined" ? Deno.args diff --git a/cli/bench/secure_curves.js b/cli/bench/secure_curves.js index d1e909c4c..02d248b23 100644 --- a/cli/bench/secure_curves.js +++ b/cli/bench/secure_curves.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + let [total, count] = typeof Deno !== "undefined" ? Deno.args : [process.argv[2], process.argv[3]]; diff --git a/cli/bench/stdio/stdio.js b/cli/bench/stdio/stdio.js index 7f0e16b4a..81bea835a 100644 --- a/cli/bench/stdio/stdio.js +++ b/cli/bench/stdio/stdio.js @@ -2,6 +2,8 @@ // // From https://github.com/just-js/benchmarks/tree/main/01-stdio +// deno-lint-ignore-file no-console + const blocksize = parseInt(Deno.args[0] || 65536); const buf = new Uint8Array(blocksize); let size = 0; diff --git a/cli/bench/tty.js b/cli/bench/tty.js index 62319c71f..248a90113 100644 --- a/cli/bench/tty.js +++ b/cli/bench/tty.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + const queueMicrotask = globalThis.queueMicrotask || process.nextTick; let [total, count] = typeof Deno !== "undefined" ? Deno.args diff --git a/cli/bench/url_parse.js b/cli/bench/url_parse.js index c9b62107f..367cf73f4 100644 --- a/cli/bench/url_parse.js +++ b/cli/bench/url_parse.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + const queueMicrotask = globalThis.queueMicrotask || process.nextTick; let [total, count] = typeof Deno !== "undefined" ? Deno.args diff --git a/cli/bench/webstorage.js b/cli/bench/webstorage.js index b200ef253..d19f024c6 100644 --- a/cli/bench/webstorage.js +++ b/cli/bench/webstorage.js @@ -1,5 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// deno-lint-ignore-file no-console + // Note: when benchmarking across different Deno version, make sure to clear // the DENO_DIR cache. let [total, count] = typeof Deno !== "undefined" ? Deno.args : []; diff --git a/cli/bench/write_file.js b/cli/bench/write_file.js index ab1e2280e..104a23a8d 100644 --- a/cli/bench/write_file.js +++ b/cli/bench/write_file.js @@ -1,4 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + const queueMicrotask = globalThis.queueMicrotask || process.nextTick; let [total, count] = typeof Deno !== "undefined" ? Deno.args |