diff options
author | Rich Trott <rtrott@gmail.com> | 2016-02-09 09:37:13 -0800 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2016-02-09 19:08:47 +0100 |
commit | 169334961646924f489172bcde0fdcb1c01846db (patch) | |
tree | ddcfd8af64f4278acfaf1e7b6982f12762319321 | |
parent | a84bf2ce68a1ffd5c09c9ff297a56814cd79923f (diff) | |
download | node-new-169334961646924f489172bcde0fdcb1c01846db.tar.gz |
tools,doc: fix linting errors
Refs: https://github.com/nodejs/node/pull/4741#issuecomment-181973382
PR-URL: https://github.com/nodejs/node/pull/5161
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
-rw-r--r-- | tools/doc/type-parser.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js index b5c042d75d..4d83e872ec 100644 --- a/tools/doc/type-parser.js +++ b/tools/doc/type-parser.js @@ -6,7 +6,7 @@ const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' + 'JavaScript/Data_structures'; const jsPrimitives = [ 'Number', 'String', 'Boolean', 'Null', 'Symbol' -] +]; const jsGlobalTypes = [ 'Error', 'Object', 'Function', 'Array', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array', @@ -28,12 +28,12 @@ const typeMap = { }; module.exports = { - toLink: function (typeInput) { - let typeLinks = []; + toLink: function(typeInput) { + const typeLinks = []; typeInput = typeInput.replace('{', '').replace('}', ''); - let typeTexts = typeInput.split('|'); + const typeTexts = typeInput.split('|'); - typeTexts.forEach(function (typeText) { + typeTexts.forEach(function(typeText) { typeText = typeText.trim(); if (typeText) { let typeUrl = null; @@ -56,4 +56,4 @@ module.exports = { return typeLinks.length ? typeLinks.join(' | ') : typeInput; } -} +}; |