From d2abc6a34bfbf30f9ac994936824f6b9ea8930d0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 17 May 2026 14:20:48 +0000 Subject: [PATCH 1/2] fix(_tools/lint/namespace-aliases): replace `new Array()` with `[]` The `lint_random_files` scheduled job (`Lint JavaScript files`) failed at 2026-05-17 00:32 UTC when `resolve.js` was selected for linting. Root cause: `out = new Array( len )` at line 53 violates the `stdlib/no-new-array` ESLint rule. All indices 0..len-1 are set explicitly in the synchronous for-loop before any async callback runs, so replacing the constructor call with an empty array literal `[]` is functionally equivalent. This commit makes that substitution. Ref: https://github.com/stdlib-js/stdlib/actions/runs/25976689223 --- .../@stdlib/_tools/lint/namespace-aliases/lib/resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js index bac946323d0d..44e904289e84 100644 --- a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js +++ b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js @@ -50,7 +50,7 @@ function getPkgs( pkgs, dir, clbk ) { len = pkgs.length; debug( 'Resolving %d packages...', len ); - out = new Array( len ); + out = []; count = 0; for ( i = 0; i < len; i++ ) { debug( 'Resolving package: %s (%d of %d).', pkgs[ i ], i+1, len ); From f81c8041262b2225554f3aeeb7b1c5acd4ccafe6 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 17 May 2026 14:18:43 -0700 Subject: [PATCH 2/2] fix: use explicit push Signed-off-by: Athan --- .../@stdlib/_tools/lint/namespace-aliases/lib/resolve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js index 44e904289e84..dd50824f740e 100644 --- a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js +++ b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/lib/resolve.js @@ -57,10 +57,10 @@ function getPkgs( pkgs, dir, clbk ) { opts = { 'basedir': dir }; - out[ i ] = { + out.push({ 'id': pkgs[ i ], 'main': null - }; + }); resolve( pkgs[ i ], opts, createClbk( i ) ); } /**