From eec52a1873c5470141e20aa12993d84c1996c1bc 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 These changes are in preparation for enabling a JSDoc lint rule. --- 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..02bc51f830ca5c 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1015,7 +1015,7 @@ const keyingMaterial = tlsSocket.exportKeyingMaterial( -*/ + */ ``` See the OpenSSL [`SSL_export_keying_material`][] documentation for more diff --git a/doc/api/url.md b/doc/api/url.md index 4c23f091271457..14a30fd690afd8 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1246,7 +1246,7 @@ console.log(urlToHttpOptions(myURL)); href: 'https://a:b@xn--g6w251d/?abc#foo', auth: 'a:b' } -*/ + */ ``` ```cjs @@ -1265,7 +1265,7 @@ console.log(urlToHttpOptions(myUrl)); href: 'https://a:b@xn--g6w251d/?abc#foo', auth: 'a:b' } -*/ + */ ``` ## Legacy URL API diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index c392da2468fce6..d6869ef6334496 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -192,7 +192,7 @@ class NativeModule { /** * A map from the module IDs to the module instances. * @type {Map} - */ + */ 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) &&