From c34f10a15f5f404556b8eef2b4b125ac02746620 Mon Sep 17 00:00:00 2001 From: Partha Das Date: Mon, 16 Mar 2026 11:35:36 +0600 Subject: [PATCH] chore: fix JavaScript lint errors (issue #10980) --- .../repl-txt/rules/line-length/lib/main.js | 32 +++++++++---------- .../base/ssyr/test/test.ndarray.native.js | 1 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/repl-txt/rules/line-length/lib/main.js b/lib/node_modules/@stdlib/_tools/repl-txt/rules/line-length/lib/main.js index d72cea5ffa5c..e5a3a7cb3a0d 100644 --- a/lib/node_modules/@stdlib/_tools/repl-txt/rules/line-length/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/repl-txt/rules/line-length/lib/main.js @@ -51,6 +51,22 @@ function pkg2alias( pkg ) { return null; } +/** +* Replaces a matched alias annotation with the alias corresponding to the package path. +* +* @private +* @param {string} match - alias annotation +* @param {string} pkg - package name +* @returns {string} alias name or original string +*/ +function substituteAlias( match, pkg ) { + var alias = pkg2alias( pkg ); + if ( alias ) { + return alias; + } + return match; +} + // MAIN // @@ -86,22 +102,6 @@ function main( context ) { } } - /** - * Replaces a matched alias annotation with the alias corresponding to the package path. - * - * @private - * @param {string} match - alias annotation - * @param {string} pkg - package name - * @returns {string} alias name or original string - */ - function substituteAlias( match, pkg ) { - var alias = pkg2alias( pkg ); - if ( alias ) { - return alias; - } - return match; - } - return { 'function': lineLength }; diff --git a/lib/node_modules/@stdlib/blas/base/ssyr/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/ssyr/test/test.ndarray.native.js index 6343aca76b09..1432e7db45b8 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyr/test/test.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/ssyr/test/test.ndarray.native.js @@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' ); var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' ); var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' ); var rcap = require( './fixtures/row_major_complex_access_pattern.json' ); - var cu = require( './fixtures/column_major_u.json' ); var cl = require( './fixtures/column_major_l.json' ); var cxp = require( './fixtures/column_major_xp.json' );