[Dev] Enable linting of move.ts and update Biome to 2.3.2

https://github.com/pagefaultgames/pokerogue/pull/6688

* Update Biome to 2.2.7 and enable linting of `move.ts`

* Apply safe fixes

* Apply unsafe fixes

* Apply `noUnusedFunctionParameters`

* Update submodules to correct commit

* Apply Biome after merge

* Update Biome to 2.3.2

* Fix formatting of `initMoves`

* Fix a bit more formatting

* Apply Biome
This commit is contained in:
NightKev 2025-11-27 20:38:02 -06:00 committed by GitHub
parent 8381fa16fd
commit d0ddcaa7a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2480 additions and 1707 deletions

View File

@ -5,7 +5,7 @@
*/
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
@ -35,8 +35,6 @@
// TODO: lint css and html?
"!**/*.css",
"!**/*.html",
// TODO: enable linting this file
"!**/src/data/moves/move.ts",
// this file is too big
"!**/src/data/balance/tm-species-map.ts"
]
@ -204,7 +202,8 @@
"noDocumentCookie": "off", // Firefox has minimal support for the "Cookie Store API"
"noConstantBinaryExpressions": "error",
"noTsIgnore": "error",
"useIterableCallbackReturn": "warn" // TODO: Refactor and change to error
"useIterableCallbackReturn": "warn", // TODO: Refactor and change to error
"noNonNullAssertedOptionalChain": "warn" // TODO: Refactor and change to error
},
"complexity": {
"useWhile": "error",
@ -233,7 +232,6 @@
"options": { "max": 7 }
},
"noShadow": "warn", // TODO: refactor and make "error"
"noNonNullAssertedOptionalChain": "warn", // TODO: refactor and make "error"
"noDuplicateDependencies": "error",
"noImportCycles": "error",
// TODO: Change to error once promises are used properly

View File

