Skip to content

build(deps-dev): Bump eslint from 9.39.2 to 10.1.0 (#3304)#3306

Merged
KATO-Hiro merged 5 commits into
stagingfrom
#3304
Mar 23, 2026
Merged

build(deps-dev): Bump eslint from 9.39.2 to 10.1.0 (#3304)#3306
KATO-Hiro merged 5 commits into
stagingfrom
#3304

Conversation

@KATO-Hiro
Copy link
Copy Markdown
Collaborator

@KATO-Hiro KATO-Hiro commented Mar 23, 2026

close #3304

Summary by CodeRabbit

リリースノート

  • New Features

    • 依存パッケージのメジャーアップグレードを支援する新機能を追加しました。公式マイグレーション情報の取得・分析、影響評価に基づくアップグレード計画作成、ユーザー確認後の実行・検証をサポートします。
  • Documentation

    • アップグレードチェックリスト、コンパニオンパッケージの検出ルール、計画書テンプレート、検証コマンド手順を含むドキュメントを追加・更新しました。
  • Chores

    • ESLint 関連の開発依存ツールのバージョンを更新しました。

KATO-Hiro and others added 3 commits March 23, 2026 09:51
- eslint: 9.39.2 → 10.1.0
- @eslint/js: 9.39.4 → 10.0.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… needed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 23, 2026

📝 Walkthrough

Walkthrough

新しい依存関係メジャーアップグレード管理スキル dep-upgrade を追加。WebFetchで公式移行ガイドを取得して影響分析→plan.md生成→ユーザー確認→自動実行(package.json更新、pnpm系コマンド実行、検証結果のplan更新)を実装。ESLint周りのdevDependencyをv10へ更新し、関連ドキュメントを追記・整備。

Changes

Cohort / File(s) Summary
スキル定義
/.claude/skills/dep-upgrade/SKILL.md
dep-upgrade スキルを追加。引数形式 <package-name> <old-major> <new-major>、モデル非使用で「分析→plan生成→確認→実行」のワークフローを定義。
実行手順書
/.claude/skills/dep-upgrade/instructions.md
「Dependency Major Upgrade Checklist」を追加。WebFetchによる公式ガイド取得、grepによる影響検出、コンパニオン検出、新機能採用候補列挙、docs/dev-notes/.../plan.md の構成と検証コマンド(pnpm install, pnpm lint, pnpm check, pnpm test:unit)を明記。
ドキュメント更新
docs/guides/claude-code.md
プロジェクトローカルスキル一覧に /dep-upgrade を追加。引数例・実行内容を追記し、既存セクションの改行/空白を軽微に整形。
依存関係バージョン更新
package.json
開発依存のESLint周りを更新:@eslint/js 9.39.4 → 10.0.1、eslint 9.39.2 → 10.1.0。

Sequence Diagram(s)

sequenceDiagram
participant User as User
participant Skill as dep-upgrade Skill
participant Web as WebFetch
participant Repo as Repository
participant Shell as pnpm / Shell

User->>Skill: invoke `<package> <old> <new>`
Skill->>Web: fetch migration guide
Web-->>Skill: migration content
Skill->>Repo: scan `src/`, config, `package.json`
Repo-->>Skill: findings (no-action / requires-action)
Skill->>Repo: create `docs/dev-notes/YYYY-MM-DD/{package}-upgrade/plan.md`
Skill-->>User: show plan, pause for confirmation
User->>Skill: confirm
Skill->>Repo: update `package.json` (bump major)
Skill->>Shell: run `pnpm install`, `pnpm lint`, `pnpm check`, `pnpm test:unit`
Shell-->>Skill: results
Skill->>Repo: update plan.md with verification results
Skill-->>User: finish report
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

依存の風を読み、計画を紡ぐ📝
Webの声を拾い、差分を洗う🔎
確認の一押しで、変更が動き出す⚡
ESLintは新風、バージョン10へ🌱
小さな自動が、大きな安心を運ぶ🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning PRの説明は最小限(issue #3304 クローズのみ)で、内容の詳細が不足しており、レビュアーが変更内容を理解するのに必要な文脈が欠けています。 スキル追加、ドキュメント更新、依存関係変更の理由と内容を記述してください。
Out of Scope Changes check ❓ Inconclusive スキル定義とドキュメント追加は ESLint アップグレードの支援ツール化として scope 内ですが、@eslint/js アップデート(9.39.4→10.0.1)は issue#3304 に明示されていません。 issue #3304@eslint/js アップデートが言及されているか確認、または別途スコープ化が必要です。
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは、eslint バージョンアップ(9.39.2→10.1.0)という主要な変更を明確に説明しており、関連するすべてのコード変更(package.json の更新、スキル定義の追加、ドキュメント更新)を包括的に表現しています。
Linked Issues check ✅ Passed プルリクエストは issue #3304 の ESLint v9.x から v10.x へのアップデート要件を満たしており、package.json での依存関係更新、マイグレーション支援スキルの新規追加、ドキュメント整備を含みます。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch #3304

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/skills/dep-upgrade/instructions.md:
- Around line 62-67: Replace the mismatched test command in the instructions
block: change the listed verification command "pnpm test" to "pnpm test:unit" so
it matches the execution steps described in SKILL.md (Line 12) and keeps the
dependency-upgrade flow from requiring E2E; update the commands block that
currently contains "pnpm install", "pnpm lint", "pnpm check", "pnpm test" to use
"pnpm test:unit" instead of "pnpm test".

In `@docs/guides/claude-code.md`:
- Around line 77-80: Add a language tag to the markdown code fence containing
the "/dep-upgrade <package-name> <old-major> <new-major>" example to satisfy
markdownlint MD040; update the opening backticks for that fenced block (the
snippet that shows "/dep-upgrade <package-name> <old-major> <new-major>\n例:
/dep-upgrade eslint 9 10") to use either "text" or "bash" (e.g., ```text) so the
linter warning is resolved.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 26053938-e323-46ac-9007-73d85ea8ea75

📥 Commits

Reviewing files that changed from the base of the PR and between 68a2bf8 and 47dfb87.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (4)
  • .claude/skills/dep-upgrade/SKILL.md
  • .claude/skills/dep-upgrade/instructions.md
  • docs/guides/claude-code.md
  • package.json

Comment thread .claude/skills/dep-upgrade/instructions.md
Comment thread docs/guides/claude-code.md Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/skills/dep-upgrade/instructions.md:
- Around line 69-71: 説明文の「git stash && pnpm check 2>&1 | tail -5 … git stash
pop」を、安全に復元できるように条件付きで実行する手順に書き換えてください:具体的には `git stash`(あるいは `git stash
push`)の出力/戻り値を確認してスタッシュが作成された場合のみ `git stash pop` を実行する旨に修正し、該当するコマンド列("git
stash", "pnpm check 2>&1 | tail -5", "git stash pop")を参照して安全な復元フローを示してください。

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 18d1f905-ced2-4d81-8588-68faa17e01b5

📥 Commits

Reviewing files that changed from the base of the PR and between 47dfb87 and 4e8bf26.

📒 Files selected for processing (2)
  • .claude/skills/dep-upgrade/instructions.md
  • docs/guides/claude-code.md

Comment thread .claude/skills/dep-upgrade/instructions.md Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
.claude/skills/dep-upgrade/instructions.md (1)

69-72: ⚠️ Potential issue | 🟡 Minor

git stash pop は条件付き実行にしてください(再発)

  • Line 69-72 の手順だと、スタッシュ未作成時に git stash pop が失敗します。
  • 安全な復元フローに戻してください(作成したスタッシュがある場合のみ pop)。
修正例
-> **`pnpm check` tip:** If type errors appear and you have uncommitted changes, run
-> `git stash && pnpm check 2>&1 | tail -5` to confirm whether errors are pre-existing.
-> Restore with `git stash pop`. If there is nothing to stash, skip this check — without
+> **`pnpm check` tip:** If type errors appear and you have uncommitted changes, run
+> `git stash push -u -m dep-upgrade-check && pnpm check 2>&1 | tail -5`
+> to confirm whether errors are pre-existing.
+> Restore with `git stash list | grep -q dep-upgrade-check && git stash pop`. If there is nothing to stash, skip this check — without
 > a baseline to compare against, it gives no useful signal.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/skills/dep-upgrade/instructions.md around lines 69 - 72, 現在の手順は「git
stash && pnpm check …; git stash pop」を無条件に実行しており、スタッシュが作成されなかった場合に git stash pop
が失敗します。該当箇所のコマンドシーケンス("git stash && pnpm check 2>&1 | tail -5" と "git stash
pop")を変更し、スタッシュを作成した場合のみ復元する安全なフローにすること(例: スタッシュ作成の成否を判定してから git stash pop
を実行する)を実装してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In @.claude/skills/dep-upgrade/instructions.md:
- Around line 69-72: 現在の手順は「git stash && pnpm check …; git stash
pop」を無条件に実行しており、スタッシュが作成されなかった場合に git stash pop が失敗します。該当箇所のコマンドシーケンス("git stash
&& pnpm check 2>&1 | tail -5" と "git stash
pop")を変更し、スタッシュを作成した場合のみ復元する安全なフローにすること(例: スタッシュ作成の成否を判定してから git stash pop
を実行する)を実装してください。

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 42dfa81a-3e35-4107-9e27-09175b6ca10a

📥 Commits

Reviewing files that changed from the base of the PR and between 4e8bf26 and bf3097e.

📒 Files selected for processing (1)
  • .claude/skills/dep-upgrade/instructions.md

Copy link
Copy Markdown
Collaborator Author

@KATO-Hiro KATO-Hiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KATO-Hiro KATO-Hiro merged commit c36c8b3 into staging Mar 23, 2026
3 checks passed
@KATO-Hiro KATO-Hiro deleted the #3304 branch March 23, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Deps] ESLint と依存ライブラリを v9.x から v10.x へアップデートしましょう

1 participant