From: Dessalines Date: Thu, 6 Jul 2023 13:10:38 +0000 (-0400) Subject: Update prettier to 3.0.0 (#3509) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/static/%7BmarkdownHelpUrl%7D?a=commitdiff_plain;h=2a088cf023dee7ad0bcec21e16d2bc926e303e90;p=lemmy.git Update prettier to 3.0.0 (#3509) * Update prettier to 3.0.0 * Updating prettier dep. * Explicity 3.0.0 version. --- diff --git a/.woodpecker.yml b/.woodpecker.yml index 706498a8..073bc0a0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -23,7 +23,7 @@ pipeline: - git submodule update prettier_check: - image: tmknom/prettier:2.8.8 + image: tmknom/prettier:3.0.0 commands: - prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations' diff --git a/api_tests/package.json b/api_tests/package.json index b2faf0d6..d81ef235 100644 --- a/api_tests/package.json +++ b/api_tests/package.json @@ -20,7 +20,7 @@ "eslint-plugin-prettier": "^4.0.0", "jest": "^29.5.0", "lemmy-js-client": "0.17.2-rc.13", - "prettier": "^2.8.8", + "prettier": "^3.0.0", "ts-jest": "^29.1.0", "typescript": "^5.0.4" } diff --git a/api_tests/src/comment.spec.ts b/api_tests/src/comment.spec.ts index fad69f53..80cb868f 100644 --- a/api_tests/src/comment.spec.ts +++ b/api_tests/src/comment.spec.ts @@ -51,7 +51,7 @@ afterAll(async () => { function assertCommentFederation( commentOne?: CommentView, - commentTwo?: CommentView + commentTwo?: CommentView, ) { expect(commentOne?.comment.ap_id).toBe(commentTwo?.comment.ap_id); expect(commentOne?.comment.content).toBe(commentTwo?.comment.content); @@ -96,10 +96,10 @@ test("Update a comment", async () => { let updateCommentRes = await editComment( alpha, - commentRes.comment_view.comment.id + commentRes.comment_view.comment.id, ); expect(updateCommentRes.comment_view.comment.content).toBe( - "A jest test federated comment update" + "A jest test federated comment update", ); expect(updateCommentRes.comment_view.community.local).toBe(false); expect(updateCommentRes.comment_view.creator.local).toBe(true); @@ -117,21 +117,21 @@ test("Delete a comment", async () => { let deleteCommentRes = await deleteComment( alpha, true, - commentRes.comment_view.comment.id + commentRes.comment_view.comment.id, ); expect(deleteCommentRes.comment_view.comment.deleted).toBe(true); // Make sure that comment is undefined on beta let betaCommentRes = (await resolveComment( beta, - commentRes.comment_view.comment + commentRes.comment_view.comment, )) as any; expect(betaCommentRes.error).toBe("couldnt_find_object"); let undeleteCommentRes = await deleteComment( alpha, false, - commentRes.comment_view.comment.id + commentRes.comment_view.comment.id, ); expect(undeleteCommentRes.comment_view.comment.deleted).toBe(false); @@ -162,7 +162,7 @@ test("Remove a comment from admin and community on the same instance", async () // Make sure that comment is removed on alpha (it gets pushed since an admin from beta removed it) let refetchedPostComments = await getComments( alpha, - postRes.post_view.post.id + postRes.post_view.post.id, ); expect(refetchedPostComments.comments[0].comment.removed).toBe(true); @@ -172,12 +172,12 @@ test("Remove a comment from admin and community on the same instance", async () // Make sure that comment is unremoved on beta let refetchedPostComments2 = await getComments( alpha, - postRes.post_view.post.id + postRes.post_view.post.id, ); expect(refetchedPostComments2.comments[0].comment.removed).toBe(false); assertCommentFederation( refetchedPostComments2.comments[0], - unremoveCommentRes.comment_view + unremoveCommentRes.comment_view, ); }); @@ -192,7 +192,7 @@ test("Remove a comment from admin and community on different instance", async () let newCommunity = await createCommunity(newAlphaApi); let newPost = await createPost( newAlphaApi, - newCommunity.community_view.community.id + newCommunity.community_view.community.id, ); let commentRes = await createComment(newAlphaApi, newPost.post_view.post.id); expect(commentRes.comment_view.comment.content).toBeDefined(); @@ -209,19 +209,19 @@ test("Remove a comment from admin and community on different instance", async () let removeCommentRes = await removeComment( beta, true, - betaComment.comment.id + betaComment.comment.id, ); expect(removeCommentRes.comment_view.comment.removed).toBe(true); // Make sure its not removed on alpha let refetchedPostComments = await getComments( alpha, - newPost.post_view.post.id + newPost.post_view.post.id, ); expect(refetchedPostComments.comments[0].comment.removed).toBe(false); assertCommentFederation( refetchedPostComments.comments[0], - commentRes.comment_view + commentRes.comment_view, ); }); @@ -277,13 +277,13 @@ test("Reply to a comment", async () => { let replyRes = await createComment( beta, betaComment.post.id, - betaComment.comment.id + betaComment.comment.id, ); expect(replyRes.comment_view.comment.content).toBeDefined(); expect(replyRes.comment_view.community.local).toBe(true); expect(replyRes.comment_view.creator.local).toBe(true); expect(getCommentParentId(replyRes.comment_view.comment)).toBe( - betaComment.comment.id + betaComment.comment.id, ); expect(replyRes.comment_view.counts.score).toBe(1); @@ -295,7 +295,7 @@ test("Reply to a comment", async () => { let alphaComment = postComments.comments[0]; expect(alphaComment.comment.content).toBeDefined(); expect(getCommentParentId(alphaComment.comment)).toBe( - postComments.comments[1].comment.id + postComments.comments[1].comment.id, ); expect(alphaComment.community.local).toBe(false); expect(alphaComment.creator.local).toBe(false); @@ -311,7 +311,7 @@ test("Mention beta", async () => { alpha, postRes.post_view.post.id, commentRes.comment_view.comment.id, - mentionContent + mentionContent, ); expect(mentionRes.comment_view.comment.content).toBeDefined(); expect(mentionRes.comment_view.community.local).toBe(false); @@ -358,7 +358,7 @@ test("A and G subscribe to B (center) A posts, G mentions B, it gets announced t gamma, gammaPost.post.id, undefined, - commentContent + commentContent, ); expect(commentRes.comment_view.comment.content).toBe(commentContent); expect(commentRes.comment_view.community.local).toBe(false); @@ -368,7 +368,7 @@ test("A and G subscribe to B (center) A posts, G mentions B, it gets announced t // Make sure alpha sees it let alphaPostComments2 = await getComments( alpha, - alphaPost.post_view.post.id + alphaPost.post_view.post.id, ); expect(alphaPostComments2.comments[0].comment.content).toBe(commentContent); expect(alphaPostComments2.comments[0].community.local).toBe(true); @@ -376,7 +376,7 @@ test("A and G subscribe to B (center) A posts, G mentions B, it gets announced t expect(alphaPostComments2.comments[0].counts.score).toBe(1); assertCommentFederation( alphaPostComments2.comments[0], - commentRes.comment_view + commentRes.comment_view, ); // Make sure beta has mentions @@ -421,7 +421,7 @@ test("Check that activity from another instance is sent to third instance", asyn gamma, gammaPost.post.id, undefined, - commentContent + commentContent, ); expect(commentRes.comment_view.comment.content).toBe(commentContent); expect(commentRes.comment_view.community.local).toBe(false); @@ -436,7 +436,7 @@ test("Check that activity from another instance is sent to third instance", asyn expect(alphaPostComments2.comments[0].counts.score).toBe(1); assertCommentFederation( alphaPostComments2.comments[0], - commentRes.comment_view + commentRes.comment_view, ); await unfollowRemotes(alpha); @@ -447,7 +447,7 @@ test("Fetch in_reply_tos: A is unsubbed from B, B makes a post, and some embedde // Unfollow all remote communities let site = await unfollowRemotes(alpha); expect( - site.my_user?.follows.filter(c => c.community.local == false).length + site.my_user?.follows.filter(c => c.community.local == false).length, ).toBe(0); // B creates a post, and two comments, should be invisible to A @@ -459,10 +459,10 @@ test("Fetch in_reply_tos: A is unsubbed from B, B makes a post, and some embedde beta, postRes.post_view.post.id, undefined, - parentCommentContent + parentCommentContent, ); expect(parentCommentRes.comment_view.comment.content).toBe( - parentCommentContent + parentCommentContent, ); // B creates a comment, then a child one of that. @@ -471,10 +471,10 @@ test("Fetch in_reply_tos: A is unsubbed from B, B makes a post, and some embedde beta, postRes.post_view.post.id, parentCommentRes.comment_view.comment.id, - childCommentContent + childCommentContent, ); expect(childCommentRes.comment_view.comment.content).toBe( - childCommentContent + childCommentContent, ); // Follow beta again @@ -487,7 +487,7 @@ test("Fetch in_reply_tos: A is unsubbed from B, B makes a post, and some embedde let updateRes = await editComment( beta, childCommentRes.comment_view.comment.id, - updatedCommentContent + updatedCommentContent, ); expect(updateRes.comment_view.comment.content).toBe(updatedCommentContent); @@ -502,11 +502,11 @@ test("Fetch in_reply_tos: A is unsubbed from B, B makes a post, and some embedde expect(alphaPost.post_view.post.name).toBeDefined(); assertCommentFederation( alphaPostComments.comments[1], - parentCommentRes.comment_view + parentCommentRes.comment_view, ); assertCommentFederation( alphaPostComments.comments[0], - updateRes.comment_view + updateRes.comment_view, ); expect(alphaPost.post_view.community.local).toBe(false); expect(alphaPost.post_view.creator.local).toBe(false); @@ -539,7 +539,7 @@ test("Report a comment", async () => { expect(betaReport).toBeDefined(); expect(betaReport.resolved).toBe(false); expect(betaReport.original_comment_text).toBe( - alphaReport.original_comment_text + alphaReport.original_comment_text, ); expect(betaReport.reason).toBe(alphaReport.reason); }); diff --git a/api_tests/src/community.spec.ts b/api_tests/src/community.spec.ts index 6550d7e2..d9a76cf8 100644 --- a/api_tests/src/community.spec.ts +++ b/api_tests/src/community.spec.ts @@ -26,20 +26,20 @@ beforeAll(async () => { function assertCommunityFederation( communityOne?: CommunityView, - communityTwo?: CommunityView + communityTwo?: CommunityView, ) { expect(communityOne?.community.actor_id).toBe( - communityTwo?.community.actor_id + communityTwo?.community.actor_id, ); expect(communityOne?.community.name).toBe(communityTwo?.community.name); expect(communityOne?.community.title).toBe(communityTwo?.community.title); expect(communityOne?.community.description).toBe( - communityTwo?.community.description + communityTwo?.community.description, ); expect(communityOne?.community.icon).toBe(communityTwo?.community.icon); expect(communityOne?.community.banner).toBe(communityTwo?.community.banner); expect(communityOne?.community.published).toBe( - communityTwo?.community.published + communityTwo?.community.published, ); expect(communityOne?.community.nsfw).toBe(communityTwo?.community.nsfw); expect(communityOne?.community.removed).toBe(communityTwo?.community.removed); @@ -81,17 +81,17 @@ test("Delete community", async () => { let deleteCommunityRes = await deleteCommunity( beta, true, - communityRes.community_view.community.id + communityRes.community_view.community.id, ); expect(deleteCommunityRes.community_view.community.deleted).toBe(true); expect(deleteCommunityRes.community_view.community.title).toBe( - communityRes.community_view.community.title + communityRes.community_view.community.title, ); // Make sure it got deleted on A let communityOnAlphaDeleted = await getCommunity( alpha, - alphaCommunity.community.id + alphaCommunity.community.id, ); expect(communityOnAlphaDeleted.community_view.community.deleted).toBe(true); @@ -99,17 +99,17 @@ test("Delete community", async () => { let undeleteCommunityRes = await deleteCommunity( beta, false, - communityRes.community_view.community.id + communityRes.community_view.community.id, ); expect(undeleteCommunityRes.community_view.community.deleted).toBe(false); // Make sure it got undeleted on A let communityOnAlphaUnDeleted = await getCommunity( alpha, - alphaCommunity.community.id + alphaCommunity.community.id, ); expect(communityOnAlphaUnDeleted.community_view.community.deleted).toBe( - false + false, ); }); @@ -133,17 +133,17 @@ test("Remove community", async () => { let removeCommunityRes = await removeCommunity( beta, true, - communityRes.community_view.community.id + communityRes.community_view.community.id, ); expect(removeCommunityRes.community_view.community.removed).toBe(true); expect(removeCommunityRes.community_view.community.title).toBe( - communityRes.community_view.community.title + communityRes.community_view.community.title, ); // Make sure it got Removed on A let communityOnAlphaRemoved = await getCommunity( alpha, - alphaCommunity.community.id + alphaCommunity.community.id, ); expect(communityOnAlphaRemoved.community_view.community.removed).toBe(true); @@ -151,17 +151,17 @@ test("Remove community", async () => { let unremoveCommunityRes = await removeCommunity( beta, false, - communityRes.community_view.community.id + communityRes.community_view.community.id, ); expect(unremoveCommunityRes.community_view.community.removed).toBe(false); // Make sure it got undeleted on A let communityOnAlphaUnRemoved = await getCommunity( alpha, - alphaCommunity.community.id + alphaCommunity.community.id, ); expect(communityOnAlphaUnRemoved.community_view.community.removed).toBe( - false + false, ); }); @@ -220,7 +220,7 @@ test("Admin actions in remote community are not federated to origin", async () = bannedUserInfo2.person.id, betaCommunity.community.id, true, - true + true, ); expect(banRes.banned).toBe(true); diff --git a/api_tests/src/follow.spec.ts b/api_tests/src/follow.spec.ts index 213040fe..72a3a2ce 100644 --- a/api_tests/src/follow.spec.ts +++ b/api_tests/src/follow.spec.ts @@ -33,7 +33,7 @@ test("Follow federated community", async () => { // Check it from local let site = await getSite(alpha); let remoteCommunityId = site.my_user?.follows.find( - c => c.community.local == false + c => c.community.local == false, )?.community.id; expect(remoteCommunityId).toBeDefined(); expect(site.my_user?.follows.length).toBe(2); diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index f5102840..cabbcfd8 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -379,7 +379,7 @@ test("Enforce site ban for federated user", async () => { alpha, alphaPerson.person.id, true, - true + true, ); expect(banAlpha.banned).toBe(true); @@ -396,7 +396,7 @@ test("Enforce site ban for federated user", async () => { alpha, alphaPerson.person.id, false, - false + false, ); expect(unBanAlpha.banned).toBe(false); @@ -431,7 +431,7 @@ test("Enforce community ban for federated user", async () => { alphaPerson.person.id, 2, true, - true + true, ); expect(banAlpha.banned).toBe(true); @@ -449,7 +449,7 @@ test("Enforce community ban for federated user", async () => { alphaPerson.person.id, 2, false, - false + false, ); expect(unBanAlpha.banned).toBe(false); let postRes3 = await createPost(alpha, betaCommunity.community.id); diff --git a/api_tests/src/private_message.spec.ts b/api_tests/src/private_message.spec.ts index 045805a6..a79fe2fb 100644 --- a/api_tests/src/private_message.spec.ts +++ b/api_tests/src/private_message.spec.ts @@ -43,15 +43,15 @@ test("Update a private message", async () => { let pmRes = await createPrivateMessage(alpha, recipient_id); let pmUpdated = await editPrivateMessage( alpha, - pmRes.private_message_view.private_message.id + pmRes.private_message_view.private_message.id, ); expect(pmUpdated.private_message_view.private_message.content).toBe( - updatedContent + updatedContent, ); let betaPms = await listPrivateMessages(beta); expect(betaPms.private_messages[0].private_message.content).toBe( - updatedContent + updatedContent, ); }); @@ -61,7 +61,7 @@ test("Delete a private message", async () => { let deletedPmRes = await deletePrivateMessage( alpha, true, - pmRes.private_message_view.private_message.id + pmRes.private_message_view.private_message.id, ); expect(deletedPmRes.private_message_view.private_message.deleted).toBe(true); @@ -70,21 +70,21 @@ test("Delete a private message", async () => { // no reason to show them let betaPms2 = await listPrivateMessages(beta); expect(betaPms2.private_messages.length).toBe( - betaPms1.private_messages.length - 1 + betaPms1.private_messages.length - 1, ); // Undelete let undeletedPmRes = await deletePrivateMessage( alpha, false, - pmRes.private_message_view.private_message.id + pmRes.private_message_view.private_message.id, ); expect(undeletedPmRes.private_message_view.private_message.deleted).toBe( - false + false, ); let betaPms3 = await listPrivateMessages(beta); expect(betaPms3.private_messages.length).toBe( - betaPms1.private_messages.length + betaPms1.private_messages.length, ); }); diff --git a/api_tests/src/shared.ts b/api_tests/src/shared.ts index 6812f3af..0523712e 100644 --- a/api_tests/src/shared.ts +++ b/api_tests/src/shared.ts @@ -192,7 +192,7 @@ export async function setupLogins() { export async function createPost( api: API, - community_id: number + community_id: number, ): Promise { let name = randomString(5); let body = randomString(10); @@ -220,7 +220,7 @@ export async function editPost(api: API, post: Post): Promise { export async function deletePost( api: API, deleted: boolean, - post: Post + post: Post, ): Promise { let form: DeletePost = { post_id: post.id, @@ -233,7 +233,7 @@ export async function deletePost( export async function removePost( api: API, removed: boolean, - post: Post + post: Post, ): Promise { let form: RemovePost = { post_id: post.id, @@ -246,7 +246,7 @@ export async function removePost( export async function featurePost( api: API, featured: boolean, - post: Post + post: Post, ): Promise { let form: FeaturePost = { post_id: post.id, @@ -260,7 +260,7 @@ export async function featurePost( export async function lockPost( api: API, locked: boolean, - post: Post + post: Post, ): Promise { let form: LockPost = { post_id: post.id, @@ -272,7 +272,7 @@ export async function lockPost( export async function resolvePost( api: API, - post: Post + post: Post, ): Promise { let form: ResolveObject = { q: post.ap_id, @@ -283,7 +283,7 @@ export async function resolvePost( export async function searchPostLocal( api: API, - post: Post + post: Post, ): Promise { let form: Search = { q: post.name, @@ -296,7 +296,7 @@ export async function searchPostLocal( export async function getPost( api: API, - post_id: number + post_id: number, ): Promise { let form: GetPost = { id: post_id, @@ -307,7 +307,7 @@ export async function getPost( export async function getComments( api: API, - post_id: number + post_id: number, ): Promise { let form: GetComments = { post_id: post_id, @@ -320,7 +320,7 @@ export async function getComments( export async function resolveComment( api: API, - comment: Comment + comment: Comment, ): Promise { let form: ResolveObject = { q: comment.ap_id, @@ -330,7 +330,7 @@ export async function resolveComment( } export async function resolveBetaCommunity( - api: API + api: API, ): Promise { // Use short-hand search url let form: ResolveObject = { @@ -342,7 +342,7 @@ export async function resolveBetaCommunity( export async function resolveCommunity( api: API, - q: string + q: string, ): Promise { let form: ResolveObject = { q, @@ -353,7 +353,7 @@ export async function resolveCommunity( export async function resolvePerson( api: API, - apShortname: string + apShortname: string, ): Promise { let form: ResolveObject = { q: apShortname, @@ -366,7 +366,7 @@ export async function banPersonFromSite( api: API, person_id: number, ban: boolean, - remove_data: boolean + remove_data: boolean, ): Promise { // Make sure lemmy-beta/c/main is cached on lemmy_alpha let form: BanPerson = { @@ -383,7 +383,7 @@ export async function banPersonFromCommunity( person_id: number, community_id: number, remove_data: boolean, - ban: boolean + ban: boolean, ): Promise { let form: BanFromCommunity = { person_id, @@ -398,7 +398,7 @@ export async function banPersonFromCommunity( export async function followCommunity( api: API, follow: boolean, - community_id: number + community_id: number, ): Promise { let form: FollowCommunity = { community_id, @@ -411,7 +411,7 @@ export async function followCommunity( export async function likePost( api: API, score: number, - post: Post + post: Post, ): Promise { let form: CreatePostLike = { post_id: post.id, @@ -426,7 +426,7 @@ export async function createComment( api: API, post_id: number, parent_id?: number, - content = "a jest test comment" + content = "a jest test comment", ): Promise { let form: CreateComment = { content, @@ -440,7 +440,7 @@ export async function createComment( export async function editComment( api: API, comment_id: number, - content = "A jest test federated comment update" + content = "A jest test federated comment update", ): Promise { let form: EditComment = { content, @@ -453,7 +453,7 @@ export async function editComment( export async function deleteComment( api: API, deleted: boolean, - comment_id: number + comment_id: number, ): Promise { let form: DeleteComment = { comment_id, @@ -466,7 +466,7 @@ export async function deleteComment( export async function removeComment( api: API, removed: boolean, - comment_id: number + comment_id: number, ): Promise { let form: RemoveComment = { comment_id, @@ -477,7 +477,7 @@ export async function removeComment( } export async function getMentions( - api: API + api: API, ): Promise { let form: GetPersonMentions = { sort: "New", @@ -490,7 +490,7 @@ export async function getMentions( export async function likeComment( api: API, score: number, - comment: Comment + comment: Comment, ): Promise { let form: CreateCommentLike = { comment_id: comment.id, @@ -502,7 +502,7 @@ export async function likeComment( export async function createCommunity( api: API, - name_: string = randomString(5) + name_: string = randomString(5), ): Promise { let description = "a sample description"; let form: CreateCommunity = { @@ -516,7 +516,7 @@ export async function createCommunity( export async function getCommunity( api: API, - id: number + id: number, ): Promise { let form: GetCommunity = { id, @@ -528,7 +528,7 @@ export async function getCommunity( export async function deleteCommunity( api: API, deleted: boolean, - community_id: number + community_id: number, ): Promise { let form: DeleteCommunity = { community_id, @@ -541,7 +541,7 @@ export async function deleteCommunity( export async function removeCommunity( api: API, removed: boolean, - community_id: number + community_id: number, ): Promise { let form: RemoveCommunity = { community_id, @@ -553,7 +553,7 @@ export async function removeCommunity( export async function createPrivateMessage( api: API, - recipient_id: number + recipient_id: number, ): Promise { let content = "A jest test federated private message"; let form: CreatePrivateMessage = { @@ -566,7 +566,7 @@ export async function createPrivateMessage( export async function editPrivateMessage( api: API, - private_message_id: number + private_message_id: number, ): Promise { let updatedContent = "A jest test federated private message edited"; let form: EditPrivateMessage = { @@ -580,7 +580,7 @@ export async function editPrivateMessage( export async function deletePrivateMessage( api: API, deleted: boolean, - private_message_id: number + private_message_id: number, ): Promise { let form: DeletePrivateMessage = { deleted, @@ -592,7 +592,7 @@ export async function deletePrivateMessage( export async function registerUser( api: API, - username: string = randomString(5) + username: string = randomString(5), ): Promise { let form: Register = { username, @@ -619,7 +619,7 @@ export async function saveUserSettingsBio(api: API): Promise { } export async function saveUserSettingsFederated( - api: API + api: API, ): Promise { let avatar = "https://image.flaticon.com/icons/png/512/35/35896.png"; let banner = "https://image.flaticon.com/icons/png/512/36/35896.png"; @@ -642,7 +642,7 @@ export async function saveUserSettingsFederated( export async function saveUserSettings( api: API, - form: SaveUserSettings + form: SaveUserSettings, ): Promise { return api.client.saveUserSettings(form); } @@ -663,7 +663,7 @@ export async function getSite(api: API): Promise { } export async function listPrivateMessages( - api: API + api: API, ): Promise { let form: GetPrivateMessages = { auth: api.auth, @@ -697,7 +697,7 @@ export async function followBeta(api: API): Promise { export async function reportPost( api: API, post_id: number, - reason: string + reason: string, ): Promise { let form: CreatePostReport = { post_id, @@ -708,7 +708,7 @@ export async function reportPost( } export async function listPostReports( - api: API + api: API, ): Promise { let form: ListPostReports = { auth: api.auth, @@ -719,7 +719,7 @@ export async function listPostReports( export async function reportComment( api: API, comment_id: number, - reason: string + reason: string, ): Promise { let form: CreateCommentReport = { comment_id, @@ -730,7 +730,7 @@ export async function reportComment( } export async function listCommentReports( - api: API + api: API, ): Promise { let form: ListCommentReports = { auth: api.auth, diff --git a/api_tests/yarn.lock b/api_tests/yarn.lock index 5a360ba2..a404dc52 100644 --- a/api_tests/yarn.lock +++ b/api_tests/yarn.lock @@ -2461,10 +2461,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== pretty-format@^29.0.0, pretty-format@^29.5.0: version "29.5.0"