Skip to content

Commit 3490cd0

Browse files
lint++
1 parent 0b0f6b8 commit 3490cd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

update_index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const path = require('path');
44

55
const repository = 'h1cr.io/website';
66
const indexFile = 'README.md';
7-
const markerStart = `<!-- toc-start -->\n`;
8-
const markerEnd = `<!-- toc-end -->\n`;
7+
const markerStart = '<!-- toc-start -->\n';
8+
const markerEnd = '<!-- toc-end -->\n';
99

1010
const listImage = async () => {
1111
const images = [];
@@ -19,16 +19,16 @@ const listImage = async () => {
1919
const tags = Object.keys(config);
2020
const packages = Object.values(config).map(x => x.packages).flat().filter(x => !!x);
2121

22-
images.push({ name, tags, packages })
22+
images.push({ name, tags, packages });
2323
}
2424
return images;
2525
};
2626

27-
const quote = (v) => '```' + v + '```';
27+
const quote = (v) => ['```', v, '```'].join('');
2828

2929
const generateToc = (images) => {
3030
const line = [];
31-
line.push('| Image | Tag | Repology latest |')
31+
line.push('| Image | Tag | Repology latest |');
3232
line.push('|------ | --- | --------------- |');
3333
for (const image of images) {
3434
const row = [
@@ -38,7 +38,7 @@ const generateToc = (images) => {
3838
];
3939
line.push(`| ${row.join(' | ')} |`);
4040
};
41-
return line.join("\n") + "\n";
41+
return `${line.join('\n')}\n`;
4242
};
4343

4444
const updateIndex = async (index) => {

0 commit comments

Comments
 (0)