From 20f0868a1788d8482f48d95c9751048c73955eb6 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Tue, 8 Aug 2023 09:32:39 +0300 Subject: [PATCH] Refactor: Repo card: Use typedef tags to resolve eslint errors (#3053) --- src/cards/repo-card.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cards/repo-card.js b/src/cards/repo-card.js index c4b890f..3706c96 100644 --- a/src/cards/repo-card.js +++ b/src/cards/repo-card.js @@ -79,11 +79,16 @@ const iconWithLabel = (icon, label, testid) => { return flexLayout({ items: [iconSvg, text], gap: 20 }).join(""); }; +/** + * @typedef {import("../fetchers/types").RepositoryData} RepositoryData Repository data. + * @typedef {import("./types").RepoCardOptions} RepoCardOptions Repo card options. + */ + /** * Renders repository card details. * - * @param {import('../fetchers/types').RepositoryData} repo Repository data. - * @param {Partial} options Card options. + * @param {RepositoryData} repo Repository data. + * @param {Partial} options Card options. * @returns {string} Repository card SVG object. */ const renderRepoCard = (repo, options = {}) => {