From 9edee8a7a89b846c6c0000ce1ca2734a4c26226a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 3 Apr 2020 17:15:40 -0300 Subject: [PATCH] Fix linter errors --- scripts/gen-nav.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/gen-nav.js b/scripts/gen-nav.js index c796dea6c..14d5ce99a 100644 --- a/scripts/gen-nav.js +++ b/scripts/gen-nav.js @@ -13,13 +13,13 @@ const files = proc.execFileSync( console.log('.API'); const links = files.map((file) => { - const doc = file.replace(baseDir, ''); - const title = path.parse(file).name; + const doc = file.replace(baseDir, ''); + const title = path.parse(file).name; - return { - xref: `* xref:${doc}[${startCase(title)}]`, - title, - }; + return { + xref: `* xref:${doc}[${startCase(title)}]`, + title, + }; }); // Case-insensitive sort based on titles (so 'token/ERC20' gets sorted as 'erc20') @@ -28,5 +28,5 @@ const sortedLinks = links.sort(function (a, b) { }); for (const link of sortedLinks) { - console.log(link.xref); + console.log(link.xref); }