Commit Graph

6062 Commits

Author SHA1 Message Date
Guangcong Luo
81aef4691e Update eslint-ps-standard.mjs 2025-02-25 18:16:48 -08:00
Guangcong Luo
7304f1d46b Prettier-style bracket spacing 2025-02-25 15:54:24 -08:00
Guangcong Luo
b410a4b128 Sync eslint config with server 2025-02-25 01:11:32 -08:00
Guangcong Luo
90ac5c0c72 Update config types 2025-02-25 01:09:10 -08:00
Guangcong Luo
58a3366d75 Fix an ugly nested ternary 2025-02-22 13:28:38 -08:00
Guangcong Luo
2bd7e45081 Abstract out standard config
This also fixes that we weren't extending recommendedTypeChecked, which
meant a lot of unnecessary type assertions getting cleaned up.
2025-02-22 13:19:39 -08:00
Guangcong Luo
10b95d300e More strictness (mainly for number conversion) 2025-02-22 11:33:10 -08:00
Guangcong Luo
3fc82b9947 Slightly more strictness 2025-02-22 10:21:52 -08:00
Guangcong Luo
ad5f389db5 Enable a few more lint rules 2025-02-22 01:29:17 -08:00
Guangcong Luo
7c21d0f504 Support ESLint caching
Also rearrange the config a little.
2025-02-22 01:07:06 -08:00
Guangcong Luo
8c80d8a33a Update scripts for new linting system 2025-02-22 00:46:13 -08:00
Guangcong Luo
2c3e574c3d More strictness 2025-02-22 00:42:28 -08:00
Guangcong Luo
4609de6a0e Update TypeScript + ESLint
This finally removes the tslint dependency and switches to eslint.

There are a lot of other changes here, too, to bring the codebase up to
server standards. TSLint never had much in the way of indentation
enforcement.

Not very happy about eslint splitting itself up over 6 dependencies,
or its documentation over three websites, nor how poorly documented the
new flat config is, but I mean, eslint's gonna eslint. Customizing
would be even harder if we tried to use Biome or something. They mostly
seem to go full Prettier.
2025-02-21 17:47:01 -08:00
Guangcong Luo
3d4de88706 Correct Snowscape weather name
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-02-19 16:36:54 -08:00
Guangcong Luo
3f23c5a738 Refactor TypeScript files to modules
Due to the specific way we implement everything, none of these files
are actually modules. But thanks to `babel-plugin-remove-import-export`,
there's no reason why the code can't be written as modules.

