Commit Graph

10 Commits

Author SHA1 Message Date
Guangcong Luo
f9ec0b1f43 Never use globals in data/ or sim/
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
These are all API bugs, but I also caught some sim bugs:

- Bio Mech Mons (the mod) was using `Dex` when it should have been using
  `this.dex`
- Data Preview (the rule) was using `Dex` when it should have been using
  `this.dex`
- Gen 9 SSB was using `Dex.mod('base')` when it should have been using
  `.mod('gen9')`

This will be enforced via ESLint going forward.
2026-07-13 18:26:46 -07:00
livid washed
1ee0986f67 Advertise Ladder Achievements Project for the Randomized Spotlight (#11577)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-11-18 17:36:22 -07:00
livid washed
e06072ed8b Add November 2025 Randomized Format Spotlight (#11549)
* Implement November 2025 Randomized format Spotlight

* Shuffle moves in gen 8, like in other gens

* Remove console.log lines

* simplify code a lil

* lint
2025-11-01 23:28:23 -06:00
Slayer95
07b90b13cf Refactor Team Preview to avoid code duplication (#11237)
DRY is particularly relevant because of the hardcodes,
which are unlikely to be kept in sync in OM code.
2025-07-12 20:57:05 -06:00
Karthik Bandagonda
d3d834c91a Allow Picked Team Size to be used without Team Preview (#11224)
* Add Pick Team rule

* Make Team Preview and Pick Team mutually exclusive

* Automatically apply rule if Picked Team Size exists without preview

* Remove mutually exclusive part

* Move teamsize to start action
2025-07-01 01:20:57 -06:00
HiZo
3c2a45c68c Battles: Show custom rules in log (#11047)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-25 20:58:41 -07:00
Guangcong Luo
78439b4a02 Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00
Guangcong Luo
8e83905363 Improve code readability (#10374)
This is just a bunch of random changes to improve code readability.

The biggest change is `battle#go` -> `battle#turnLoop`.
2024-07-01 17:08:08 -07:00
livid washed
10f2414e01 Randomized Format Spotlight: Fix clauses and visual bugs (#9629) 2023-07-03 19:21:06 -04:00
livid washed
7046e453a9 Add July 2023 Randomized Format Spotlight (#9622)
* Add July 2023 Randomized Format Spotlight

* Update data/mods/randomroulette/scripts.ts

Co-authored-by: AnnikaCodes <annika@worldbrightening.net>

* Update config/formats.ts

---------

Co-authored-by: AnnikaCodes <annika@worldbrightening.net>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-07-01 01:20:19 -06:00