From de94e738fbc5eed77b104152632eaf51e9b8ee86 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 14 Sep 2025 20:45:01 -0700 Subject: [PATCH] [Docs] Add blank space to prevent incorrect comment attachment Biome will "attach" comments to imports if there is no space between them when it sorts imports (this allows suppression comments to work) --- src/data/arena-tag.ts | 3 ++- src/data/balance/moveset-generation.ts | 1 + src/data/battler-tags.ts | 1 + src/phase-manager.ts | 1 + test/test-utils/setup/test-end-log.ts | 12 ++++++------ 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index e59d7173538..ff939194bcd 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -40,9 +40,10 @@ * } * ``` * Notes - * - If the class has any subclasses, then the second form of `loadTag` *must* be used.\ + * - If the class has any subclasses, then the second form of `loadTag` *must* be used. * @module */ + // biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports import type { BattlerTag } from "#app/data/battler-tags"; // biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports diff --git a/src/data/balance/moveset-generation.ts b/src/data/balance/moveset-generation.ts index 91423f80f9a..f9c2a03f4a9 100644 --- a/src/data/balance/moveset-generation.ts +++ b/src/data/balance/moveset-generation.ts @@ -30,6 +30,7 @@ * * @module */ + import { MoveId } from "#enums/move-id"; diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index dc4a5383e24..80a30516903 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -36,6 +36,7 @@ * - If the class has any subclasses, then the second form of `loadTag` *must* be used. * @module */ + import { applyAbAttrs } from "#abilities/apply-ab-attrs"; import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; diff --git a/src/phase-manager.ts b/src/phase-manager.ts index 253c6d8314d..3fbf68de60d 100644 --- a/src/phase-manager.ts +++ b/src/phase-manager.ts @@ -6,6 +6,7 @@ * The manager is exclusively used by the Battle Scene and is NOT intended for external use. * @module */ + import { PHASE_START_COLOR } from "#app/constants/colors"; import { globalScene } from "#app/global-scene"; import type { Phase } from "#app/phase"; diff --git a/test/test-utils/setup/test-end-log.ts b/test/test-utils/setup/test-end-log.ts index fbcb9480330..5be8299b124 100644 --- a/test/test-utils/setup/test-end-log.ts +++ b/test/test-utils/setup/test-end-log.ts @@ -1,9 +1,3 @@ -// biome-ignore lint/correctness/noUnusedImports: TSDoc -import type CustomDefaultReporter from "#test/test-utils/reporters/custom-default-reporter"; -import { basename, join, relative } from "path"; -import chalk from "chalk"; -import type { RunnerTask, RunnerTaskResult, RunnerTestCase } from "vitest"; - /** * Code to add markers to the beginning and end of tests. * Intended for use with {@linkcode CustomDefaultReporter}, and placed inside test hooks @@ -11,6 +5,12 @@ import type { RunnerTask, RunnerTaskResult, RunnerTestCase } from "vitest"; * @module */ +// biome-ignore lint/correctness/noUnusedImports: TSDoc +import type CustomDefaultReporter from "#test/test-utils/reporters/custom-default-reporter"; +import { basename, join, relative } from "path"; +import chalk from "chalk"; +import type { RunnerTask, RunnerTaskResult, RunnerTestCase } from "vitest"; + /** A long string of "="s to partition off each test from one another. */ const TEST_END_BARRIER = chalk.bold.hex("#ff7c7cff")("==================");