packages/contributors-view/src/index.ts
Function fetchContributors
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchContributors = (
page: string
): Promise<{ contributorsOfPage: Contributor[]; nextPage: string }> => {
return new Promise((resolve, reject) => {
const requestOptions: https.RequestOptions = {
Function init
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const init = async () => {
const contributorsList: Contributor[] = []
let page = '1'
// iterate over the pages of GitHub API