conform to standard js quote rules (#8395)

* restore standardjs quote behaviour

* conform to standard js quote rules
This commit is contained in:
chris48s
2022-09-12 17:22:12 +01:00
committed by GitHub
parent f6b09e9ca3
commit ae018cdddc
62 changed files with 129 additions and 121 deletions

View File

@@ -40,7 +40,7 @@ class GithubAuthV4Service extends BaseGraphqlService {
}
async _requestGraphql(attrs) {
const url = `/graphql`
const url = '/graphql'
/*
The Github v4 API requires us to query the rateLimit object to return

View File

@@ -160,7 +160,7 @@ export default class GithubHacktoberfestCombinedStatus extends GithubAuthV4Servi
`repo:${user}/${repo}`,
'is:pr',
`created:${year}-10-01..${year}-10-31`,
`-label:invalid`,
'-label:invalid',
]
.filter(Boolean)
.join(' ')

View File

@@ -35,7 +35,7 @@ export default class GithubLabels extends GithubAuthV3Service {
return this._requestJson({
url: `/repos/${user}/${repo}/labels/${name}`,
schema,
errorMessages: errorMessagesFor(`repo or label not found`),
errorMessages: errorMessagesFor('repo or label not found'),
})
}

View File

@@ -85,7 +85,7 @@ export default class GithubMilestoneDetail extends GithubAuthV3Service {
return this._requestJson({
url: `/repos/${user}/${repo}/milestones/${number}`,
schema,
errorMessages: errorMessagesFor(`repo or milestone not found`),
errorMessages: errorMessagesFor('repo or milestone not found'),
})
}

View File

@@ -70,7 +70,7 @@ export default class GithubMilestone extends GithubAuthV3Service {
return this._requestJson({
url: `/repos/${user}/${repo}/milestones?state=${variant}`,
schema,
errorMessages: errorMessagesFor(`repo not found`),
errorMessages: errorMessagesFor('repo not found'),
})
}

View File

@@ -108,7 +108,7 @@ const query = gql`
const affiliationsAllowedValues = [
'OWNER',
`COLLABORATOR`,
'COLLABORATOR',
'ORGANIZATION_MEMBER',
]
/**