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 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", 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/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({ 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'; 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;