From e69bb123b253dd119c11b37506c2a78292e72145 Mon Sep 17 00:00:00 2001 From: kaushal-kumar-it Date: Sun, 4 Jan 2026 10:43:01 +0530 Subject: [PATCH 1/7] chore: fix JavaScript lint errors (issue #9527) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../deep-has-own-property/examples/index.js | 20 +++++++++---------- .../lapack/base/dlaswp/test/test.dlaswp.js | 1 - .../nonenumerable-property-names/lib/main.js | 1 + 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js b/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js index 4a01f419f1f5..488b97805dcb 100644 --- a/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js +++ b/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js @@ -22,8 +22,12 @@ var deepHasOwnProp = require( './../lib' ); -var obj = { 'a': { 'b': { 'c': 'd' } } }; -var bool = deepHasOwnProp( obj, 'a.b.c' ); +var obj; +var bool; +var has; + +obj = { 'a': { 'b': { 'c': 'd' } } }; +bool = deepHasOwnProp( obj, 'a.b.c' ); console.log( bool ); // => true @@ -44,29 +48,25 @@ bool = deepHasOwnProp( obj, 'a.b.c.d' ); console.log( bool ); // => false -obj = { 'a': [ { 'b': { 'c': 'd' } } ] }; +obj = { 'a': [{ 'b': { 'c': 'd' } }] }; bool = deepHasOwnProp( obj, [ 'a', '0', 'b', 'c', 'd' ] ); console.log( bool ); // => false obj = { 'a': { 'b': { 'c': 'd' } } }; -bool = deepHasOwnProp( obj, 'a/b/c/d/e', { - 'sep': '/' -}); +bool = deepHasOwnProp( obj, 'a/b/c/d/e', { 'sep': '/' }); console.log( bool ); // => false // Create a customized function: -var has = deepHasOwnProp.factory( 'a_b_c', { - 'sep': '_' -}); +has = deepHasOwnProp.factory( 'a_b_c', { 'sep': '_' }); obj = { 'a': { 'b': { 'c': 'd' } } }; bool = has( obj ); console.log( bool ); // => true -obj = { 'a': [ { 'b': { 'c': 'd' } } ] }; +obj = { 'a': [{ 'b': { 'c': 'd' } }] }; bool = has( obj ); console.log( bool ); // => false diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index f2ce06b4c767..94e334dd15de 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -42,7 +42,6 @@ var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_ne var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' ); var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' ); var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); - var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' ); var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' ); var ROW_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/row_major_ipiv_stride_negative.json' ); diff --git a/lib/node_modules/@stdlib/utils/nonenumerable-property-names/lib/main.js b/lib/node_modules/@stdlib/utils/nonenumerable-property-names/lib/main.js index 5c4e90af21a2..5c4ef2e54b26 100644 --- a/lib/node_modules/@stdlib/utils/nonenumerable-property-names/lib/main.js +++ b/lib/node_modules/@stdlib/utils/nonenumerable-property-names/lib/main.js @@ -22,6 +22,7 @@ var getOwnPropertyNames = require( '@stdlib/utils/property-names' ); var isNonEnumerableProperty = require( '@stdlib/assert/is-nonenumerable-property' ); +var Object = require( '@stdlib/object/ctor' ); // MAIN // From 28b37ee1ce6a468e30789b9a68fb0d69dd73920f Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:04:02 -0800 Subject: [PATCH 2/7] style: disable lint rule Signed-off-by: Athan --- lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index 94e334dd15de..112b3c62d4c9 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -42,6 +42,8 @@ var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_ne var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' ); var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' ); var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); + +// eslint-lint-disable-next-line stdlib/no-empty-lines-between-requires var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' ); var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' ); var ROW_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/row_major_ipiv_stride_negative.json' ); From b607e0156f4db68539dbeffecfb6fc689904894f Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:05:04 -0800 Subject: [PATCH 3/7] Discard changes to lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js --- .../deep-has-own-property/examples/index.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js b/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js index 488b97805dcb..4a01f419f1f5 100644 --- a/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js +++ b/lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js @@ -22,12 +22,8 @@ var deepHasOwnProp = require( './../lib' ); -var obj; -var bool; -var has; - -obj = { 'a': { 'b': { 'c': 'd' } } }; -bool = deepHasOwnProp( obj, 'a.b.c' ); +var obj = { 'a': { 'b': { 'c': 'd' } } }; +var bool = deepHasOwnProp( obj, 'a.b.c' ); console.log( bool ); // => true @@ -48,25 +44,29 @@ bool = deepHasOwnProp( obj, 'a.b.c.d' ); console.log( bool ); // => false -obj = { 'a': [{ 'b': { 'c': 'd' } }] }; +obj = { 'a': [ { 'b': { 'c': 'd' } } ] }; bool = deepHasOwnProp( obj, [ 'a', '0', 'b', 'c', 'd' ] ); console.log( bool ); // => false obj = { 'a': { 'b': { 'c': 'd' } } }; -bool = deepHasOwnProp( obj, 'a/b/c/d/e', { 'sep': '/' }); +bool = deepHasOwnProp( obj, 'a/b/c/d/e', { + 'sep': '/' +}); console.log( bool ); // => false // Create a customized function: -has = deepHasOwnProp.factory( 'a_b_c', { 'sep': '_' }); +var has = deepHasOwnProp.factory( 'a_b_c', { + 'sep': '_' +}); obj = { 'a': { 'b': { 'c': 'd' } } }; bool = has( obj ); console.log( bool ); // => true -obj = { 'a': [{ 'b': { 'c': 'd' } }] }; +obj = { 'a': [ { 'b': { 'c': 'd' } } ] }; bool = has( obj ); console.log( bool ); // => false From 0a40f583667c163a0490ac79c498eae37d7d8b49 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:08:26 -0800 Subject: [PATCH 4/7] style: address lint failure Signed-off-by: Athan --- .../@stdlib/lapack/base/dlaswp/test/test.dlaswp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index 112b3c62d4c9..7849b1f21a25 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -41,9 +41,8 @@ var COL_MAJOR_IPIV_STRIDE_POS = require( './fixtures/column_major_ipiv_stride_po var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_negative.json' ); var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' ); var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' ); -var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); +var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); // eslint-lint-disable-line stdlib/no-empty-lines-between-requires -// eslint-lint-disable-next-line stdlib/no-empty-lines-between-requires var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' ); var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' ); var ROW_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/row_major_ipiv_stride_negative.json' ); From c9fc892e6ee97dbe4e079ed168ee314d9b0aaec5 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:10:41 -0800 Subject: [PATCH 5/7] style: resolve lint failure Signed-off-by: Athan --- lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index 7849b1f21a25..bc221cbf58f3 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -41,7 +41,7 @@ var COL_MAJOR_IPIV_STRIDE_POS = require( './fixtures/column_major_ipiv_stride_po var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_negative.json' ); var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' ); var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' ); -var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); // eslint-lint-disable-line stdlib/no-empty-lines-between-requires +var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); // eslint-lint-disable-next-line stdlib/no-empty-lines-between-requires var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' ); var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' ); From 185a990482c7d11c5c24e7e4416465b3583f5ee9 Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:16:54 -0800 Subject: [PATCH 6/7] style: address lint failure Signed-off-by: Athan --- .../@stdlib/lapack/base/dlaswp/test/test.dlaswp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index bc221cbf58f3..546734c02b9e 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -36,12 +36,13 @@ var dlaswp = require( './../lib/dlaswp.js' ); // FIXTURES // +/* eslint-lint-disable stdlib/no-empty-lines-between-requires */ var COL_MAJOR = require( './fixtures/column_major_no_offsets.json' ); var COL_MAJOR_IPIV_STRIDE_POS = require( './fixtures/column_major_ipiv_stride_positive.json' ); var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_negative.json' ); var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' ); var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' ); -var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); // eslint-lint-disable-next-line stdlib/no-empty-lines-between-requires +var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' ); var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' ); var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' ); @@ -50,6 +51,8 @@ var ROW_MAJOR_LDA = require( './fixtures/row_major_lda.json' ); var ROW_MAJOR_REV_PIVOTS = require( './fixtures/row_major_reverse_pivots.json' ); var ROW_MAJOR_K1 = require( './fixtures/row_major_k1.json' ); +/* eslint-lint-enable stdlib/no-empty-lines-between-requires */ + // TESTS // From 2a8dfaf5a3c31a6a46b003cede3f29ceeda095da Mon Sep 17 00:00:00 2001 From: Athan Date: Sun, 4 Jan 2026 18:34:43 -0800 Subject: [PATCH 7/7] style: resolve lint failure Signed-off-by: Athan --- .../@stdlib/lapack/base/dlaswp/test/test.dlaswp.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js index 546734c02b9e..d5f4f2b0a9e3 100644 --- a/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js +++ b/lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js @@ -16,7 +16,7 @@ * limitations under the License. */ -/* eslint-disable max-len */ +/* eslint-disable max-len, stdlib/no-empty-lines-between-requires */ 'use strict'; @@ -36,7 +36,6 @@ var dlaswp = require( './../lib/dlaswp.js' ); // FIXTURES // -/* eslint-lint-disable stdlib/no-empty-lines-between-requires */ var COL_MAJOR = require( './fixtures/column_major_no_offsets.json' ); var COL_MAJOR_IPIV_STRIDE_POS = require( './fixtures/column_major_ipiv_stride_positive.json' ); var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_negative.json' ); @@ -51,8 +50,6 @@ var ROW_MAJOR_LDA = require( './fixtures/row_major_lda.json' ); var ROW_MAJOR_REV_PIVOTS = require( './fixtures/row_major_reverse_pivots.json' ); var ROW_MAJOR_K1 = require( './fixtures/row_major_k1.json' ); -/* eslint-lint-enable stdlib/no-empty-lines-between-requires */ - // TESTS //