From 4142b626209166e736a0a42b85ebc36c97734367 Mon Sep 17 00:00:00 2001 From: manit2004 Date: Sat, 13 Dec 2025 07:00:51 +0530 Subject: [PATCH 1/2] linting issue fixed in main.js and index.js --- .../jsdoc-no-heading-punctuation/lib/main.js | 40 +++++++++---------- .../@stdlib/console/log/examples/index.js | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/lib/main.js index 2797bb1b2e73..9788874274df 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/lib/main.js @@ -40,6 +40,26 @@ var rule; // 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 + } + }; +} + /** * Rule to prevent Markdown headings in JSDoc descriptions from ending with specified characters. * @@ -115,26 +135,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/console/log/examples/index.js b/lib/node_modules/@stdlib/console/log/examples/index.js index 9d053127b09f..d6e6440eda01 100644 --- a/lib/node_modules/@stdlib/console/log/examples/index.js +++ b/lib/node_modules/@stdlib/console/log/examples/index.js @@ -31,4 +31,4 @@ log( '%.2i', 2.2 ); log( '%f', 3.14 ); log( '%.2f', 4.13 ); log( '%o', { 'foo': 'bar' } ); -log( '%O', [ 1, 2, 3, 4 ] ); +log( '%O', [ 1, 2, 3, 4 ]); From 29d978cecd74bc8d7f2e3b2e1b79c1c44ff8523c Mon Sep 17 00:00:00 2001 From: manit2004 Date: Sat, 13 Dec 2025 07:28:28 +0530 Subject: [PATCH 2/2] further linitng issues fixed in index.js --- lib/node_modules/@stdlib/console/log/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/console/log/examples/index.js b/lib/node_modules/@stdlib/console/log/examples/index.js index d6e6440eda01..b206e15784ef 100644 --- a/lib/node_modules/@stdlib/console/log/examples/index.js +++ b/lib/node_modules/@stdlib/console/log/examples/index.js @@ -30,5 +30,5 @@ log( '%i', 2 ); log( '%.2i', 2.2 ); log( '%f', 3.14 ); log( '%.2f', 4.13 ); -log( '%o', { 'foo': 'bar' } ); +log( '%o', { 'foo': 'bar' }); log( '%O', [ 1, 2, 3, 4 ]);