Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Aug 1, 2024
1 parent d814878 commit 9170164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions import
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion randoms/src/gen8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion randoms/src/gen9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9170164

Please sign in to comment.