refactor: enable curly eslint rule (#3137)

This commit is contained in:
Alexandr Garbuzov
2023-09-12 10:06:01 +02:00
committed by GitHub
parent b611018476
commit c42798b39e
14 changed files with 71 additions and 24 deletions
+4 -1
View File
@@ -60,9 +60,12 @@ const generateLinks = (fn) => {
};
const createTableItem = ({ link, label, isRepoCard }) => {
if (!link || !label) return "";
if (!link || !label) {
return "";
}
return `\`${label}\` ![${link}][${link}${isRepoCard ? "_repo" : ""}]`;
};
const generateTable = ({ isRepoCard }) => {
const rows = [];
const themesFiltered = Object.keys(themes).filter(