From 022c4fc271efb900ae64b6c933a198ce14242edb Mon Sep 17 00:00:00 2001 From: Abhist17 Date: Thu, 24 Sep 2026 01:04:24 +0530 Subject: [PATCH] chore: fix JavaScript lint errors (issue #15414) The makie-view-complexity plugin builds its spawn arguments with new Array( 1 ) and then assigns index 0, which trips stdlib/no-new-array. Every sibling plugin in _tools/makie/plugins already builds the same argument list as an array literal plus push -- makie-list-pkgs-names, makie-lint-python and makie-benchmark-lang all read args = []; // Target: args.push( '' ); so switch this plugin to the same shape rather than suppressing the rule. Behaviour is unchanged: a one-element array holding 'view-complexity' is still what reaches spawn(). --- .../_tools/makie/plugins/makie-view-complexity/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/makie/plugins/makie-view-complexity/lib/main.js b/lib/node_modules/@stdlib/_tools/makie/plugins/makie-view-complexity/lib/main.js index 52acc6078cd2..1454362de6a0 100644 --- a/lib/node_modules/@stdlib/_tools/makie/plugins/makie-view-complexity/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/makie/plugins/makie-view-complexity/lib/main.js @@ -89,10 +89,10 @@ function plugin( dir ) { opts = {}; opts.cwd = dir; - args = new Array( 1 ); + args = []; // Target: - args[ 0 ] = 'view-complexity'; + args.push( 'view-complexity' ); proc = spawn( 'make', args, opts ); proc.on( 'error', onError );