Commit 9edee8a7 by Nicolás Venturo

Fix linter errors

parent c4e5daff
...@@ -13,13 +13,13 @@ const files = proc.execFileSync( ...@@ -13,13 +13,13 @@ const files = proc.execFileSync(
console.log('.API'); console.log('.API');
const links = files.map((file) => { const links = files.map((file) => {
const doc = file.replace(baseDir, ''); const doc = file.replace(baseDir, '');
const title = path.parse(file).name; const title = path.parse(file).name;
return { return {
xref: `* xref:${doc}[${startCase(title)}]`, xref: `* xref:${doc}[${startCase(title)}]`,
title, title,
}; };
}); });
// Case-insensitive sort based on titles (so 'token/ERC20' gets sorted as 'erc20') // Case-insensitive sort based on titles (so 'token/ERC20' gets sorted as 'erc20')
...@@ -28,5 +28,5 @@ const sortedLinks = links.sort(function (a, b) { ...@@ -28,5 +28,5 @@ const sortedLinks = links.sort(function (a, b) {
}); });
for (const link of sortedLinks) { for (const link of sortedLinks) {
console.log(link.xref); console.log(link.xref);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment