Commit Graph

8 Commits

Author SHA1 Message Date
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
Mia
f190b1c8a7 Add a chat plugin for storing teams remotely (#9513) 2023-09-24 11:22:26 -05:00
Mia
35c7c62566 Fix Postgres config loading 2022-12-22 15:57:05 -06:00
Mia
0860a6e036 Remove accidental debug print 2022-07-28 03:10:12 -05:00
Mia
a0963b8f32 Postgres: Ensure table version is always inserted 2022-07-28 00:12:23 -05:00
Mia
922a7bf8a9 Postgres: Fix bugs in migration API 2022-07-27 23:57:31 -05:00
Mia
67fcc14bf4 Rooms: Ensure battles save all data correctly (#8851)
* Rooms: Ensure battles save all data correctly

* Standardize migration code for future use
2022-07-27 21:08:19 -07:00
Mia
ec4cb6a6fa Support persisting battles in a Postgres database (#8442) 2022-07-22 18:07:10 -07:00