I wouldn't say I like modules, but it's what's popular and it's what
people are used to and it's what tooling is built around.
2025-02-19 14:46:12 -08:00
Guangcong Luo
51657d5008 Increase TypeScript strictness
(Now with `noImplicitOverride`)
2025-02-19 00:47:33 -08:00
Guangcong Luo
a40b4b37c8 Preact: Fix bugs with dragging tabs
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-02-18 19:19:28 -08:00
Marty
38d29ff660 Update Pokemon icons sheet
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-02-11 20:48:03 -05:00
Kris Johnson
dd3dc08a6d Battle Animations: Fix nature check because natures don't have a get function for some reason
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-01-11 12:53:45 -07:00
Kris Johnson
fac8296675
Battle Animations: Add support for natures as effect tags 2025-01-11 12:40:32 -07:00
bingingem
ec3e54241c
Staff FAQ: Fix missed Global Admin symbol updates (#2310)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-12-20 07:39:26 -06:00
Guangcong Luo
f4baa24125 Fix <psicon> in Replays
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
Apparently Caja CSS isn't loaded in Replays? Bypassed that dependency
for <psicon>.
2024-12-04 04:52:12 +00:00
Marty
565a057a5d Update Pokemon icons sheet
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-12-01 21:48:12 -05:00
CarlosGuzman01
72055f2d6e
Update credits link for artist Yilx (#2307)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-11-29 17:08:18 -06:00
CarlosGuzman01
3e855da7ae
Update credits link for artist Seiryuuden (#2306) 2024-11-29 16:05:16 -06:00
Alex "Mathy
a77ed2a881
Support blank target in -item message (#2302)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
* Support blank target in -item message

* TS fix

* TS fix again
2024-11-27 13:08:49 -07:00
Alex "Mathy
d43e960729
Fix Morpeko forme locking (#2303) 2024-11-27 13:05:56 -07:00
Kris Johnson
e4e95124f2
News: Add support for minisprites (#2300)
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
* News: Add support for minisprites

* SANITIZE THE HTML.
2024-11-26 13:37:35 -06:00
Kris Johnson
72d1216e19 Triples: Make Shift button an actual button
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-11-23 22:12:49 -07:00
HiZo
e4c54acc92
Display exact HP when using Exact HP Mod (#2280)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
* Display information current and max HP when using Exact HP Mod

* why doesnt lint catch this smh
2024-11-18 16:10:40 -07:00
Sean
c32f5e261e
ADV: Update move viability categories (#2288)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
* gen 3 useful + useless moves update

* moveIsNotUseless: disambiguate OR operation
2024-11-12 18:31:15 -07:00
shrianshChari
5706935740
Modify animation for Stone Axe (#2299) 2024-11-12 18:30:17 -07:00
Christopher Monsanto
6e29f5df66 Chat: different wording for suspect test eligible
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
2024-11-12 09:25:06 -05:00
shrianshChari
9a9728b139
Modify animation for Spirit Break (#2298)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-11-08 10:43:11 -07:00
Alex "Mathy
1ff6525035
Account for Morpeko form permanence (#2297)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
* Account for Morpeko form permanence

* Update play.pokemonshowdown.com/src/battle.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-11-06 22:45:34 -07:00
Kris Johnson
878464aec7
/rank: Fix colspan spacing
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
2024-11-05 16:16:40 -07:00
shrianshChari
acd0d999bb
Add animation for Mighty Cleave (#2295)
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
* Mighty Cleave animation first draft

* Give the slash a big streak
2024-11-04 22:47:07 -07:00
Kris Johnson
06c097fe8a Teambuilder: Remove ADV RU hardcode 2024-11-04 22:38:08 -07:00
Mia
1221756294 Display suspect test eligibility in /rank
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-11-01 13:31:22 -05:00
Marty-D
cd9f9508f8
Teambuilder: Use battle sprites for dex sprite-less Pokemon
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-10-27 09:06:47 -04:00
shrianshChari
41228a5942
Add animation for Thunderclap (#2294)
Some checks are pending
Node.js CI / build (14.x) (push) Waiting to run
* Add animation for Thunderclap

* Add sparks before Thunderclap bolt

* Satisfy linter
2024-10-26 08:59:30 -06:00
shrianshChari
c81a75014e
Add animation for Tera Starstorm (#2292)
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-10-23 13:01:31 -06:00
shrianshChari
aeecc55b3e
Create Burning Bulwark animation (#2293) 2024-10-23 13:01:02 -06:00
Guangcong Luo
8737e397ae Update Google log-in API
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
Previous one was deprecated and being phased out.
2024-10-18 02:08:27 +00:00
Guangcong Luo
c1ced5dbe3 Update Privacy Policy for new ad company 2024-10-18 00:29:44 +00:00
Kris Johnson
d8eac3b69a
Fix Aegislash's Stance Change animation
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2024-10-11 17:04:25 -06:00
Kris Johnson
f8b890e543 Remove references to the Section Leader rank 2024-10-01 21:27:15 -06:00
Kris Johnson
95bd7974b3 Add teambuilder support for 35 Pokes 2024-10-01 10:44:06 -06:00
Glaze
2cc0569051
Update ladder names (#2282)
* Update VGC names

* Remove deprecated metagames

* Update ladder.php

* Update users.php

* Update pokemonshowdown.com/users.php

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-09-30 17:33:57 -06:00
HiZo
9825f5e886
Fix Quark Drive/Protosynthesis visual bug when losing ability (#2253) 2024-09-30 08:29:10 -06:00