Skip to content

Commit bcc26f7

Browse files
Trottrvagg
authored andcommitted
tools,doc: fix linting errors
Refs: #4741 (comment) PR-URL: #5161 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent 86f8477 commit bcc26f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/doc/type-parser.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' +
66
'JavaScript/Data_structures';
77
const jsPrimitives = [
88
'Number', 'String', 'Boolean', 'Null', 'Symbol'
9-
]
9+
];
1010
const jsGlobalTypes = [
1111
'Error', 'Object', 'Function', 'Array', 'Uint8Array',
1212
'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array',
@@ -28,12 +28,12 @@ const typeMap = {
2828
};
2929

3030
module.exports = {
31-
toLink: function (typeInput) {
32-
let typeLinks = [];
31+
toLink: function(typeInput) {
32+
const typeLinks = [];
3333
typeInput = typeInput.replace('{', '').replace('}', '');
34-
let typeTexts = typeInput.split('|');
34+
const typeTexts = typeInput.split('|');
3535

36-
typeTexts.forEach(function (typeText) {
36+
typeTexts.forEach(function(typeText) {
3737
typeText = typeText.trim();
3838
if (typeText) {
3939
let typeUrl = null;
@@ -56,4 +56,4 @@ module.exports = {
5656

5757
return typeLinks.length ? typeLinks.join(' | ') : typeInput;
5858
}
59-
}
59+
};

0 commit comments

Comments
 (0)