From 917016414069abe62d789bcfbbedf6da072625e7 Mon Sep 17 00:00:00 2001 From: Kirk Scheibelhut Date: Thu, 1 Aug 2024 16:47:03 -0700 Subject: [PATCH] lint --- import | 6 ++---- randoms/src/gen8.ts | 2 +- randoms/src/gen9.ts | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/import b/import index 9727e029..f098555d 100755 --- a/import +++ b/import @@ -893,10 +893,8 @@ const changes = async (where, last, now, repo) => ({ formats.push(format); } fs.writeFileSync(path.resolve(sim, 'config/formats.ts'), - `export const Formats: import('../sim/dex-formats').FormatList = ${inspect(formats).replaceAll( - 'trunc: [Function: trunc]', - 'trunc: Math.trunc' - )};\n`); + `export const Formats: import('../sim/dex-formats').FormatList = ${ + inspect(formats).replaceAll('trunc: [Function: trunc]', 'trunc: Math.trunc')};\n`); for (const id in modded) { fs.writeFileSync(path.resolve(mods, `src/${id}/formats.ts`), `/* eslint-disable */\n\nexport const Formats = ${inspect(modded[id])};\n`); diff --git a/randoms/src/gen8.ts b/randoms/src/gen8.ts index fad04d0c..fe25bd57 100644 --- a/randoms/src/gen8.ts +++ b/randoms/src/gen8.ts @@ -262,7 +262,7 @@ export class RandomGen8Teams { getTeam(options?: PlayerOptions | null): PokemonSet[] { const generatorName = ( typeof this.format.team === 'string' && this.format.team.startsWith('random') - ) ? this.format.team + 'Team' : ''; + ) ? this.format.team + 'Team' : ''; // @ts-ignore return this[generatorName || 'randomTeam'](options); } diff --git a/randoms/src/gen9.ts b/randoms/src/gen9.ts index c0a18f5b..c9827431 100644 --- a/randoms/src/gen9.ts +++ b/randoms/src/gen9.ts @@ -267,7 +267,7 @@ export class RandomTeams { getTeam(options?: PlayerOptions | null): PokemonSet[] { const generatorName = ( typeof this.format.team === 'string' && this.format.team.startsWith('random') - ) ? this.format.team + 'Team' : ''; + ) ? this.format.team + 'Team' : ''; // @ts-ignore return this[generatorName || 'randomTeam'](options); }