Merge branch 'beta' into ratpack
5
.github/workflows/linting.yml
vendored
@ -41,4 +41,7 @@ jobs:
|
||||
run: pnpm biome-ci
|
||||
|
||||
- name: Check dependencies with depcruise
|
||||
run: pnpm depcruise
|
||||
run: pnpm depcruise
|
||||
|
||||
- name: Lint with ls-lint
|
||||
run: pnpm ls-lint
|
27
.ls-lint.yml
Normal file
@ -0,0 +1,27 @@
|
||||
# Base settings to use
|
||||
# Note that the `_cfg` key isn't part of ls-lint's configuration, it's just a YAML anchor for reuse.
|
||||
_cfg: &cfg
|
||||
.ps1: kebab-case
|
||||
.ts: kebab-case
|
||||
.js: kebab-case
|
||||
.*.ts: kebab-case
|
||||
.*.js: kebab-case
|
||||
.dir: kebab-case
|
||||
.py: snake_case # python files should always use snake_case
|
||||
|
||||
ls:
|
||||
<<: *cfg
|
||||
src:
|
||||
<<: *cfg
|
||||
.dir: kebab-case | regex:@types
|
||||
.js: exists:0
|
||||
src/system/version-migration/versions:
|
||||
.ts: snake_case
|
||||
<<: *cfg
|
||||
|
||||
ignore:
|
||||
- node_modules
|
||||
- .vscode
|
||||
- .github
|
||||
- .git
|
||||
- public
|
@ -104,7 +104,7 @@ Most non-trivial changes (*especially bug fixes*) should come along with new tes
|
||||
- Test edge cases. A good strategy is to think of edge cases beforehand and create tests for them using `it.todo`. Once the edge case has been handled, you can remove the `todo` marker.
|
||||
|
||||
## 😈 Development Save File
|
||||
> Some issues may require you to have unlocks on your save file which go beyond normal overrides. For this reason, the repository contains a [save file](../test/testUtils/saves/everything.psrv) with _everything_ unlocked (even ones not legitimately obtainable, like unimplemented variant shinies).
|
||||
> Some issues may require you to have unlocks on your save file which go beyond normal overrides. For this reason, the repository contains a [save file](../test/test-utils/saves/everything.psrv) with _everything_ unlocked (even ones not legitimately obtainable, like unimplemented variant shinies).
|
||||
|
||||
1. Start the game up locally and navigate to `Menu -> Manage Data -> Import Data`
|
||||
2. Select [everything.prsv](test/testUtils/saves/everything.prsv) (`test/testUtils/saves/everything.prsv`) and confirm.
|
||||
2. Select [everything.prsv](test/test-utils/saves/everything.prsv) (`test/test-utils/saves/everything.prsv`) and confirm.
|
||||
|
@ -139,7 +139,7 @@
|
||||
"useAdjacentGetterSetter": "error",
|
||||
"noConstantBinaryExpression": "error",
|
||||
"noTsIgnore": "error",
|
||||
"noAwaitInLoop": "warn",
|
||||
"noAwaitInLoop": "off",
|
||||
"useJsonImportAttribute": "off", // "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'. ts(2823)"
|
||||
"useIndexOf": "error",
|
||||
"useObjectSpread": "error",
|
||||
|
2
global.d.ts
vendored
@ -8,7 +8,7 @@ declare global {
|
||||
* Can technically be undefined/null but for ease of use we are going to assume it is always defined.
|
||||
* Used to load i18n files exclusively.
|
||||
*
|
||||
* To set up your own server in a test see `game_data.test.ts`
|
||||
* To set up your own server in a test see `game-data.test.ts`
|
||||
*/
|
||||
var server: SetupServerApi;
|
||||
}
|
||||
|
@ -1,11 +1,13 @@
|
||||
pre-commit:
|
||||
skip:
|
||||
- merge
|
||||
- rebase
|
||||
commands:
|
||||
biome-lint:
|
||||
run: pnpm exec biome check --write --reporter=summary --staged --no-errors-on-unmatched
|
||||
stage_fixed: true
|
||||
skip:
|
||||
- merge
|
||||
- rebase
|
||||
ls-lint:
|
||||
run: pnpm exec ls-lint
|
||||
|
||||
post-merge:
|
||||
commands:
|
||||
|
@ -28,6 +28,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.0.0",
|
||||
"@ls-lint/ls-lint": "2.3.1",
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@types/node": "^22.16.3",
|
||||
"@vitest/coverage-istanbul": "^3.2.4",
|
||||
|
@ -45,6 +45,9 @@ importers:
|
||||
'@biomejs/biome':
|
||||
specifier: 2.0.0
|
||||
version: 2.0.0
|
||||
'@ls-lint/ls-lint':
|
||||
specifier: 2.3.1
|
||||
version: 2.3.1
|
||||
'@types/jsdom':
|
||||
specifier: ^21.1.7
|
||||
version: 21.1.7
|
||||
@ -565,6 +568,12 @@ packages:
|
||||
'@jridgewell/trace-mapping@0.3.29':
|
||||
resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==}
|
||||
|
||||
'@ls-lint/ls-lint@2.3.1':
|
||||
resolution: {integrity: sha512-vPe6IDByQnQRTxcAYjTxrmga/tSIui50VBFTB5KIJWY3OOFmxE2VtymjeSEfQfiMbhZV/ZPAqYy2lt8pZFQ0Rw==}
|
||||
cpu: [x64, arm64, s390x, ppc64le]
|
||||
os: [darwin, linux, win32]
|
||||
hasBin: true
|
||||
|
||||
'@material/material-color-utilities@0.2.7':
|
||||
resolution: {integrity: sha512-0FCeqG6WvK4/Cc06F/xXMd/pv4FeisI0c1tUpBbfhA2n9Y8eZEv4Karjbmf2ZqQCPUWMrGp8A571tCjizxoTiQ==}
|
||||
|
||||
@ -2452,6 +2461,8 @@ snapshots:
|
||||
'@jridgewell/resolve-uri': 3.1.2
|
||||
'@jridgewell/sourcemap-codec': 1.5.4
|
||||
|
||||
'@ls-lint/ls-lint@2.3.1': {}
|
||||
|
||||
'@material/material-color-utilities@0.2.7': {}
|
||||
|
||||
'@mswjs/interceptors@0.39.2':
|
||||
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 558 B |
Before Width: | Height: | Size: 772 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 779 B After Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 943 B After Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 309 B |
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 788 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 784 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 785 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 670 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 960 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 787 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 784 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 969 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 768 B After Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 776 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 398 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 1022 B After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 788 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 603 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 1022 B After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 931 B After Width: | Height: | Size: 396 B |