fix: eslinting

This commit is contained in:
Rahul Jain
2021-10-31 15:43:03 +05:30
parent 004401a8d1
commit 9ba8ccff66
37 changed files with 2097 additions and 2606 deletions
+7 -12
View File
@@ -9,29 +9,24 @@ const githubStatsStylingQueryString = (options) => {
...(options.cacheSeconds && { cache_seconds: options.cacheSeconds }),
...(options.locale && { locale: options.locale }),
};
const query_string = Object.entries(params)
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
return query_string;
return queryString;
};
const streakStatsStylingQueryString = (options) => {
const params = {
...(options.theme && options.theme !== 'none' && { theme: options.theme }),
};
const query_string = Object.entries(params)
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
return query_string;
return queryString;
};
export const githubStatsLinkGenerator = ({ github, options }) =>
`https://github-readme-stats.vercel.app/api?username=${github}&${githubStatsStylingQueryString(options)}`;
export const githubStatsLinkGenerator = ({ github, options }) => `https://github-readme-stats.vercel.app/api?username=${github}&${githubStatsStylingQueryString(options)}`;
export const topLanguagesLinkGenerator = ({ github, options }) =>
`https://github-readme-stats.vercel.app/api/top-langs?username=${github}&${githubStatsStylingQueryString(
options
)}&layout=compact`;
export const topLanguagesLinkGenerator = ({ github, options }) => `https://github-readme-stats.vercel.app/api/top-langs?username=${github}&${githubStatsStylingQueryString(options)}&layout=compact`;
export const streakStatsLinkGenerator = ({ github, options }) =>
`https://github-readme-streak-stats.herokuapp.com/?user=${github}&${streakStatsStylingQueryString(options)}`;
export const streakStatsLinkGenerator = ({ github, options }) => `https://github-readme-streak-stats.herokuapp.com/?user=${github}&${streakStatsStylingQueryString(options)}`;