revert overrides and add it to biome's ignored files

This commit is contained in:
Sirz Benjie 2025-03-08 07:52:23 -06:00
parent 2d8134b9df
commit 41f6d0ce88
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 17 additions and 23 deletions

View File

@ -15,6 +15,8 @@
}, },
"files": { "files": {
"ignoreUnknown": true, "ignoreUnknown": true,
// Adding folders to the ignore list is GREAT for performance because it prevents biome from descending into them
// and having to verify whether each individual file is ignored
"ignore": [ "ignore": [
"**/*.d.ts", "**/*.d.ts",
"dist/*", "dist/*",
@ -26,6 +28,7 @@
".vscode/*", ".vscode/*",
"*.css", // TODO? "*.css", // TODO?
"*.html", // TODO? "*.html", // TODO?
"src/overrides.ts",
// TODO: these files are too big and complex, ignore them until their respective refactors // TODO: these files are too big and complex, ignore them until their respective refactors
"src/data/moves/move.ts", "src/data/moves/move.ts",
"src/data/ability.ts", "src/data/ability.ts",

View File

@ -1,31 +1,22 @@
import type { PokeballCounts } from "#app/battle-scene"; /* eslint-disable @typescript-eslint/consistent-type-imports */
import { EvolutionItem } from "#app/data/balance/pokemon-evolutions"; import { type PokeballCounts } from "#app/battle-scene";
import type { Gender } from "#app/data/gender"; import { Gender } from "#app/data/gender";
import { FormChangeItem } from "#app/data/pokemon-forms"; import { Variant } from "#app/data/variant";
import type { Variant } from "#app/data/variant"; import { type ModifierOverride } from "#app/modifier/modifier-type";
import type { ModifierOverride } from "#app/modifier/modifier-type"; import { Unlockables } from "#app/system/unlockables";
import type { Unlockables } from "#app/system/unlockables";
import { Abilities } from "#enums/abilities"; import { Abilities } from "#enums/abilities";
import { BerryType } from "#enums/berry-type";
import { Biome } from "#enums/biome"; import { Biome } from "#enums/biome";
import type { EggTier } from "#enums/egg-type"; import { EggTier } from "#enums/egg-type";
import type { Moves } from "#enums/moves"; import { Moves } from "#enums/moves";
import type { MysteryEncounterTier } from "#enums/mystery-encounter-tier"; import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
import type { MysteryEncounterType } from "#enums/mystery-encounter-type"; import { MysteryEncounterType } from "#enums/mystery-encounter-type";
import { PokeballType } from "#enums/pokeball"; import { PokeballType } from "#enums/pokeball";
import { PokemonType } from "#enums/pokemon-type"; import { Species } from "#enums/species";
import type { Species } from "#enums/species";
import { Stat } from "#enums/stat";
import { StatusEffect } from "#enums/status-effect"; import { StatusEffect } from "#enums/status-effect";
import type { TimeOfDay } from "#enums/time-of-day"; import { TimeOfDay } from "#enums/time-of-day";
import type { VariantTier } from "#enums/variant-tier"; import { VariantTier } from "#enums/variant-tier";
import { WeatherType } from "#enums/weather-type"; import { WeatherType } from "#enums/weather-type";
/**
* This comment block exists to prevent IDEs from automatically removing unused imports
* {@linkcode BerryType}, {@linkcode EvolutionItem}, {@linkcode FormChangeItem}
* {@linkcode Stat}, {@linkcode PokemonType}
*/
/** /**
* Overrides that are using when testing different in game situations * Overrides that are using when testing different in game situations
* *
@ -260,7 +251,7 @@ export const defaultOverrides = new DefaultOverrides();
export default { export default {
...defaultOverrides, ...defaultOverrides,
...overrides, ...overrides
} satisfies InstanceType<typeof DefaultOverrides>; } satisfies InstanceType<typeof DefaultOverrides>;
export type BattleStyle = "double" | "single" | "even-doubles" | "odd-doubles"; export type BattleStyle = "double" | "single" | "even-doubles" | "odd-doubles";