From 3da8b75d48ebc9afade12e77e1d906ab127597b0 Mon Sep 17 00:00:00 2001 From: ShreelaxmiHegde Date: Mon, 5 Jan 2026 12:22:02 +0000 Subject: [PATCH 1/3] fix: variable declaration and unused var lint error --- .../_tools/eslint/rules/jsdoc-license-header-year/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js index 428fa5746cd0..751719e7f51e 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js @@ -39,8 +39,8 @@ var rule; * @returns {Object} validators */ function main( context ) { - var source = context.getSourceCode(); var filename = context.getFilename(); + var source = context.getSourceCode(); return { 'Program': validate @@ -106,7 +106,7 @@ function main( context ) { if ( year !== expected ) { report( 'Expected year to be '+expected+' and not '+year, comment, expected ); } - } catch ( err ) { + } catch ( err ) { // eslint-disable-line no-unused-vars // Do nothing if unable to determine the year the file was created (e.g., if the file is not tracked yet by `git`). } } From 0c1f5590924e744ddb616e5f92b5f5d0f20b1e7d Mon Sep 17 00:00:00 2001 From: ShreelaxmiHegde Date: Mon, 5 Jan 2026 12:29:04 +0000 Subject: [PATCH 2/3] fix(jsdoc): mark jsdoc example as illustrative --- .../@stdlib/_tools/bib/citation-reference/lib/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js index 1a699af75341..a444f199e683 100644 --- a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js +++ b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js @@ -60,7 +60,7 @@ var debug = logger( 'to-reference:sync' ); * * @example * var ref = toReference( '@press1992' ); -* // returns '...' +* // e.g., returns '...' */ function toReference( id, options ) { var outFile; From 58f271b7e9570284aeec304de4926f6011fab39b Mon Sep 17 00:00:00 2001 From: ShreelaxmiHegde Date: Mon, 5 Jan 2026 12:30:09 +0000 Subject: [PATCH 3/3] fix: disable eslint rule for new Array declaration --- .../benchmark.fast_elements_array_length_heuristic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js b/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js index 92d3b1183a04..6fd98044bcd5 100644 --- a/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js +++ b/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js @@ -60,7 +60,7 @@ function copy1( arr ) { len = arr.length; if ( len > MAX_FAST_ELEMENTS_HEURISTIC ) { - out = new Array( MAX_FAST_ELEMENTS_HEURISTIC ); + out = new Array( MAX_FAST_ELEMENTS_HEURISTIC ); // eslint-disable-line stdlib/no-new-array for ( i = 0; i < MAX_FAST_ELEMENTS_HEURISTIC; i++ ) { out[ i ] = arr[ i ]; } @@ -68,7 +68,7 @@ function copy1( arr ) { out.push( arr[ i ] ); } } else { - out = new Array( len ); + out = new Array( len ); // eslint-disable-line stdlib/no-new-array for ( i = 0; i < len; i++ ) { out[ i ] = arr[ i ]; } @@ -89,7 +89,7 @@ function copy2( arr ) { var i; len = arr.length; - out = new Array( len ); + out = new Array( len ); // eslint-disable-line stdlib/no-new-array for ( i = 0; i < len; i++ ) { out[ i ] = arr[ i ]; }