mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-22 18:40:14 -05:00
Upgrade Biome
This commit is contained in:
@@ -78,7 +78,7 @@ describe("SendouQ ready check page", () => {
|
||||
readyCount: 1,
|
||||
});
|
||||
// so that a field carrying more about them can't be added unnoticed
|
||||
expect(Object.keys(data).sort()).toEqual([
|
||||
expect(Object.keys(data).sort((a, b) => a.localeCompare(b))).toEqual([
|
||||
"expiresAt",
|
||||
"group",
|
||||
"readyUserIds",
|
||||
|
||||
@@ -13,7 +13,8 @@ export type BracketMapCounts = Map<
|
||||
// roundSetKey(round) ->
|
||||
string,
|
||||
// round.number ->
|
||||
Map<number, { count: number; type: "BEST_OF" }>>;
|
||||
Map<number, { count: number; type: "BEST_OF" }>
|
||||
>;
|
||||
|
||||
/** Identifies the rounds numbered together: a round robin/swiss group's rounds, or one section of an elimination group. */
|
||||
export function roundSetKey(round: Pick<RoundData, "groupId" | "section">) {
|
||||
|
||||
@@ -22,7 +22,7 @@ const readNamespace = (language: string, file: string) => {
|
||||
const interpolatedVariables = (value: string) =>
|
||||
Array.from(value.matchAll(/\{\{\s*([a-zA-Z0-9_.]+)\s*(?:,[^}]*)?\}\}/g))
|
||||
.map((match) => match[1])
|
||||
.sort();
|
||||
.sort((a, b) => a.localeCompare(b));
|
||||
|
||||
describe("translations", () => {
|
||||
test.each(languages.filter(({ code }) => code !== DEFAULT_LANGUAGE))(
|
||||
|
||||
@@ -9,7 +9,7 @@ or {
|
||||
$attr <: not within or {
|
||||
JsxOpeningElement(attributes=contains JsxAttribute(name=`schema`)),
|
||||
JsxSelfClosingElement(attributes=contains JsxAttribute(name=`schema`))
|
||||
} ,
|
||||
},
|
||||
register_diagnostic(span=$attr, message="Untyped `_action`. For a fixed-field mutation use `<ActionButton schema={...} action=\"...\" fields={{...}}>`; for a submit button of a real multi-input form pass `schema={...}` alongside `_action` so the literal is type checked against the route's schema.", severity="error")
|
||||
},
|
||||
`name="_action"` as $attr where {
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-typescript": "7.29.7",
|
||||
"@biomejs/biome": "2.5.13",
|
||||
"@biomejs/biome": "2.5.15",
|
||||
"@faker-js/faker": "10.6.0",
|
||||
"@napi-rs/canvas": "1.0.9",
|
||||
"@playwright/test": "1.63.0",
|
||||
|
||||
74
pnpm-lock.yaml
generated
74
pnpm-lock.yaml
generated
@@ -167,8 +167,8 @@ importers:
|
||||
specifier: 7.29.7
|
||||
version: 7.29.7(@babel/core@7.29.7)
|
||||
'@biomejs/biome':
|
||||
specifier: 2.5.13
|
||||
version: 2.5.13
|
||||
specifier: 2.5.15
|
||||
version: 2.5.15
|
||||
'@faker-js/faker':
|
||||
specifier: 10.6.0
|
||||
version: 10.6.0
|
||||
@@ -474,59 +474,59 @@ packages:
|
||||
resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@biomejs/biome@2.5.13':
|
||||
resolution: {integrity: sha512-+SEC/mFk1a+5mvUANZgbZTaiZXs1nj4iMhL/PHiqDT5TPUEPFIlliEtkKKZB4N862yylHC3UI+/Sj2I0HJEqhA==}
|
||||
'@biomejs/biome@2.5.15':
|
||||
resolution: {integrity: sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
hasBin: true
|
||||
|
||||
'@biomejs/cli-darwin-arm64@2.5.13':
|
||||
resolution: {integrity: sha512-nYSuDJ6zgVqZUkAkJkvhXxsF2PYIrUk/g638K4voCXz7foI9f7b6C2/7+oAihsHQlivZNMUrm/y8ywlcHQtZOw==}
|
||||
'@biomejs/cli-darwin-arm64@2.5.15':
|
||||
resolution: {integrity: sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@biomejs/cli-darwin-x64@2.5.13':
|
||||
resolution: {integrity: sha512-KVy1ceEDuJ3AzFxjT9kkxbVy+UANw1pjEMUS6lvKfxjJ+fmkRvc7sQn1Xo6ETgseEI7wUQoV03KSga3XfE8YRQ==}
|
||||
'@biomejs/cli-darwin-x64@2.5.15':
|
||||
resolution: {integrity: sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@biomejs/cli-linux-arm64-musl@2.5.13':
|
||||
resolution: {integrity: sha512-CH32xpep3dNS5EVJpAHlYchkBYznxyVZQrx0b6YYYlPL9u9ZeD2NtqiK/6s64+HFS2a7hGnryLlqqZAOh8ax5g==}
|
||||
'@biomejs/cli-linux-arm64-musl@2.5.15':
|
||||
resolution: {integrity: sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@biomejs/cli-linux-arm64@2.5.13':
|
||||
resolution: {integrity: sha512-VlNMtoxOqs0dUR6drxxHr18SNUvI7xxAuHZlH4s/dstYSf3g6RaqVgo8JRnhcOhKz9afWrvtJTboNG1JuYlIDQ==}
|
||||
'@biomejs/cli-linux-arm64@2.5.15':
|
||||
resolution: {integrity: sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@biomejs/cli-linux-x64-musl@2.5.13':
|
||||
resolution: {integrity: sha512-F3pmwl+VHoUuVJN/tbNLKeLt0SVK3EIyN1jXlMcNyQGYRQQTVqXF+GgkP0/CjGXFN87e/mv0sBfUnWqWza5PKQ==}
|
||||
'@biomejs/cli-linux-x64-musl@2.5.15':
|
||||
resolution: {integrity: sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@biomejs/cli-linux-x64@2.5.13':
|
||||
resolution: {integrity: sha512-Fi6gIxbUaJ3ZCIXeG3ggIBPF76O2DjDN67WrPX/ODRv54GeXPm2gbEPC96Yb0yrJoiH0Eax1JLx1Pi0XbsNFZQ==}
|
||||
'@biomejs/cli-linux-x64@2.5.15':
|
||||
resolution: {integrity: sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@biomejs/cli-win32-arm64@2.5.13':
|
||||
resolution: {integrity: sha512-+WD13qshXrr0Icv4BfsAdzm8Fs3TL+nZ59zEQxsYNd8lcgZJ0A5+OrlwsL1PipVCmWeRpxgIPD6DAcEd7smkCQ==}
|
||||
'@biomejs/cli-win32-arm64@2.5.15':
|
||||
resolution: {integrity: sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@biomejs/cli-win32-x64@2.5.13':
|
||||
resolution: {integrity: sha512-VOofU/nW761XWzUeUNE8zzYNyPrxuMuNFMizL0qz7J75yeV8N7WFheUlk1/K6dOkaFpH9wJ+lDKlwjAbw0346w==}
|
||||
'@biomejs/cli-win32-x64@2.5.15':
|
||||
resolution: {integrity: sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==}
|
||||
engines: {node: '>=14.21.3'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@@ -4827,39 +4827,39 @@ snapshots:
|
||||
'@babel/helper-string-parser': 7.29.7
|
||||
'@babel/helper-validator-identifier': 7.29.7
|
||||
|
||||
'@biomejs/biome@2.5.13':
|
||||
'@biomejs/biome@2.5.15':
|
||||
optionalDependencies:
|
||||
'@biomejs/cli-darwin-arm64': 2.5.13
|
||||
'@biomejs/cli-darwin-x64': 2.5.13
|
||||
'@biomejs/cli-linux-arm64': 2.5.13
|
||||
'@biomejs/cli-linux-arm64-musl': 2.5.13
|
||||
'@biomejs/cli-linux-x64': 2.5.13
|
||||
'@biomejs/cli-linux-x64-musl': 2.5.13
|
||||
'@biomejs/cli-win32-arm64': 2.5.13
|
||||
'@biomejs/cli-win32-x64': 2.5.13
|
||||
'@biomejs/cli-darwin-arm64': 2.5.15
|
||||
'@biomejs/cli-darwin-x64': 2.5.15
|
||||
'@biomejs/cli-linux-arm64': 2.5.15
|
||||
'@biomejs/cli-linux-arm64-musl': 2.5.15
|
||||
'@biomejs/cli-linux-x64': 2.5.15
|
||||
'@biomejs/cli-linux-x64-musl': 2.5.15
|
||||
'@biomejs/cli-win32-arm64': 2.5.15
|
||||
'@biomejs/cli-win32-x64': 2.5.15
|
||||
|
||||
'@biomejs/cli-darwin-arm64@2.5.13':
|
||||
'@biomejs/cli-darwin-arm64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-darwin-x64@2.5.13':
|
||||
'@biomejs/cli-darwin-x64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-linux-arm64-musl@2.5.13':
|
||||
'@biomejs/cli-linux-arm64-musl@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-linux-arm64@2.5.13':
|
||||
'@biomejs/cli-linux-arm64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-linux-x64-musl@2.5.13':
|
||||
'@biomejs/cli-linux-x64-musl@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-linux-x64@2.5.13':
|
||||
'@biomejs/cli-linux-x64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-win32-arm64@2.5.13':
|
||||
'@biomejs/cli-win32-arm64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@biomejs/cli-win32-x64@2.5.13':
|
||||
'@biomejs/cli-win32-x64@2.5.15':
|
||||
optional: true
|
||||
|
||||
'@blazediff/core@1.9.1': {}
|
||||
|
||||
@@ -164,7 +164,6 @@ function parseArgs(argv: string[]): {
|
||||
let parsedCollectTelemetry = false;
|
||||
let parsedGpu = false;
|
||||
let parsedRecordDir: string | undefined;
|
||||
// biome-ignore lint/style/useForOf: the index advances inside the loop to consume flag values
|
||||
for (let i = 0; i < argv.length; i++) {
|
||||
const arg = argv[i]!;
|
||||
if (arg === "--fps") parsedFps = Number(argv[++i]);
|
||||
|
||||
Reference in New Issue
Block a user