From 04af95a4e6d986e3b1cfa19d0a970329cc353abf Mon Sep 17 00:00:00 2001 From: JE4NVRG Date: Sun, 29 Mar 2026 22:42:20 -0300 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #11209) - regexp_require.js: add empty line between require statement and code in JSDoc examples (stdlib/jsdoc-example-require-spacing) - async/until/main.js: replace new Array() with array literal and push (stdlib/no-new-array) - strided/ops/sub/scripts/index.js: remove unused eslint-disable directive for node/shebang - constants/float64/pinf/lib/index.js: remove unused eslint-disable directive for stdlib/require-globals Resolves #11209 --- lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js | 2 +- .../@stdlib/math/strided/ops/sub/scripts/index.js | 2 -- lib/node_modules/@stdlib/repl/lib/regexp_require.js | 2 ++ lib/node_modules/@stdlib/utils/async/until/lib/main.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js index 5759d844b535..8c15c27cee6a 100644 --- a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js @@ -48,7 +48,7 @@ * @default Number.POSITIVE_INFINITY * @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985} */ -var FLOAT64_PINF = Number.POSITIVE_INFINITY; // eslint-disable-line stdlib/require-globals +var FLOAT64_PINF = Number.POSITIVE_INFINITY; // EXPORTS // diff --git a/lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js b/lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js index 3ce3a26da112..db489ed39731 100644 --- a/lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js +++ b/lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js @@ -18,8 +18,6 @@ * limitations under the License. */ -/* eslint-disable node/shebang */ - 'use strict'; // MODULES // diff --git a/lib/node_modules/@stdlib/repl/lib/regexp_require.js b/lib/node_modules/@stdlib/repl/lib/regexp_require.js index bcca0b771f2e..5b7893bcaad3 100644 --- a/lib/node_modules/@stdlib/repl/lib/regexp_require.js +++ b/lib/node_modules/@stdlib/repl/lib/regexp_require.js @@ -34,12 +34,14 @@ * var RE_REQUIRE = createRegExp(); * * var bool = RE_REQUIRE.test( 'var foo = require( "foo" );' ); +* * // returns true * * @example * var RE_REQUIRE = createRegExp(); * * var bool = RE_REQUIRE.test( 'var foo = require( "./foo.js" );' ); +* * // returns true */ function createRegExp() { diff --git a/lib/node_modules/@stdlib/utils/async/until/lib/main.js b/lib/node_modules/@stdlib/utils/async/until/lib/main.js index bc849497ab91..a5253d73c6ed 100644 --- a/lib/node_modules/@stdlib/utils/async/until/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/until/lib/main.js @@ -112,9 +112,9 @@ function untilAsync( predicate, fcn, done, thisArg ) { // Cache the most recent results... if ( arguments.length > 1 ) { - args = new Array( arguments.length-1 ); + args = []; for ( i = 1; i < arguments.length; i++ ) { - args[ i-1 ] = arguments[ i ]; + args.push( arguments[ i ] ); } } // Run the test condition: From c7b98f99af41c7d2e80ce97750e42277866a03bc Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 9 Apr 2026 23:50:29 -0700 Subject: [PATCH 2/2] style: disable lint rule Signed-off-by: Athan --- lib/node_modules/@stdlib/repl/lib/regexp_require.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/repl/lib/regexp_require.js b/lib/node_modules/@stdlib/repl/lib/regexp_require.js index 5b7893bcaad3..0ec0e3c51b0c 100644 --- a/lib/node_modules/@stdlib/repl/lib/regexp_require.js +++ b/lib/node_modules/@stdlib/repl/lib/regexp_require.js @@ -16,6 +16,8 @@ * limitations under the License. */ +/* eslint-disable stdlib/jsdoc-example-require-spacing */ + 'use strict'; // MAIN // @@ -34,14 +36,12 @@ * var RE_REQUIRE = createRegExp(); * * var bool = RE_REQUIRE.test( 'var foo = require( "foo" );' ); -* * // returns true * * @example * var RE_REQUIRE = createRegExp(); * * var bool = RE_REQUIRE.test( 'var foo = require( "./foo.js" );' ); -* * // returns true */ function createRegExp() {