Skip to content

chore(deps): move ESLint to v10 with a flat config - #53

Merged
hideokamoto merged 3 commits into
mainfrom
fix/eslint-10
Nov 29, 2026
Merged

hideokamoto merged 3 commits into
mainfrom
fix/eslint-10

Conversation

@hideokamoto

Copy link
Copy Markdown
Owner

Before: Renovate's ESLint 10 update (#51) fails the CircleCI validate job. ESLint 10 no longer reads .eslintrc.yml, and eslint-config-standard 17 and @typescript-eslint v7 only support the old config format.

After: this branch moves ESLint to v10 with eslint.config.mjs, and pnpm lint, pnpm typecheck, pnpm test and pnpm build all pass locally.

How: .eslintrc.yml and .eslintignore become one eslint.config.mjs with the same ignore list. eslint-config-standard and its plugins (import, node, n, promise) give way to neostandard, which is the flat-config successor of standard and bundles those plugins. @typescript-eslint/* v7 gives way to typescript-eslint v8 and its recommended set. The three rules the old config set are kept as they were. The new config flags one extra semicolon in libs/logger.ts, which I removed. The commit type is chore, so semantic-release cuts no release. Once this merges, Renovate closes #51.


Generated by Claude Code

ESLint 10 only reads eslint.config.*, so the lint job failed on the
Renovate update. Replace .eslintrc.yml and .eslintignore with
eslint.config.mjs, swap eslint-config-standard (eslintrc only) for
neostandard and the typescript-eslint v8 recommended set, and keep the
three rules the old config set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • 開発時のコードチェック設定を更新しました。 TypeScript ファイルのチェックルールが整理され、未使用の変数はエラー、any の使用は警告として扱われます。

ESLintをv10へ更新し、旧設定ファイルを削除してFlat Configを追加しました。neostandardとtypescript-eslintを導入し、除外対象とTypeScript向けルールを設定しています。LogLevel型宣言の末尾のセミコロンも削除しました。

Changes: ESLint設定の移行

Layer / File(s) Summary
Flat Configと依存関係の移行
.eslintignore, .eslintrc.yml, eslint.config.mjs, package.json, libs/logger.ts
ESLintを^10.0.0へ更新し、neostandardとtypescript-eslintを追加しました。旧設定ファイルを削除し、新しい設定で除外対象、TypeScript解析オプション、ルールを指定しています。LogLevel型宣言の末尾のセミコロンも削除しました。

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • Issue 44は依存関係ダッシュボードにtypescript-eslintの更新を含みます。このPRはtypescript-eslintを依存関係に追加していますが、更新要件を満たすかどうかは示されていません。

Possibly related PRs

Suggested reviewers: hidetaka-dc

Merge Risk: Minimal · up to 11a91 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed タイトルは、ESLint を v10 へ更新し、旧設定 .eslintrc.yml を flat config (eslint.config.mjs) へ置き換える主要な変更を示しています。変更セット(.eslintrc.yml・.eslintignore の削除、eslint.config.mjs の追加、package.json の依存関係更新、libs/logger.ts のセミコロン削除)…
Description check Passed 説明文は、ESLint 10 への更新が必要になった背景(Renovate の #51 が CircleCI の validate ジョブで失敗する理由)、flat config への移行内容、neostandard と typescript-eslint v8 への置き換え、libs/logger.ts の修正を具体的に記述しており、変更セットと明確に関連しています。
Linked Issues check Passed [#51] 要件は、eslint を ^8.57.0 から ^10.0.0 に更新することだけです。PR の概要によると、package.json の devDependencies で eslint が ^10.0.0 に更新されています。pnpm-lock.yaml は除外対象のため、ロックファイルの内容は確認していません。#51 には追加の実装要件が記載されて…
Out of Scope Changes check Passed 変更内容は次のとおりです。(1) .eslintrc.yml と .eslintignore を eslint.config.mjs に置き換えました。ESLint 10 は旧設定形式を読み込まないため、この移行は #51 の依存更新に必要です。無視対象一覧と既存の 3 つのルールは維持されています。(2) eslint-config-standard とそのプラグインを `neo…
Full details: Title check

Explanation

タイトルは、ESLint を v10 へ更新し、旧設定 .eslintrc.yml を flat config (eslint.config.mjs) へ置き換える主要な変更を示しています。変更セット(.eslintrc.yml・.eslintignore の削除、eslint.config.mjs の追加、package.json の依存関係更新、libs/logger.ts のセミコロン削除)と整合します。

Full details: Linked Issues check

Explanation

[#51] 要件は、eslint を ^8.57.0 から ^10.0.0 に更新することだけです。PR の概要によると、package.json の devDependencies で eslint が ^10.0.0 に更新されています。pnpm-lock.yaml は除外対象のため、ロックファイルの内容は確認していません。#51 には追加の実装要件が記載されていません。PR 説明の GitHub Actions build (18.x) に関する内容は、コードによる要件ではなくワークフロー運用の判断です。この判断は本評価の対象外です。

Full details: Out of Scope Changes check

Explanation

変更内容は次のとおりです。(1) .eslintrc.yml と .eslintignore を eslint.config.mjs に置き換えました。ESLint 10 は旧設定形式を読み込まないため、この移行は #51 の依存更新に必要です。無視対象一覧と既存の 3 つのルールは維持されています。(2) eslint-config-standard とそのプラグインを neostandard に、@typescript-eslint/* v7 を typescript-eslint v8 に置き換えました。これらは新しい ESLint 設定で動作させるために必要な依存変更です。(3) libs/logger.ts の LogLevel 型末尾にあるセミコロンを削除しました。新しい設定が検出した lint 違反の修正であり、型の内容は変わりません。すべての変更は #51 の ESLint 10 対応に関係しています。

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: package-manager metadata or lockfile failed a supply-chain integrity policy. Refresh the packageManager pin and lockfile locally.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 87082775-f991-492f-8f0a-c6099c1cc9ae
Commits

Reviewing files that changed from the base of the PR and between 5695ad9 and 11a9129.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 5

  • .eslintignore
  • .eslintrc.yml
  • eslint.config.mjs
  • libs/logger.ts
  • package.json
Files with no reviewable changes: 2

  • .eslintignore
  • .eslintrc.yml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Copy link
Copy Markdown
Owner Author

The red GitHub Actions job build (18.x) comes from Node 18 in .github/workflows/node.js.yml. main is red on the same job since #52 (eslint-plugin-n v18, which ESLint 8 cannot load on Node 18), and ESLint 10 in this PR needs Node 20.19 or later, so Node 18 cannot pass either way. The other matrix jobs were cancelled by fail-fast. The CircleCI validate check, which is the required one, is green.

The fix is a choice about the GitHub Actions workflow (remove it, or drop Node 18 from the matrix), so it is left to the repository owner.


Generated by Claude Code

# Conflicts:
#	package.json
#	pnpm-lock.yaml
@hideokamoto
hideokamoto marked this pull request as ready for review November 29, 2026 23:23
@hideokamoto
hideokamoto merged commit b13ac6c into main Nov 29, 2026
6 checks passed
@hideokamoto
hideokamoto deleted the fix/eslint-10 branch November 29, 2026 23:40
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.

2 participants