From c12d9140fc16007134735b0b28d2697f7fddaa17 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sat, 29 Nov 2025 20:52:45 -0800 Subject: [PATCH] [Misc] Remove now-obsolete `noUnusedImports` suppression comments --- src/@types/ability-types.ts | 4 +--- src/@types/arena-tags.ts | 1 - src/@types/battler-tags.ts | 5 +---- src/@types/helpers/type-helpers.ts | 2 -- src/@types/species-gen-types.ts | 1 - src/data/abilities/ability.ts | 7 ++----- src/data/arena-tag.ts | 5 +---- src/data/balance/pokemon-evolutions.ts | 1 - src/data/moves/move-condition.ts | 1 - src/data/positional-tags/positional-tag.ts | 2 -- src/field/arena.ts | 5 +---- src/modifier/init-modifier-pools.ts | 5 +---- src/phase-tree.ts | 8 ++------ src/phases/move-phase.ts | 5 +---- src/phases/positional-tag-phase.ts | 7 ++----- src/system/version-migration/version-converter.ts | 2 +- test/test-utils/helpers/field-helper.ts | 5 +---- test/test-utils/helpers/overrides-helper.ts | 6 +----- test/test-utils/matchers/to-be-at-phase.ts | 3 --- test/test-utils/matchers/to-have-ability-applied.ts | 5 +---- test/test-utils/matchers/to-have-arena-tag.ts | 1 - test/test-utils/matchers/to-have-battler-tag.ts | 5 +---- test/test-utils/matchers/to-have-fainted.ts | 1 - test/test-utils/matchers/to-have-full-hp.ts | 1 - test/test-utils/matchers/to-have-hp.ts | 1 - test/test-utils/matchers/to-have-positional-tag.ts | 5 +---- test/test-utils/matchers/to-have-shown-message.ts | 1 - test/test-utils/matchers/to-have-stat-stage.ts | 5 +---- test/test-utils/matchers/to-have-status-effect.ts | 7 ++----- test/test-utils/matchers/to-have-taken-damage.ts | 5 +---- test/test-utils/matchers/to-have-terrain.ts | 5 +---- test/test-utils/matchers/to-have-used-move.ts | 5 +---- test/test-utils/matchers/to-have-used-pp.ts | 5 +---- test/test-utils/matchers/to-have-weather.ts | 5 +---- test/test-utils/setup/test-end-log.ts | 1 - 35 files changed, 26 insertions(+), 107 deletions(-) diff --git a/src/@types/ability-types.ts b/src/@types/ability-types.ts index 36c636664d1..dc3b348c507 100644 --- a/src/@types/ability-types.ts +++ b/src/@types/ability-types.ts @@ -1,4 +1,5 @@ import type { AbAttrConstructorMap } from "#abilities/ability"; +import type { applyAbAttrs } from "#abilities/apply-ab-attrs"; import type { BattleStat } from "#enums/stat"; import type { Pokemon } from "#field/pokemon"; import type { Move } from "#moves/move"; @@ -6,9 +7,6 @@ import type { Move } from "#moves/move"; // intentionally re-export all types from abilities to have this be the centralized place to import ability types export type * from "#abilities/ability"; -// biome-ignore lint/correctness/noUnusedImports: Used in a tsdoc comment -import type { applyAbAttrs } from "#abilities/apply-ab-attrs"; - export type AbAttrCondition = (pokemon: Pokemon) => boolean; export type PokemonAttackCondition = (user: Pokemon | null, target: Pokemon | null, move: Move) => boolean; export type PokemonDefendCondition = (target: Pokemon, user: Pokemon, move: Move) => boolean; diff --git a/src/@types/arena-tags.ts b/src/@types/arena-tags.ts index 73f26af052a..cd4796f397c 100644 --- a/src/@types/arena-tags.ts +++ b/src/@types/arena-tags.ts @@ -1,6 +1,5 @@ import type { ArenaTagTypeMap } from "#data/arena-tag"; import type { ArenaTagType } from "#enums/arena-tag-type"; -// biome-ignore lint/correctness/noUnusedImports: TSDocs import type { SessionSaveData } from "#types/save-data"; import type { ObjectValues } from "#types/type-helpers"; diff --git a/src/@types/battler-tags.ts b/src/@types/battler-tags.ts index ec72c811447..9c3add9fb23 100644 --- a/src/@types/battler-tags.ts +++ b/src/@types/battler-tags.ts @@ -1,10 +1,7 @@ -// biome-ignore-start lint/correctness/noUnusedImports: Used in a TSDoc comment import type { AbilityBattlerTag, BattlerTagTypeMap, SerializableBattlerTag, TypeBoostTag } from "#data/battler-tags"; import type { AbilityId } from "#enums/ability-id"; -import type { SessionSaveData } from "#types/save-data"; -// biome-ignore-end lint/correctness/noUnusedImports: Used in a TSDoc comment - import type { BattlerTagType } from "#enums/battler-tag-type"; +import type { SessionSaveData } from "#types/save-data"; import type { InferKeys, ObjectValues } from "#types/type-helpers"; /** diff --git a/src/@types/helpers/type-helpers.ts b/src/@types/helpers/type-helpers.ts index 6c4110e00bc..7f2affe4119 100644 --- a/src/@types/helpers/type-helpers.ts +++ b/src/@types/helpers/type-helpers.ts @@ -2,9 +2,7 @@ * A collection of custom utility types that aid in type checking and ensuring strict type conformity */ -// biome-ignore-start lint/correctness/noUnusedImports: Used in a tsdoc comment import type { AbAttr } from "#abilities/ability"; -// biome-ignore-end lint/correctness/noUnusedImports: Used in a tsdoc comment /** * Exactly matches the type of the argument, preventing adding additional properties. diff --git a/src/@types/species-gen-types.ts b/src/@types/species-gen-types.ts index 1561a427d3f..f46a7cfeda9 100644 --- a/src/@types/species-gen-types.ts +++ b/src/@types/species-gen-types.ts @@ -1,4 +1,3 @@ -// biome-ignore lint/correctness/noUnusedImports: Used in TSDoc comment import type { EvoLevelThresholdKind } from "#enums/evo-level-threshold-kind"; import type { SpeciesId } from "#enums/species-id"; diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index f29e5eada8c..f703c4aa75f 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -1,9 +1,5 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { BattleScene } from "#app/battle-scene"; -import type { SpeciesFormChangeRevertWeatherFormTrigger } from "#data/form-change-triggers"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { applyAbAttrs } from "#abilities/apply-ab-attrs"; +import type { BattleScene } from "#app/battle-scene"; import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; import type { EntryHazardTag, SuppressAbilitiesTag } from "#data/arena-tag"; @@ -11,6 +7,7 @@ import type { BattlerTag } from "#data/battler-tags"; import { GroundedTag } from "#data/battler-tags"; import { getBerryEffectFunc } from "#data/berry"; import { allAbilities, allMoves } from "#data/data-lists"; +import type { SpeciesFormChangeRevertWeatherFormTrigger } from "#data/form-change-triggers"; import { SpeciesFormChangeAbilityTrigger, SpeciesFormChangeWeatherTrigger } from "#data/form-change-triggers"; import { Gender } from "#data/gender"; import { getPokeballName } from "#data/pokeball"; diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index 763ac3621b9..67e07ac47f6 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -44,11 +44,8 @@ * @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 - import { applyAbAttrs, applyOnGainAbAttrs, applyOnLoseAbAttrs } from "#abilities/apply-ab-attrs"; +import type { BattlerTag } from "#app/data/battler-tags"; import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; import { CommonBattleAnim } from "#data/battle-anims"; diff --git a/src/data/balance/pokemon-evolutions.ts b/src/data/balance/pokemon-evolutions.ts index 04c3660d2eb..592f5837cff 100644 --- a/src/data/balance/pokemon-evolutions.ts +++ b/src/data/balance/pokemon-evolutions.ts @@ -1,4 +1,3 @@ -// biome-ignore lint/correctness/noUnusedImports: Used in TSDoc comments import type { determineEnemySpecies } from "#app/ai/ai-species-gen"; import { defaultStarterSpecies } from "#app/constants"; import { globalScene } from "#app/global-scene"; diff --git a/src/data/moves/move-condition.ts b/src/data/moves/move-condition.ts index fd923d3ca93..f637b4d43a1 100644 --- a/src/data/moves/move-condition.ts +++ b/src/data/moves/move-condition.ts @@ -1,4 +1,3 @@ -// biome-ignore lint/correctness/noUnusedImports: Used in a TSDoc comment import type { GameMode } from "#app/game-mode"; import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; diff --git a/src/data/positional-tags/positional-tag.ts b/src/data/positional-tags/positional-tag.ts index 44675b528bd..e6d5cb245c5 100644 --- a/src/data/positional-tags/positional-tag.ts +++ b/src/data/positional-tags/positional-tag.ts @@ -1,8 +1,6 @@ import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; -// biome-ignore-start lint/correctness/noUnusedImports: TSDoc import type { ArenaTag } from "#data/arena-tag"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc import { allMoves } from "#data/data-lists"; import type { BattlerIndex } from "#enums/battler-index"; import type { MoveId } from "#enums/move-id"; diff --git a/src/field/arena.ts b/src/field/arena.ts index dc209226211..35ffce992e5 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -1,7 +1,3 @@ -// biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports -import type { PositionalTag } from "#data/positional-tags/positional-tag"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports - import { applyAbAttrs } from "#abilities/apply-ab-attrs"; import { globalScene } from "#app/global-scene"; import Overrides from "#app/overrides"; @@ -10,6 +6,7 @@ import type { ArenaTag, ArenaTagTypeMap } from "#data/arena-tag"; import { EntryHazardTag, getArenaTag } from "#data/arena-tag"; import { SpeciesFormChangeRevertWeatherFormTrigger, SpeciesFormChangeWeatherTrigger } from "#data/form-change-triggers"; import type { PokemonSpecies } from "#data/pokemon-species"; +import type { PositionalTag } from "#data/positional-tags/positional-tag"; import { PositionalTagManager } from "#data/positional-tags/positional-tag-manager"; import { getTerrainClearMessage, getTerrainStartMessage, Terrain, TerrainType } from "#data/terrain"; import { diff --git a/src/modifier/init-modifier-pools.ts b/src/modifier/init-modifier-pools.ts index e6ec69eac7f..a3ae4730356 100644 --- a/src/modifier/init-modifier-pools.ts +++ b/src/modifier/init-modifier-pools.ts @@ -1,7 +1,3 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { initModifierTypes } from "#modifiers/modifier-type"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { timedEventManager } from "#app/global-event-manager"; import { globalScene } from "#app/global-scene"; import { pokemonEvolutions } from "#balance/pokemon-evolutions"; @@ -29,6 +25,7 @@ import { trainerModifierPool, wildModifierPool, } from "#modifiers/modifier-pools"; +import type { initModifierTypes } from "#modifiers/modifier-type"; import { WeightedModifierType } from "#modifiers/modifier-type"; import type { WeightedModifierTypeWeightFunc } from "#types/modifier-types"; diff --git a/src/phase-tree.ts b/src/phase-tree.ts index f0501a6ece6..f348f89818c 100644 --- a/src/phase-tree.ts +++ b/src/phase-tree.ts @@ -1,10 +1,6 @@ -// biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports -import type { PhaseManager } from "#app/@types/phase-types"; -import type { DynamicPhaseMarker } from "#phases/dynamic-phase-marker"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports - -import type { PhaseMap, PhaseString } from "#app/@types/phase-types"; +import type { PhaseManager, PhaseMap, PhaseString } from "#app/@types/phase-types"; import type { Phase } from "#app/phase"; +import type { DynamicPhaseMarker } from "#phases/dynamic-phase-marker"; import type { PhaseConditionFunc } from "#types/phase-types"; /** diff --git a/src/phases/move-phase.ts b/src/phases/move-phase.ts index 48fc5f6f960..50dd16a4d3f 100644 --- a/src/phases/move-phase.ts +++ b/src/phases/move-phase.ts @@ -1,7 +1,3 @@ -// biome-ignore-start lint/correctness/noUnusedImports: Used in a tsdoc comment -import type { Move, PreUseInterruptAttr } from "#types/move-types"; -// biome-ignore-end lint/correctness/noUnusedImports: Used in a tsdoc comment - import { applyAbAttrs } from "#abilities/apply-ab-attrs"; import { globalScene } from "#app/global-scene"; import { getPokemonNameWithAffix } from "#app/messages"; @@ -32,6 +28,7 @@ import type { Pokemon } from "#field/pokemon"; import { applyMoveAttrs } from "#moves/apply-attrs"; import { frenzyMissFunc } from "#moves/move-utils"; import type { PokemonMove } from "#moves/pokemon-move"; +import type { Move, PreUseInterruptAttr } from "#types/move-types"; import type { TurnMove } from "#types/turn-move"; import { applyChallenges } from "#utils/challenge-utils"; import { BooleanHolder, NumberHolder } from "#utils/common"; diff --git a/src/phases/positional-tag-phase.ts b/src/phases/positional-tag-phase.ts index dec572273c5..78eab6dcd44 100644 --- a/src/phases/positional-tag-phase.ts +++ b/src/phases/positional-tag-phase.ts @@ -1,10 +1,7 @@ -// biome-ignore-start lint/correctness/noUnusedImports: TSDocs -import type { PositionalTag } from "#data/positional-tags/positional-tag"; -import type { TurnEndPhase } from "#phases/turn-end-phase"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDocs - import { globalScene } from "#app/global-scene"; import { Phase } from "#app/phase"; +import type { PositionalTag } from "#data/positional-tags/positional-tag"; +import type { TurnEndPhase } from "#phases/turn-end-phase"; /** * Phase to trigger all pending post-turn {@linkcode PositionalTag}s. diff --git a/src/system/version-migration/version-converter.ts b/src/system/version-migration/version-converter.ts index 269e577ca3f..75ffde9934a 100644 --- a/src/system/version-migration/version-converter.ts +++ b/src/system/version-migration/version-converter.ts @@ -1,4 +1,4 @@ -/** biome-ignore-all lint/performance/noNamespaceImport: Convenience */ +/* biome-ignore-all lint/performance/noNamespaceImport: Convenience */ import { version } from "#package.json"; import type { SessionSaveData, SystemSaveData } from "#types/save-data"; diff --git a/test/test-utils/helpers/field-helper.ts b/test/test-utils/helpers/field-helper.ts index 53864c6ddef..16c24ae519f 100644 --- a/test/test-utils/helpers/field-helper.ts +++ b/test/test-utils/helpers/field-helper.ts @@ -1,8 +1,5 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { globalScene } from "#app/global-scene"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import type { Ability } from "#abilities/ability"; +import type { globalScene } from "#app/global-scene"; import { allAbilities } from "#data/data-lists"; import type { AbilityId } from "#enums/ability-id"; import type { BattlerIndex } from "#enums/battler-index"; diff --git a/test/test-utils/helpers/overrides-helper.ts b/test/test-utils/helpers/overrides-helper.ts index 32e7cc3f6b9..e938ac348e0 100644 --- a/test/test-utils/helpers/overrides-helper.ts +++ b/test/test-utils/helpers/overrides-helper.ts @@ -1,8 +1,3 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { NewArenaEvent } from "#events/battle-scene"; - -/** biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { OVERRIDES_COLOR } from "#app/constants/colors"; import type { BattleStyle, RandomTrainerOverride } from "#app/overrides"; import Overrides from "#app/overrides"; @@ -17,6 +12,7 @@ import { SpeciesId } from "#enums/species-id"; import { StatusEffect } from "#enums/status-effect"; import type { Unlockables } from "#enums/unlockables"; import { WeatherType } from "#enums/weather-type"; +import type { NewArenaEvent } from "#events/battle-scene"; import type { ModifierOverride } from "#modifiers/modifier-type"; import type { Variant } from "#sprites/variant"; import { GameManagerHelper } from "#test/test-utils/helpers/game-manager-helper"; diff --git a/test/test-utils/matchers/to-be-at-phase.ts b/test/test-utils/matchers/to-be-at-phase.ts index 7ff76fa0365..461264467d1 100644 --- a/test/test-utils/matchers/to-be-at-phase.ts +++ b/test/test-utils/matchers/to-be-at-phase.ts @@ -1,8 +1,5 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ import type { Phase } from "#app/phase"; import type { GameManager } from "#test/test-utils/game-manager"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc - import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; import type { PhaseString } from "#types/phase-types"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-ability-applied.ts b/test/test-utils/matchers/to-have-ability-applied.ts index 1ed74410de0..9168e1917d7 100644 --- a/test/test-utils/matchers/to-have-ability-applied.ts +++ b/test/test-utils/matchers/to-have-ability-applied.ts @@ -1,9 +1,6 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { Pokemon } from "#field/pokemon"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; import { AbilityId } from "#enums/ability-id"; +import type { Pokemon } from "#field/pokemon"; import { getEnumStr } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-arena-tag.ts b/test/test-utils/matchers/to-have-arena-tag.ts index a9d619686d1..f54a4365912 100644 --- a/test/test-utils/matchers/to-have-arena-tag.ts +++ b/test/test-utils/matchers/to-have-arena-tag.ts @@ -2,7 +2,6 @@ import type { ArenaTag, ArenaTagTypeMap } from "#data/arena-tag"; import { ArenaTagSide } from "#enums/arena-tag-side"; import type { ArenaTagType } from "#enums/arena-tag-type"; import type { OneOther } from "#test/@types/test-helpers"; -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type { GameManager } from "#test/test-utils/game-manager"; import { getOnelineDiffStr } from "#test/test-utils/string-utils"; import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; diff --git a/test/test-utils/matchers/to-have-battler-tag.ts b/test/test-utils/matchers/to-have-battler-tag.ts index aa86bf8b911..5f014247806 100644 --- a/test/test-utils/matchers/to-have-battler-tag.ts +++ b/test/test-utils/matchers/to-have-battler-tag.ts @@ -1,10 +1,7 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { Pokemon } from "#field/pokemon"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; import type { BattlerTagTypeMap } from "#data/battler-tags"; import { BattlerTagType } from "#enums/battler-tag-type"; +import type { Pokemon } from "#field/pokemon"; import type { OneOther } from "#test/@types/test-helpers"; import { getEnumStr, getOnelineDiffStr } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; diff --git a/test/test-utils/matchers/to-have-fainted.ts b/test/test-utils/matchers/to-have-fainted.ts index f3e84e7a425..82a3e4f0d35 100644 --- a/test/test-utils/matchers/to-have-fainted.ts +++ b/test/test-utils/matchers/to-have-fainted.ts @@ -1,5 +1,4 @@ import { getPokemonNameWithAffix } from "#app/messages"; -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type { Pokemon } from "#field/pokemon"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-full-hp.ts b/test/test-utils/matchers/to-have-full-hp.ts index 893bb647283..5b9c2124c52 100644 --- a/test/test-utils/matchers/to-have-full-hp.ts +++ b/test/test-utils/matchers/to-have-full-hp.ts @@ -1,5 +1,4 @@ import { getPokemonNameWithAffix } from "#app/messages"; -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type { Pokemon } from "#field/pokemon"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-hp.ts b/test/test-utils/matchers/to-have-hp.ts index e6463383ac2..95c0420f3fe 100644 --- a/test/test-utils/matchers/to-have-hp.ts +++ b/test/test-utils/matchers/to-have-hp.ts @@ -1,5 +1,4 @@ import { getPokemonNameWithAffix } from "#app/messages"; -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type { Pokemon } from "#field/pokemon"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-positional-tag.ts b/test/test-utils/matchers/to-have-positional-tag.ts index 21c9a0c034c..26e5374f717 100644 --- a/test/test-utils/matchers/to-have-positional-tag.ts +++ b/test/test-utils/matchers/to-have-positional-tag.ts @@ -1,10 +1,7 @@ -// biome-ignore-start lint/correctness/noUnusedImports: TSDoc -import type { GameManager } from "#test/test-utils/game-manager"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc - import type { toSerializedPosTag } from "#data/positional-tags/load-positional-tag"; import type { PositionalTagType } from "#enums/positional-tag-type"; import type { OneOther } from "#test/@types/test-helpers"; +import type { GameManager } from "#test/test-utils/game-manager"; import { getOnelineDiffStr } from "#test/test-utils/string-utils"; import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; import { toTitleCase } from "#utils/strings"; diff --git a/test/test-utils/matchers/to-have-shown-message.ts b/test/test-utils/matchers/to-have-shown-message.ts index bf5576ee630..4e19ddfccbf 100644 --- a/test/test-utils/matchers/to-have-shown-message.ts +++ b/test/test-utils/matchers/to-have-shown-message.ts @@ -1,4 +1,3 @@ -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type { GameManager } from "#test/test-utils/game-manager"; import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; import { truncateString } from "#utils/common"; diff --git a/test/test-utils/matchers/to-have-stat-stage.ts b/test/test-utils/matchers/to-have-stat-stage.ts index a9ae910aece..8b3f1072d63 100644 --- a/test/test-utils/matchers/to-have-stat-stage.ts +++ b/test/test-utils/matchers/to-have-stat-stage.ts @@ -1,9 +1,6 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ -import type { Pokemon } from "#field/pokemon"; -/** biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; import type { BattleStat } from "#enums/stat"; +import type { Pokemon } from "#field/pokemon"; import { getStatName } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-status-effect.ts b/test/test-utils/matchers/to-have-status-effect.ts index fa5f0346ebd..0e879494e3b 100644 --- a/test/test-utils/matchers/to-have-status-effect.ts +++ b/test/test-utils/matchers/to-have-status-effect.ts @@ -1,10 +1,7 @@ -/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */ -import type { Status } from "#data/status-effect"; -import type { Pokemon } from "#field/pokemon"; -/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; +import type { Status } from "#data/status-effect"; import { StatusEffect } from "#enums/status-effect"; +import type { Pokemon } from "#field/pokemon"; import { getEnumStr, getOnelineDiffStr } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-taken-damage.ts b/test/test-utils/matchers/to-have-taken-damage.ts index 55c163a2dc7..923f4d571a7 100644 --- a/test/test-utils/matchers/to-have-taken-damage.ts +++ b/test/test-utils/matchers/to-have-taken-damage.ts @@ -1,8 +1,5 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ -import type { Pokemon } from "#field/pokemon"; -/** biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; +import type { Pokemon } from "#field/pokemon"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import { toDmgValue } from "#utils/common"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-terrain.ts b/test/test-utils/matchers/to-have-terrain.ts index 9b6939168f0..a532b35cf86 100644 --- a/test/test-utils/matchers/to-have-terrain.ts +++ b/test/test-utils/matchers/to-have-terrain.ts @@ -1,8 +1,5 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ -import type { GameManager } from "#test/test-utils/game-manager"; -/** biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports */ - import { TerrainType } from "#app/data/terrain"; +import type { GameManager } from "#test/test-utils/game-manager"; import { getEnumStr } from "#test/test-utils/string-utils"; import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/matchers/to-have-used-move.ts b/test/test-utils/matchers/to-have-used-move.ts index 3697b3e0bc6..206557b96e3 100644 --- a/test/test-utils/matchers/to-have-used-move.ts +++ b/test/test-utils/matchers/to-have-used-move.ts @@ -1,9 +1,6 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ -import type { Pokemon } from "#field/pokemon"; -/** biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports */ - import { getPokemonNameWithAffix } from "#app/messages"; import type { MoveId } from "#enums/move-id"; +import type { Pokemon } from "#field/pokemon"; import { getOnelineDiffStr, getOrdinal } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import type { TurnMove } from "#types/turn-move"; diff --git a/test/test-utils/matchers/to-have-used-pp.ts b/test/test-utils/matchers/to-have-used-pp.ts index bdbe4e140ff..4d11d2b5b6d 100644 --- a/test/test-utils/matchers/to-have-used-pp.ts +++ b/test/test-utils/matchers/to-have-used-pp.ts @@ -1,10 +1,7 @@ -// biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports -import type { Pokemon } from "#field/pokemon"; -// biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports - import { getPokemonNameWithAffix } from "#app/messages"; import Overrides from "#app/overrides"; import { MoveId } from "#enums/move-id"; +import type { Pokemon } from "#field/pokemon"; import { getEnumStr } from "#test/test-utils/string-utils"; import { isPokemonInstance, receivedStr } from "#test/test-utils/test-utils"; import { coerceArray } from "#utils/array"; diff --git a/test/test-utils/matchers/to-have-weather.ts b/test/test-utils/matchers/to-have-weather.ts index 7604cd5f890..e520fcdfe4e 100644 --- a/test/test-utils/matchers/to-have-weather.ts +++ b/test/test-utils/matchers/to-have-weather.ts @@ -1,8 +1,5 @@ -/** biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports */ -import type { GameManager } from "#test/test-utils/game-manager"; -/** biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports */ - import { WeatherType } from "#enums/weather-type"; +import type { GameManager } from "#test/test-utils/game-manager"; import { isGameManagerInstance, receivedStr } from "#test/test-utils/test-utils"; import { toTitleCase } from "#utils/strings"; import type { MatcherState, SyncExpectationResult } from "@vitest/expect"; diff --git a/test/test-utils/setup/test-end-log.ts b/test/test-utils/setup/test-end-log.ts index 7f92081e0e1..72c875c5e85 100644 --- a/test/test-utils/setup/test-end-log.ts +++ b/test/test-utils/setup/test-end-log.ts @@ -5,7 +5,6 @@ * @module */ -// biome-ignore lint/correctness/noUnusedImports: TSDoc import type CustomDefaultReporter from "#test/test-utils/reporters/custom-default-reporter"; import { join, relative } from "path"; import chalk from "chalk";