Skip to content

Commit 66c90eb

Browse files
committed
Make sure CI correctly stops warnings
`full-test-ci` doesn't run on push to master, only `full-test`, so both need the `--no-warnings` eslint flag.
1 parent 73a04cd commit 66c90eb

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

data/random-battles/gen6/teams.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,9 @@ export class RandomGen6Teams extends RandomGen7Teams {
889889
};
890890
}
891891

892-
override randomFactorySets: { [format: string]: { [species: string]: BattleFactorySpecies } } = require('./factory-sets.json');
892+
override randomFactorySets: {
893+
[format: string]: { [species: string]: BattleFactorySpecies },
894+
} = require('./factory-sets.json');
893895

894896
override randomFactorySet(
895897
species: Species,

data/random-battles/gen7/teams.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,9 @@ export class RandomGen7Teams extends RandomGen8Teams {
13821382
return pokemon;
13831383
}
13841384

1385-
override randomFactorySets: { [format: string]: { [species: string]: BattleFactorySpecies } } = require('./factory-sets.json');
1385+
override randomFactorySets: {
1386+
[format: string]: { [species: string]: BattleFactorySpecies },
1387+
} = require('./factory-sets.json');
13861388

13871389
override randomFactorySet(
13881390
species: Species, teamData: RandomTeamsTypes.FactoryTeamDetails, tier: string

data/random-battles/gen7letsgo/teams.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ export class RandomLetsGoTeams extends RandomGen8Teams {
116116

117117
return { cull: false };
118118
}
119-
override randomSet(species: string | Species, teamDetails: RandomTeamsTypes.TeamDetails = {}): RandomTeamsTypes.RandomSet {
119+
override randomSet(
120+
species: string | Species, teamDetails: RandomTeamsTypes.TeamDetails = {}
121+
): RandomTeamsTypes.RandomSet {
120122
species = this.dex.species.get(species);
121123
let forme = species.name;
122124

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"pretest": "npm run lint",
4545
"test": "mocha",
4646
"posttest": "npm run tsc",
47-
"full-test": "npm run lint && npm run tsc && mocha --timeout 8000 --forbid-only -g \".*\" && npm run test-npm",
47+
"full-test": "eslint --max-warnings 0 && npm run tsc && mocha --timeout 8000 --forbid-only -g \".*\" && npm run test-npm",
4848
"full-test-ci": "eslint --max-warnings 0 && tsc && (([ \"$SKIPSIMTESTS\" = true ] && mocha --timeout 8000 --forbid-only -g \".*\" --exclude \"test/{sim,random-battles}/**\") || mocha --timeout 8000 --forbid-only -g \".*\") && npm run test-npm",
4949
"postinstall": "npm run build postinstall"
5050
},

sim/tools/exhaustive-runner.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,9 @@ class CoordinatedPlayerAI extends RandomPlayerAI {
426426
return super.chooseMove(active, moves);
427427
}
428428

429-
protected override chooseSwitch(active: AnyObject | undefined, switches: { slot: number, pokemon: AnyObject }[]): number {
429+
protected override chooseSwitch(
430+
active: AnyObject | undefined, switches: { slot: number, pokemon: AnyObject }[]
431+
): number {
430432
this.markUsedIfGmax(active);
431433
return this.choosePokemon(switches) || super.chooseSwitch(active, switches);
432434
}

0 commit comments

Comments
 (0)