From c9b09d124e80766b72a8dc3d3a898bc475fa6026 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 7 Dec 2021 06:35:08 -0800 Subject: [PATCH] doc,lib,tools: align multiline comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These changes are in preparation for enabling a JSDoc lint rule. PR-URL: https://github.com/nodejs/node/pull/41109 Reviewed-By: Antoine du Hamel Reviewed-By: Michaël Zasso Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- doc/api/tls.md | 2 +- doc/api/url.md | 4 ++-- lib/internal/bootstrap/loaders.js | 2 +- tools/eslint-rules/rules-utils.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index dffefa03842a5f..c45c778da76ac5 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1010,7 +1010,7 @@ const keyingMaterial = tlsSocket.exportKeyingMaterial( 128, 'client finished'); -/** +/* Example return value of keyingMaterial: } - */ + */ static map = new SafeMap( ArrayPrototypeMap(moduleIds, (id) => [id, new NativeModule(id)]) ); diff --git a/tools/eslint-rules/rules-utils.js b/tools/eslint-rules/rules-utils.js index 462ab7c2ff3ab8..1cba9218a1d4b2 100644 --- a/tools/eslint-rules/rules-utils.js +++ b/tools/eslint-rules/rules-utils.js @@ -30,9 +30,9 @@ module.exports.isRequired = function(node, modules) { }; /** -* Return true if common module is required -* in AST Node under inspection -*/ + * Return true if common module is required + * in AST Node under inspection + */ const commonModuleRegExp = new RegExp(/^(\.\.\/)*common(\.js)?$/); module.exports.isCommonModule = function(node) { return isRequireCall(node) &&