Commit Graph

7 Commits

Author SHA1 Message Date
Guangcong Luo
d84727f101
Update GitHub Actions config
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This makes it better match the server config.
2025-04-12 18:14:30 -07:00
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
Guangcong Luo
2cd13d9de2 Remove babel-cli dependency
At this point, we might as well use babel-core directly.

New system supports source maps for `battledata` and `graphics`! Woo!

It also logs the compile step.
2021-04-13 14:06:25 -07:00
Guangcong Luo
8a0caf0410 Correct TS line numbers in GitHub Actions 2020-03-23 22:57:46 -07:00
Kirk Scheibelhut
9714d936a5
Begin adding sprite tests (#1476) 2020-03-15 22:34:44 -07:00
Guangcong Luo
7ceb394796
Test pull requests with GitHub Actions 2020-03-07 20:31:09 -08:00
Guangcong Luo
796091b381 Try GitHub Actions again 2020-03-07 14:01:09 -08:00