From 540fec03cbcd0aab0b67383ce3594e474414347e Mon Sep 17 00:00:00 2001 From: Georgefifth Date: Fri, 28 Aug 2026 22:17:37 +0800 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #14574) --- .../ndarray/slice-dimension-from/test/test.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js b/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js index a1a35f3f7d27..37a86f6c7ca0 100644 --- a/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js @@ -489,11 +489,11 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i var i; values = [ - zeros( [ 1 ], { 'dtype': 'float64' } ), - zeros( [ 1, 1 ], { 'dtype': 'float32' } ), - zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ), - zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ), - zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } ) + zeros( [ 1 ], { 'dtype': 'float64' }), + zeros( [ 1, 1 ], { 'dtype': 'float32' }), + zeros( [ 1, 1, 1 ], { 'dtype': 'int32' }), + zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' }), + zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' }) ]; start = [ @@ -522,11 +522,11 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i var i; values = [ - zeros( [ 1 ], { 'dtype': 'float64' } ), - zeros( [ 1, 1 ], { 'dtype': 'float32' } ), - zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ), - zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ), - zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } ) + zeros( [ 1 ], { 'dtype': 'float64' }), + zeros( [ 1, 1 ], { 'dtype': 'float32' }), + zeros( [ 1, 1, 1 ], { 'dtype': 'int32' }), + zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' }), + zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' }) ]; dim = [ From ddffacfc6aba897031ffcae9989e9ccd208090bb Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 28 Aug 2026 16:20:31 -0700 Subject: [PATCH 2/2] style: disable lint rule Signed-off-by: Athan --- .../ndarray/slice-dimension-from/test/test.js | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js b/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js index 37a86f6c7ca0..ef0513ac6130 100644 --- a/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/slice-dimension-from/test/test.js @@ -488,14 +488,18 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i var start; var i; + /* eslint-disable stdlib/line-closing-bracket-spacing */ + values = [ - zeros( [ 1 ], { 'dtype': 'float64' }), - zeros( [ 1, 1 ], { 'dtype': 'float32' }), - zeros( [ 1, 1, 1 ], { 'dtype': 'int32' }), - zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' }), - zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' }) + zeros( [ 1 ], { 'dtype': 'float64' } ), + zeros( [ 1, 1 ], { 'dtype': 'float32' } ), + zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ), + zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ), + zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } ) ]; + /* eslint-enable stdlib/line-closing-bracket-spacing */ + start = [ 10, 20, @@ -521,14 +525,18 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i var dim; var i; + /* eslint-disable stdlib/line-closing-bracket-spacing */ + values = [ - zeros( [ 1 ], { 'dtype': 'float64' }), - zeros( [ 1, 1 ], { 'dtype': 'float32' }), - zeros( [ 1, 1, 1 ], { 'dtype': 'int32' }), - zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' }), - zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' }) + zeros( [ 1 ], { 'dtype': 'float64' } ), + zeros( [ 1, 1 ], { 'dtype': 'float32' } ), + zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ), + zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ), + zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } ) ]; + /* eslint-enable stdlib/line-closing-bracket-spacing */ + dim = [ 0, 1,