Fix linter errors

This commit is contained in:
Nicolás Venturo
2020-04-03 17:15:40 -03:00
parent c4e5daff86
commit 9edee8a7a8

View File

@ -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);
}