From 60f90681b55e592a4540f159a138760fa7d61433 Mon Sep 17 00:00:00 2001 From: kaushal-kumar-it Date: Thu, 20 Nov 2025 15:41:14 +0530 Subject: [PATCH] chore: fix JavaScript lint errors (issue #8559) --- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../lib/main.js | 43 ++++++++++--------- .../lint/license-header-glob/lib/sync.js | 2 +- .../is-enumerable-property/examples/index.js | 6 +-- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js index b7ffef161168..0e258dfb1e61 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js @@ -37,6 +37,29 @@ var DOPTS = { }; +// FUNCTIONS // + +/** +* Copies AST node location info. +* +* @private +* @param {Object} loc - AST node location +* @returns {Object} copied location info +*/ +function copyLocationInfo( loc ) { + return { + 'start': { + 'line': loc.start.line, + 'column': loc.start.column + }, + 'end': { + 'line': loc.end.line, + 'column': loc.end.column + } + }; +} + + // MAIN // /** @@ -117,26 +140,6 @@ function main( context ) { } } - /** - * Copies AST node location info. - * - * @private - * @param {Object} loc - AST node location - * @returns {Object} copied location info - */ - function copyLocationInfo( loc ) { - return { - 'start': { - 'line': loc.start.line, - 'column': loc.start.column - }, - 'end': { - 'line': loc.end.line, - 'column': loc.end.column - } - }; - } - /** * Reports an error message. * diff --git a/lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/sync.js b/lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/sync.js index 8a1620823e91..5f8ff3dab340 100644 --- a/lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/sync.js +++ b/lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/sync.js @@ -56,7 +56,7 @@ var debug = logger( 'lint:license-header-glob:sync' ); * }; * * var errs = lint( opts ); -* // returns [...] +* // returns [] */ function lint( options ) { var names; diff --git a/lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js b/lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js index 17df4384da7a..9a70748d8c94 100644 --- a/lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js @@ -22,7 +22,7 @@ var isEnumerableProperty = require( './../lib' ); -var bool = isEnumerableProperty( { 'a': 'b' }, 'a' ); +var bool = isEnumerableProperty({ 'a': 'b' }, 'a'); console.log( bool ); // => true @@ -50,10 +50,10 @@ bool = isEnumerableProperty( void 0, 'a' ); console.log( bool ); // => false -bool = isEnumerableProperty( { 'null': false }, null ); +bool = isEnumerableProperty({ 'null': false }, null); console.log( bool ); // => true -bool = isEnumerableProperty( { '[object Object]': false }, {} ); +bool = isEnumerableProperty({ '[object Object]': false }, {}); console.log( bool ); // => true