Skip to content

fix(lint): biome の warning 3 件を解消する - #669

Merged
kan merged 1 commit into
mainfrom
fix/668-biome-warnings
Nov 24, 2026
Merged

kan merged 1 commit into
mainfrom
fix/668-biome-warnings

Conversation

@kan

@kan kan commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Closes #668

just lint が出していた warning 3 件を解消する。動きは変わらない。

  • AgentSessionsPanel.vue / AgentSessionsTab.vue(useImportType):LiveSessionMenu は <template> で <LiveSessionMenu ref="menu" /> として使っている。biome は template を読まず、script の InstanceType<typeof LiveSessionMenu> だけを見た誤検知なので、理由を添えた biome-ignore で抑止する。自動修正の import type にするとコンポーネントが描画されなくなる
  • dbViewer.ts(noPrototypeBuiltins):Object.prototype.hasOwnProperty.call(ENGINE_LABELS, o.engine) を Object.keys(ENGINE_LABELS).includes(o.engine) にする。自動修正の Object.hasOwn は tsconfig の lib(ES2021)に無い。in と違い、toString などプロトタイプのキーを通さない

利用者に届く変更ではないので CHANGELOG には足さない。

確認

  • just check が通り、biome の warning が 0 件になる
  • 開発版で、エージェントのセッションのメニューと DB パネルの保存した接続を確かめた

🤖 Generated with Claude Code

https://claude.ai/code/session_01PZw9ixctzDYP4gz4Utkf3c

- AgentSessionsPanel.vue / AgentSessionsTab.vue: LiveSessionMenu は template で使うので、
  useImportType の誤検知を理由付きの biome-ignore で抑止する
- dbViewer.ts: hasOwnProperty.call を Object.keys(...).includes にする
  (Object.hasOwn は tsconfig の lib の ES2021 に無い)

Closes #668

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZw9ixctzDYP4gz4Utkf3c
@kan kan added the bug Something isn't working label Nov 24, 2026
@kan
kan merged commit b18764d into main Nov 24, 2026
11 checks passed
@kan
kan deleted the fix/668-biome-warnings branch November 24, 2026 06:51
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

biome の warning 3 件を解消する

1 participant