diff --git a/README.md b/README.md index 4a93810e4e..8cb0b69f37 100644 --- a/README.md +++ b/README.md @@ -615,7 +615,7 @@ const { lastIssues } = await octokit.graphql( { owner: "octokit", repo: "graphql.js", - } + }, ); ``` @@ -641,7 +641,7 @@ await octokit.graphql( mediaType: { previews: ["bane"], }, - } + }, ); ``` @@ -790,7 +790,7 @@ const { token } = await app.oauth.createToken({ async onVerification(verification) { await sendMessageToUser( request.body.phoneNumber, - `Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}` + `Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`, ); }, }); diff --git a/src/octokit.ts b/src/octokit.ts index 378a11ca61..580afbcf76 100644 --- a/src/octokit.ts +++ b/src/octokit.ts @@ -12,7 +12,7 @@ export const Octokit = OctokitCore.plugin( restEndpointMethods, paginateRest, retry, - throttling + throttling, ).defaults({ userAgent: `octokit.js/${VERSION}`, throttle: { @@ -24,7 +24,7 @@ export const Octokit = OctokitCore.plugin( // istanbul ignore next no need to test internals of the throttle plugin function onRateLimit(retryAfter: number, options: any, octokit: any) { octokit.log.warn( - `Request quota exhausted for request ${options.method} ${options.url}` + `Request quota exhausted for request ${options.method} ${options.url}`, ); if (options.request.retryCount === 0) { @@ -37,7 +37,7 @@ function onRateLimit(retryAfter: number, options: any, octokit: any) { // istanbul ignore next no need to test internals of the throttle plugin function onSecondaryRateLimit(retryAfter: number, options: any, octokit: any) { octokit.log.warn( - `SecondaryRateLimit detected for request ${options.method} ${options.url}` + `SecondaryRateLimit detected for request ${options.method} ${options.url}`, ); if (options.request.retryCount === 0) { diff --git a/test/app.test.ts b/test/app.test.ts index b4dd634bb7..1119b6ee2d 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -81,7 +81,7 @@ describe("App", () => { headers: { authorization: `bearer ${BEARER}`, }, - } + }, ) .postOnce( "path:/app/installations/123/access_tokens", @@ -97,7 +97,7 @@ describe("App", () => { headers: { authorization: `bearer ${BEARER}`, }, - } + }, ) .getOnce("path:/installation/repositories", { total_count: 1, @@ -148,7 +148,7 @@ describe("App", () => { headers: { authorization: `bearer ${BEARER}`, }, - } + }, ) .postOnce( "path:/repos/octokit/octokit.js/issues", @@ -157,7 +157,7 @@ describe("App", () => { body: { title: "Hello, world!", }, - } + }, ); const octokit = await app.getInstallationOctokit(123); @@ -189,7 +189,7 @@ describe("App", () => { headers: { authorization: `bearer ${BEARER}`, }, - } + }, ) .postOnce( "path:/repos/octokit/octokit.js/issues/1/comments", @@ -198,7 +198,7 @@ describe("App", () => { body: { body: "Hello, World!", }, - } + }, ); app.webhooks.on("issues.opened", async ({ octokit, payload }) => { @@ -240,7 +240,7 @@ describe("App", () => { "x-hub-signature-256": await app.webhooks.sign(issuePayload), }, body: issuePayload, - } + }, ); expect(await response.text()).toEqual("ok\n"); diff --git a/test/smoke.test.ts b/test/smoke.test.ts index bd5ded4650..1dcd29c9d2 100644 --- a/test/smoke.test.ts +++ b/test/smoke.test.ts @@ -19,7 +19,7 @@ describe("Smoke tests", () => { new App({ appId: 123, privateKey: "private key here", - }) + }), ).not.toThrow(); }); @@ -40,7 +40,7 @@ describe("Smoke tests", () => { new OAuthApp({ clientId: "", clientSecret: "", - }) + }), ).not.toThrow(); }); diff --git a/test/typescript-validate.ts b/test/typescript-validate.ts index 856cb01ad6..e288ace9b1 100644 --- a/test/typescript-validate.ts +++ b/test/typescript-validate.ts @@ -27,7 +27,7 @@ export async function OctokitTest() { { owner: "", repo: "", - } + }, ); expect(issues[0].id);