From 08aa54f20f7b722655623296ac6f47a092c02bac Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Tue, 25 Nov 2025 11:11:56 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20run=20biome=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/moderation/repel.ts | 3 ++- src/util/advent-scheduler.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/moderation/repel.ts b/src/commands/moderation/repel.ts index a688927..b9becd2 100644 --- a/src/commands/moderation/repel.ts +++ b/src/commands/moderation/repel.ts @@ -431,7 +431,8 @@ export const repelCommand = createCommand({ const timeout = await handleTimeout({ target: target, - durationInMilliseconds: timeoutHours !== null ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS, + durationInMilliseconds: + timeoutHours !== null ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS, }); const channels = getTextChannels(interaction); diff --git a/src/util/advent-scheduler.ts b/src/util/advent-scheduler.ts index 48949ad..92547c3 100644 --- a/src/util/advent-scheduler.ts +++ b/src/util/advent-scheduler.ts @@ -1,6 +1,6 @@ +import { promises as fs } from 'node:fs'; import { ChannelType, type Client } from 'discord.js'; import * as cron from 'node-cron'; -import { promises as fs } from 'node:fs'; import { config } from '../env.js'; const TRACKER_FILE = config.adventOfCodeTrackerPath; From 57bea64bee7c74f63c8074d14785c69a58f4eda9 Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Tue, 25 Nov 2025 11:12:40 +0200 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20simplify=20biome=20?= =?UTF-8?q?commands=20in=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index 182916f..1c7ac40 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,7 @@ "docker:dev": "NODE_VERSION=$(cat .nvmrc | tr -d 'v') docker compose --profile dev up", "docker:prod": "NODE_VERSION=$(cat .nvmrc | tr -d 'v') docker compose --profile prod up -d", "docker:stop": "docker compose down", - "lint": "biome lint .", - "lint:fix": "biome lint --fix .", - "format": "biome format --write .", - "check": "biome check .", - "check:fix": "biome check --write .", + "check": "biome check --write .", "typecheck": "tsc --noEmit", "test": "tsx --test '**/*.test.ts'", "test:ci": "NODE_ENV=test node --test dist/**/*.test.js", From 746e5775d220269108f12156645db461065e539e Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Tue, 25 Nov 2025 11:19:43 +0200 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20update=20linting=20?= =?UTF-8?q?step=20to=20use=20check=20script=20and=20add=20typecheck=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dca8271..5bb126d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,8 +32,11 @@ jobs: npm install --no-audit --no-fund fi - - name: Lint - run: npm run lint + - name: Lint and Format + run: npm run check + + - name: Typecheck + run: npm run typecheck - name: Build run: npm run build:ci From 8440edb88c3356bca801b86b4ff134794c3a0fef Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Tue, 25 Nov 2025 14:49:45 +0200 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20add=20TypeScript=20?= =?UTF-8?q?error=20suppression=20comments=20for=20onboarding=20roles=20and?= =?UTF-8?q?=20channels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/onboarding/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/onboarding/index.ts b/src/commands/onboarding/index.ts index 9841fdf..5bf5287 100644 --- a/src/commands/onboarding/index.ts +++ b/src/commands/onboarding/index.ts @@ -19,6 +19,7 @@ export const onboardingCommand = createCommand({ }); return; } + // @ts-expect-error: This command isn't used and shouldn't affect anything, onboarding roles are TBD const onboardingRole = guild.roles.cache.get(config.onboarding.roleId); if (!onboardingRole) { await interaction.reply({ @@ -27,6 +28,7 @@ export const onboardingCommand = createCommand({ }); return; } + // @ts-expect-error: This command isn't used and shouldn't affect anything, onboarding channels are TBD const onboardingChannel = guild.channels.cache.get(config.onboarding.channelId); if (!onboardingChannel || !onboardingChannel.isSendable()) { await interaction.reply({ From 3fde9b462d443e0590b839aafec7295cc7ece051 Mon Sep 17 00:00:00 2001 From: Ali Hammoud Date: Tue, 25 Nov 2025 14:52:35 +0200 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20suppress=20TS=20err?= =?UTF-8?q?ors=20in=20unused=20auto-role=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/events/auto-roles.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/auto-roles.ts b/src/events/auto-roles.ts index 08ff7ad..1dc5ff3 100644 --- a/src/events/auto-roles.ts +++ b/src/events/auto-roles.ts @@ -1,3 +1,4 @@ +// @ts-nocheck: This event isn't used and shouldn't affect anything, auto-roles are TBD import { Events } from 'discord.js'; import { config } from '../env.js'; import { createEvent } from '../util/events.js';