@ -39,7 +39,7 @@
"update-submodules:remote": "pnpm update-locales:remote && pnpm update-assets:remote"
},
"devDependencies": {
"@biomejs/biome": "2.2.5",
"@biomejs/biome": "2.3.2",
"@ls-lint/ls-lint": "2.3.1",
"@types/crypto-js": "^4.2.0",
"@types/jsdom": "^27.0.0",

View File

@ -46,8 +46,8 @@ importers:
version: 1.80.16(graphology-types@0.24.8)
devDependencies:
'@biomejs/biome':
specifier: 2.2.5
version: 2.2.5
specifier: 2.3.2
version: 2.3.2
'@ls-lint/ls-lint':
specifier: 2.3.1
version: 2.3.1
@ -200,55 +200,55 @@ packages:
resolution: {integrity: sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==}
engines: {node: '>=6.9.0'}
'@biomejs/biome@2.2.5':
resolution: {integrity: sha512-zcIi+163Rc3HtyHbEO7CjeHq8DjQRs40HsGbW6vx2WI0tg8mYQOPouhvHSyEnCBAorfYNnKdR64/IxO7xQ5faw==}
'@biomejs/biome@2.3.2':
resolution: {integrity: sha512-8e9tzamuDycx7fdrcJ/F/GDZ8SYukc5ud6tDicjjFqURKYFSWMl0H0iXNXZEGmcmNUmABgGuHThPykcM41INgg==}
engines: {node: '>=14.21.3'}
hasBin: true
'@biomejs/cli-darwin-arm64@2.2.5':
resolution: {integrity: sha512-MYT+nZ38wEIWVcL5xLyOhYQQ7nlWD0b/4mgATW2c8dvq7R4OQjt/XGXFkXrmtWmQofaIM14L7V8qIz/M+bx5QQ==}
'@biomejs/cli-darwin-arm64@2.3.2':
resolution: {integrity: sha512-4LECm4kc3If0JISai4c3KWQzukoUdpxy4fRzlrPcrdMSRFksR9ZoXK7JBcPuLBmd2SoT4/d7CQS33VnZpgBjew==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [darwin]
'@biomejs/cli-darwin-x64@2.2.5':
resolution: {integrity: sha512-FLIEl73fv0R7dI10EnEiZLw+IMz3mWLnF95ASDI0kbx6DDLJjWxE5JxxBfmG+udz1hIDd3fr5wsuP7nwuTRdAg==}
'@biomejs/cli-darwin-x64@2.3.2':
resolution: {integrity: sha512-jNMnfwHT4N3wi+ypRfMTjLGnDmKYGzxVr1EYAPBcauRcDnICFXN81wD6wxJcSUrLynoyyYCdfW6vJHS/IAoTDA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [darwin]
'@biomejs/cli-linux-arm64-musl@2.2.5':
resolution: {integrity: sha512-5Ov2wgAFwqDvQiESnu7b9ufD1faRa+40uwrohgBopeY84El2TnBDoMNXx6iuQdreoFGjwW8vH6k68G21EpNERw==}
'@biomejs/cli-linux-arm64-musl@2.3.2':
resolution: {integrity: sha512-2Zz4usDG1GTTPQnliIeNx6eVGGP2ry5vE/v39nT73a3cKN6t5H5XxjcEoZZh62uVZvED7hXXikclvI64vZkYqw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-arm64@2.2.5':
resolution: {integrity: sha512-5DjiiDfHqGgR2MS9D+AZ8kOfrzTGqLKywn8hoXpXXlJXIECGQ32t+gt/uiS2XyGBM2XQhR6ztUvbjZWeccFMoQ==}
'@biomejs/cli-linux-arm64@2.3.2':
resolution: {integrity: sha512-amnqvk+gWybbQleRRq8TMe0rIv7GHss8mFJEaGuEZYWg1Tw14YKOkeo8h6pf1c+d3qR+JU4iT9KXnBKGON4klw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-x64-musl@2.2.5':
resolution: {integrity: sha512-AVqLCDb/6K7aPNIcxHaTQj01sl1m989CJIQFQEaiQkGr2EQwyOpaATJ473h+nXDUuAcREhccfRpe/tu+0wu0eQ==}
'@biomejs/cli-linux-x64-musl@2.3.2':
resolution: {integrity: sha512-gzB19MpRdTuOuLtPpFBGrV3Lq424gHyq2lFj8wfX9tvLMLdmA/R9C7k/mqBp/spcbWuHeIEKgEs3RviOPcWGBA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-linux-x64@2.2.5':
resolution: {integrity: sha512-fq9meKm1AEXeAWan3uCg6XSP5ObA6F/Ovm89TwaMiy1DNIwdgxPkNwxlXJX8iM6oRbFysYeGnT0OG8diCWb9ew==}
'@biomejs/cli-linux-x64@2.3.2':
resolution: {integrity: sha512-8BG/vRAhFz1pmuyd24FQPhNeueLqPtwvZk6yblABY2gzL2H8fLQAF/Z2OPIc+BPIVPld+8cSiKY/KFh6k81xfA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-win32-arm64@2.2.5':
resolution: {integrity: sha512-xaOIad4wBambwJa6mdp1FigYSIF9i7PCqRbvBqtIi9y29QtPVQ13sDGtUnsRoe6SjL10auMzQ6YAe+B3RpZXVg==}
'@biomejs/cli-win32-arm64@2.3.2':
resolution: {integrity: sha512-lCruqQlfWjhMlOdyf5pDHOxoNm4WoyY2vZ4YN33/nuZBRstVDuqPPjS0yBkbUlLEte11FbpW+wWSlfnZfSIZvg==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [win32]
'@biomejs/cli-win32-x64@2.2.5':
resolution: {integrity: sha512-F/jhuXCssPFAuciMhHKk00xnCAxJRS/pUzVfXYmOMUp//XW7mO6QeCjsjvnm8L4AO/dG2VOB0O+fJPiJ2uXtIw==}
'@biomejs/cli-win32-x64@2.3.2':
resolution: {integrity: sha512-6Ee9P26DTb4D8sN9nXxgbi9Dw5vSOfH98M7UlmkjKB2vtUbrRqCbZiNfryGiwnPIpd6YUoTl7rLVD2/x1CyEHQ==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [win32]
@ -2175,39 +2175,39 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.27.1
'@biomejs/biome@2.2.5':
'@biomejs/biome@2.3.2':
optionalDependencies:
'@biomejs/cli-darwin-arm64': 2.2.5
'@biomejs/cli-darwin-x64': 2.2.5
'@biomejs/cli-linux-arm64': 2.2.5
'@biomejs/cli-linux-arm64-musl': 2.2.5
'@biomejs/cli-linux-x64': 2.2.5
'@biomejs/cli-linux-x64-musl': 2.2.5
'@biomejs/cli-win32-arm64': 2.2.5
'@biomejs/cli-win32-x64': 2.2.5
'@biomejs/cli-darwin-arm64': 2.3.2
'@biomejs/cli-darwin-x64': 2.3.2
'@biomejs/cli-linux-arm64': 2.3.2
'@biomejs/cli-linux-arm64-musl': 2.3.2
'@biomejs/cli-linux-x64': 2.3.2
'@biomejs/cli-linux-x64-musl': 2.3.2
'@biomejs/cli-win32-arm64': 2.3.2
'@biomejs/cli-win32-x64': 2.3.2
'@biomejs/cli-darwin-arm64@2.2.5':
'@biomejs/cli-darwin-arm64@2.3.2':
optional: true
'@biomejs/cli-darwin-x64@2.2.5':
'@biomejs/cli-darwin-x64@2.3.2':
optional: true
'@biomejs/cli-linux-arm64-musl@2.2.5':
'@biomejs/cli-linux-arm64-musl@2.3.2':
optional: true
'@biomejs/cli-linux-arm64@2.2.5':
'@biomejs/cli-linux-arm64@2.3.2':
optional: true
'@biomejs/cli-linux-x64-musl@2.2.5':
'@biomejs/cli-linux-x64-musl@2.3.2':
optional: true
'@biomejs/cli-linux-x64@2.2.5':
'@biomejs/cli-linux-x64@2.3.2':
optional: true
'@biomejs/cli-win32-arm64@2.2.5':
'@biomejs/cli-win32-arm64@2.3.2':
optional: true
'@biomejs/cli-win32-x64@2.2.5':
'@biomejs/cli-win32-x64@2.3.2':
optional: true
'@bundled-es-modules/cookie@2.0.1':

File diff suppressed because it is too large Load Diff