Commit Graph

12 Commits

Author SHA1 Message Date
Guangcong Luo
a10821ab8b
Update to ESLint 9 (#2326)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
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.

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 (except in ES3
  code). We otherwise now consistently use template strings for this.
2025-02-25 20:05:32 -08: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
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
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
dot-Comfey
04ed96ba17
Use only current line in tab-completing commands (#2279)
* Use only current line in tab-completing commands

https://www.smogon.com/forums/threads/bug-report.3749269/

At this point, it's a bit more than a bug fix.

* Update client-chat.js

Changed stuff that npm run test did not like.

* Restore subcommand behavior
2024-09-02 23:50:22 -05:00
Mia
21a896d065 Tabcomplete: Send /crq cmdsearch to the current room
This is so the command knows if you have access to that command in the current room.
2024-08-10 02:38:17 -05:00
Mia
209a3f9106 Prevent infinite recursion in command tabbing 2024-08-10 02:02:14 -05:00
Mia
3410986450 Fix tabcompleting names in commands 2024-08-03 15:36:13 -05:00
Mia
6a1aab2818
Support tabcompleting commands (#2272) 2024-08-03 14:43:56 -05:00
Mia
aeb6815af5 Re-add COIL 2024-07-20 13:32:07 -05:00
Karthik
323bbe80f0
Improve April Fool's sprite support (#2189)
* Improve April Fool's sprite support

* support shiny afd sprites

* lint
2023-12-17 17:11:27 -07:00
Guangcong Luo
5d41f3ec93
Reorganize directories (#2187)
Files meant to be served have been moved into
`play.pokemonshowdown.com/` and `pokemonshowdown.com/`.

We now have three directories for the three subdomains handled by this
repo:

- `pokemonshowdown.com/`
- `play.pokemonshowdown.com/`
- `replay.pokemonshowdown.com/`

Naming them after the subdomains will make it much easier to tell where
the files for each go.

The diff is probably useless; it'll be easier if you just look at the
new tree:
https://github.com/smogon/pokemon-showdown-client/tree/reorganize
2023-11-16 03:39:29 -08:00