From 59d159f6c3d44fc3466b1a35967a17574c54dc08 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 373751c2811e13..e8b60d64a21d6d 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) &&