mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user