From fad957d2cf28bca7cc13f40338832af7b718f9b1 Mon Sep 17 00:00:00 2001 From: jiwoo061 Date: Mon, 19 Jan 2026 20:27:01 +0900 Subject: [PATCH] chore: fix linting issues --- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../remark-stdlib-urls-www/lib/transformer.js | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-stdlib-urls-www/lib/transformer.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-stdlib-urls-www/lib/transformer.js index 0dfaa9df87bf..a4acb0565f87 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-stdlib-urls-www/lib/transformer.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-stdlib-urls-www/lib/transformer.js @@ -43,6 +43,24 @@ var RE_STDLIB = /^@stdlib\//; function factory( opts ) { return transformer; + /** + * Callback invoked upon finding a matching node. + * + * @private + * @param {Node} node - reference node + */ + function visitor( node ) { + debug( 'Found a definition: %s', node.identifier ); + if ( RE_STDLIB.test( node.identifier ) ) { + debug( 'Found a package identifier.' ); + + debug( 'Current URL: %s', node.url ); + node.url = opts.base + node.identifier; + + debug( 'Resolved URL: %s', node.url ); + } + } + /** * Transforms a Markdown abstract syntax tree (AST). * @@ -53,24 +71,6 @@ function factory( opts ) { function transformer( tree ) { debug( 'Processing virtual file...' ); visit( tree, 'definition', visitor ); - - /** - * Callback invoked upon finding a matching node. - * - * @private - * @param {Node} node - reference node - */ - function visitor( node ) { - debug( 'Found a definition: %s', node.identifier ); - if ( RE_STDLIB.test( node.identifier ) ) { - debug( 'Found a package identifier.' ); - - debug( 'Current URL: %s', node.url ); - node.url = opts.base + node.identifier; - - debug( 'Resolved URL: %s', node.url ); - } - } } }