From 09125956a0dd9b2f17363577b692da96029787c3 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 3 Nov 2021 16:54:21 +0200 Subject: [PATCH] chore: run prettier on unformatted files --- backend/src/plugins/Automod/triggers/threadCreateSpam.ts | 2 +- backend/tsconfig.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/src/plugins/Automod/triggers/threadCreateSpam.ts b/backend/src/plugins/Automod/triggers/threadCreateSpam.ts index 79b568cb..7778ce80 100644 --- a/backend/src/plugins/Automod/triggers/threadCreateSpam.ts +++ b/backend/src/plugins/Automod/triggers/threadCreateSpam.ts @@ -30,7 +30,7 @@ export const ThreadCreateSpamTrigger = automodTrigger()({ const totalCount = sumRecentActionCounts(matchingActions); if (totalCount >= triggerConfig.amount) { - const extraContexts = matchingActions.map(a => a.context).filter(c => c !== context); + const extraContexts = matchingActions.map((a) => a.context).filter((c) => c !== context); pluginData.state.recentSpam.push({ type: RecentActionType.ThreadCreate, diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 9ef0d6d5..011e0217 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -24,8 +24,5 @@ "useUnknownInCatchVariables": false, "allowJs": true }, - "include": [ - "src/**/*.ts", - "ormconfig.js" - ] + "include": ["src/**/*.ts", "ormconfig.js"] }