From 9c305cb1c5b8b3a06210fa8cc97359a25045dfe0 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Sun, 14 Dec 2025 04:42:44 +0000 Subject: [PATCH] feat: fix the newArray lint error for js file --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/utils/async/reduce/benchmark/benchmark.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js b/lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js index c8858a587802..f2cf7c59c2d8 100644 --- a/lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/utils/async/reduce/benchmark/benchmark.js @@ -41,6 +41,8 @@ bench( pkg, function benchmark( b ) { clbk( null, acc ); } } + + // eslint-disable-next-line stdlib/no-new-array arr = new Array( 100 ); len = arr.length; for ( i = 0; i < len; i++ ) { @@ -86,6 +88,8 @@ bench( pkg+':series=false', function benchmark( b ) { opts = { 'series': false }; + + // eslint-disable-next-line stdlib/no-new-array arr = new Array( 100 ); len = arr.length; for ( i = 0; i < len; i++ ) { @@ -131,6 +135,8 @@ bench( pkg+':limit=3', function benchmark( b ) { opts = { 'limit': 3 }; + + // eslint-disable-next-line stdlib/no-new-array arr = new Array( 100 ); len = arr.length; for ( i = 0; i < len; i++ ) {