Skip to content

Commit 0297172

Browse files
committed
build(deps): upgrade biome 1.9.4 → 2.4.7 and migrate config
Run `biome migrate --write` to update config for v2: - $schema bumped to 2.4.7 - organizeImports moved to assist.actions.source - noUnnecessaryContinue renamed to noUselessContinue under complexity Fix three warnings introduced by new noUnusedFunctionParameters rule: - Prefix unused `config` params with _ in plugin.ts and store.ts - Remove unused `calls` destructure in orchestrator.test.ts Closes #6
1 parent d0b780e commit 0297172

File tree

6 files changed

+25
-26
lines changed

6 files changed

+25
-26
lines changed

biome.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -15,9 +15,7 @@
1515
"lineWidth": 100,
1616
"lineEnding": "lf"
1717
},
18-
"organizeImports": {
19-
"enabled": true
20-
},
18+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
2119
"linter": {
2220
"enabled": true,
2321
"rules": {
@@ -27,12 +25,11 @@
2725
"useNodejsImportProtocol": "off",
2826
"useTemplate": "off"
2927
},
30-
"correctness": {
31-
"noUnnecessaryContinue": "off"
32-
},
28+
"correctness": {},
3329
"complexity": {
3430
"noBannedTypes": "off",
35-
"useLiteralKeys": "off"
31+
"useLiteralKeys": "off",
32+
"noUselessContinue": "off"
3633
},
3734
"suspicious": {
3835
"noExplicitAny": "off"

bun.lock

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
"zod": ">=4.0.0"
2929
},
3030
"devDependencies": {
31-
"@biomejs/biome": "^1.9.4",
31+
"@biomejs/biome": "2.4.7",
3232
"@opencode-ai/plugin": "^1.2.24",
33-
"@types/bun": "^1.3.10",
34-
"@types/js-yaml": "^4.0.9",
3533
"@semantic-release/changelog": "^6.0.3",
3634
"@semantic-release/commit-analyzer": "^13.0.1",
3735
"@semantic-release/git": "^10.0.1",
3836
"@semantic-release/github": "^11.0.6",
3937
"@semantic-release/npm": "^12.0.2",
4038
"@semantic-release/release-notes-generator": "^14.1.0",
39+
"@types/bun": "^1.3.10",
40+
"@types/js-yaml": "^4.0.9",
4141
"js-yaml": "^4.1.0",
4242
"semantic-release": "^24.2.9",
4343
"typescript": "^5.9.3",

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export async function handleIdle(
271271
sessionId: string,
272272
client: Parameters<Plugin>[0]["client"],
273273
store: FallbackStore,
274-
config: ReturnType<typeof loadConfig>["config"],
274+
_config: ReturnType<typeof loadConfig>["config"],
275275
logger: Logger
276276
): Promise<void> {
277277
const state = store.sessions.get(sessionId);

src/state/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class FallbackStore {
1010
readonly health: ModelHealthStore;
1111
readonly sessions: SessionStateStore;
1212

13-
constructor(config: PluginConfig, logger: Logger) {
13+
constructor(_config: PluginConfig, logger: Logger) {
1414
this.sessions = new SessionStateStore();
1515
this.health = new ModelHealthStore({
1616
onTransition: (modelKey, from, to) => {

test/orchestrator.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { describe, it, expect, afterEach } from "bun:test";
1+
import { afterEach, describe, expect, it } from "bun:test";
2+
import { Logger } from "../src/logging/logger.js";
23
import { attemptFallback } from "../src/replay/orchestrator.js";
34
import { FallbackStore } from "../src/state/store.js";
4-
import { Logger } from "../src/logging/logger.js";
55
import type { PluginConfig } from "../src/types.js";
66
import { makeMockClient, makeUserMessage } from "./helpers/mock-client.js";
77

@@ -431,7 +431,7 @@ describe("attemptFallback — concurrency", () => {
431431
// Verify the race fix: lastFallbackAt is set before session.prompt()
432432
let dedupWindowActiveAtPromptTime = false;
433433

434-
const { client, calls } = makeMockClient({
434+
const { client } = makeMockClient({
435435
messages: [makeUserMessage("s1", "m1", "openai", "gpt-5.3-codex", "coder")],
436436
});
437437

0 commit comments

Comments
 (0)