From 3956475732bddf0d89810ac23bfec2a082fdc073 Mon Sep 17 00:00:00 2001 From: khmandarrin Date: Sat, 17 Jan 2026 14:18:47 +0900 Subject: [PATCH] chore: fix linting issues --- 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: passed - 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 --- --- .../is-negative-integer-array/benchmark/benchmark.js | 2 +- .../@stdlib/ndarray/fancy/test/test.instance.set_nd.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js index 8ed150018d08..e9f5c9042346 100644 --- a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js @@ -50,7 +50,7 @@ function createBenchmark( fcn, len, primitives ) { } } else { for ( i = 0; i < len; i++ ) { - x.push( new Number( -1.0 ) ); // eslint-disable-line no-new-wrappers + x.push( new Number( -1.0 ) ); } } return benchmark; diff --git a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js index d01ad9860083..db393a32c2e8 100644 --- a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js +++ b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js @@ -75,17 +75,17 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi function badValue( value, dim ) { return function badValue() { - var args = new Array( shape.length+1 ); + var args = []; var i; for ( i = 0; i < shape.length; i++ ) { if ( i === dim ) { - args[ i ] = value; + args.push( value ); } else { - args[ i ] = 0; + args.push( 0 ); } } - args[ i ] = 10.0; + args.push( 10.0 ); arr.set.apply( arr, args ); }; }