From 98352ca6297100b1042665dc9fa70bbdc1fe4f9f Mon Sep 17 00:00:00 2001 From: prajjwalbajpai Date: Sun, 21 Sep 2025 20:31:34 +0530 Subject: [PATCH 1/5] chore: fix JavaScript lint errors (issue #8114) --- 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: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../remark/plugins/remark-run-javascript-examples/lib/main.js | 4 +++- .../@stdlib/assert/is-complex-like/examples/index.js | 2 +- .../@stdlib/plot/ctor/lib/view/electron/js/debug.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js index 4c932e491e40..e9ab8b7e6021 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js @@ -28,6 +28,7 @@ var runner = require( './runner.js' ); // MAIN // +/* eslint-disable stdlib/jsdoc-example-require-spacing */ /** * Attaches a plugin to a remark processor in order to run JavaScript examples. * @@ -44,6 +45,7 @@ var runner = require( './runner.js' ); * * @example * var remark = require( 'remark' ); +* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * * var str = [ * '
', @@ -78,7 +80,7 @@ var runner = require( './runner.js' ); * ]; * * remark().use( run ).process( str.join( '\n' ), done ); -* // => 'HELLO WORLD' +* // 'HELLO WORLD!' * * function done( error ) { * if ( error ) { diff --git a/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js b/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js index a3c3dc21632d..2c3b85b2a22b 100644 --- a/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js @@ -30,7 +30,7 @@ console.log( isComplexLike( new Complex64( 2.0, 2.0 ) ) ); console.log( isComplexLike( new Complex128( 3.0, 1.0 ) ) ); // => true -console.log( isComplexLike( { 're': 1.0, 'im': -1.0 } ) ); +console.log( isComplexLike({ 're': 1.0, 'im': -1.0 }) ); // => true console.log( isComplexLike( {} ) ); diff --git a/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js b/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js index d736a98ef255..007540d8be30 100644 --- a/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js +++ b/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js @@ -31,7 +31,7 @@ var debug; localStorage.debug = ENV.DEBUG; // Load `debug`: -debug = require( 'debug/browser' ); // eslint-disable-line stdlib/require-order +debug = require( 'debug' ); // eslint-disable-line stdlib/require-order // EXPORTS // From cc75d097c076bd9343d9e22a0417a176f8e980b9 Mon Sep 17 00:00:00 2001 From: prajjwalbajpai Date: Sun, 21 Sep 2025 21:58:59 +0530 Subject: [PATCH 2/5] revert(debug.js): undo the removal of `/browser` and ignore lint error --- 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: na - task: lint_javascript_tests status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/plot/ctor/lib/view/electron/js/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js b/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js index 007540d8be30..52dbe158b5ff 100644 --- a/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js +++ b/lib/node_modules/@stdlib/plot/ctor/lib/view/electron/js/debug.js @@ -31,7 +31,7 @@ var debug; localStorage.debug = ENV.DEBUG; // Load `debug`: -debug = require( 'debug' ); // eslint-disable-line stdlib/require-order +debug = require( 'debug/browser' ); // eslint-disable-line stdlib/require-order, stdlib/require-file-extensions // EXPORTS // From 8cc23f37e8e7c8c6265bb06a0b18bdc5eb8796e6 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 24 Sep 2025 00:00:13 -0700 Subject: [PATCH 3/5] docs: fix example Signed-off-by: Athan --- .../plugins/remark-run-javascript-examples/lib/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js index e9ab8b7e6021..48074f74a635 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js @@ -28,7 +28,6 @@ var runner = require( './runner.js' ); // MAIN // -/* eslint-disable stdlib/jsdoc-example-require-spacing */ /** * Attaches a plugin to a remark processor in order to run JavaScript examples. * @@ -45,7 +44,6 @@ var runner = require( './runner.js' ); * * @example * var remark = require( 'remark' ); -* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * * var str = [ * '
', @@ -79,8 +77,8 @@ var runner = require( './runner.js' ); * '' * ]; * -* remark().use( run ).process( str.join( '\n' ), done ); -* // 'HELLO WORLD!' +* remark().use( attacher ).process( str.join( '\n' ), done ); +* // => 'HELLO WORLD!' * * function done( error ) { * if ( error ) { From 2125a4e4fc55e068520bb0bbd3165301b521de6e Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 24 Sep 2025 00:01:37 -0700 Subject: [PATCH 4/5] docs: update example Signed-off-by: Athan --- .../@stdlib/assert/is-complex-like/examples/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js b/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js index 2c3b85b2a22b..656fc22060be 100644 --- a/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-complex-like/examples/index.js @@ -16,8 +16,6 @@ * limitations under the License. */ -/* eslint-disable object-curly-newline, object-property-newline */ - 'use strict'; var Complex64 = require( '@stdlib/complex/float32/ctor' ); @@ -30,7 +28,11 @@ console.log( isComplexLike( new Complex64( 2.0, 2.0 ) ) ); console.log( isComplexLike( new Complex128( 3.0, 1.0 ) ) ); // => true -console.log( isComplexLike({ 're': 1.0, 'im': -1.0 }) ); +var obj = { + 're': 1.0, + 'im': -1.0 +}; +console.log( isComplexLike( obj ) ); // => true console.log( isComplexLike( {} ) ); From 5353ffbfd9d39bce2cc87ebff72fad5ce8fe1656 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 24 Sep 2025 00:05:32 -0700 Subject: [PATCH 5/5] chore: resolve lint errors Signed-off-by: Athan --- .../remark/plugins/remark-run-javascript-examples/lib/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js index 48074f74a635..2efca20f52f3 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/main.js @@ -16,6 +16,8 @@ * limitations under the License. */ +/* eslint-disable stdlib/jsdoc-example-require-spacing */ + 'use strict'; // MODULES // @@ -78,7 +80,7 @@ var runner = require( './runner.js' ); * ]; * * remark().use( attacher ).process( str.join( '\n' ), done ); -* // => 'HELLO WORLD!' +* // e.g., => 'HELLO WORLD!' * * function done( error ) { * if ( error ) {