Skip to content

Commit

Permalink
running prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Freydal committed Nov 5, 2019
1 parent d4d32c5 commit 8b6e685
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/kosu-docs/docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ const sidebar = [

const rootDir = `${__dirname}/..`;

const orderedBasePackages = ["kosu-system-contracts", "go-kosu", "kosu-wrapper-enhancements", "kosu-node-client", "kosu-migrations", "kosu-genesis-cli"];
const orderedBasePackages = [
"kosu-system-contracts",
"go-kosu",
"kosu-wrapper-enhancements",
"kosu-node-client",
"kosu-migrations",
"kosu-genesis-cli",
];
const directoryPackages = fs.readdirSync(rootDir);
const packages = new Set([...orderedBasePackages, ...directoryPackages]);

Expand All @@ -30,7 +37,8 @@ for (const pckage of packages) {
.toLowerCase()
.split("-")
.map(e => e[0].toUpperCase() + e.slice(1))
.join(" ").replace(/(cli\b)/gi, x => x.toUpperCase());
.join(" ")
.replace(/(cli\b)/gi, x => x.toUpperCase());

const base = {
title,
Expand Down

0 comments on commit 8b6e685

Please sign in to comment.