Skip to content

chore(deps-dev): bump eslint from 9.39.2 to 10.10.0 in /packages/frontend - #940

Merged
unhappychoice merged 2 commits into
mainfrom
chore/eslint-10-frontend
Sep 12, 2026
Merged

unhappychoice merged 2 commits into
mainfrom
chore/eslint-10-frontend

Conversation

@unhappychoice

@unhappychoice unhappychoice commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

Supersedes #939, which Dependabot could not land on its own: ESLint 10 removes context.getFilename(), and three dev dependencies still cap their peer range at ESLint 9, so npm ci failed with ERESOLVE before any lint or test ran.

Changes

  • eslint-plugin-import and eslint-plugin-jsx-a11y removed. Both were registered in plugins but enabled no rules — no import/* or jsx-a11y/* entry in the config, and no inline eslint-disable referencing either. Dropping them is preferable to pinning dependencies that lint nothing.
  • eslint-plugin-react kept, wrapped with fixupConfigRules. This one is genuinely used (its recommended config plus react/jsx-no-bind) and has no ESLint 10 release. @eslint/compat — already in devDependencies — restores the removed context methods. Its peer range is relaxed through an overrides entry alongside the existing jest-runner-eslint one, which is bumped to match.

Verification

Ran locally against the regenerated lockfile:

  • npm ci — resolves cleanly, no ERESOLVE
  • npm run lint — 124/124 suites pass
  • npm test — 321/321 tests, 42/42 snapshots pass

Without the fixupConfigRules wrapper all 124 lint suites fail with TypeError: contextOrFilename.getFilename is not a function, so the shim is doing real work rather than papering over a version range.

Follow-up

eslint-plugin-react and jest-runner-eslint are held to ESLint 10 by override. Both overrides should be dropped once upstream ships native ESLint 10 support.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated frontend development tooling to support the latest linting runtime.
    • Refined linting configuration and compatibility settings for more reliable code-quality checks.
    • Improved consistency of automated code-quality validation during development.
    • No changes to end-user functionality, application behavior, or the user interface.

…tend

ESLint 10 removes `context.getFilename()`. Three dev dependencies still cap
their peer range at ESLint 9 and blocked `npm ci`:

- eslint-plugin-import and eslint-plugin-jsx-a11y were registered as plugins
  but enabled no rules, so both are dropped rather than pinned.
- eslint-plugin-react is used (recommended config plus react/jsx-no-bind) and
  has no ESLint 10 release, so its rules are wrapped with fixupConfigRules
  from @eslint/compat, which restores the removed context methods. Its peer
  range is relaxed through an override alongside the existing
  jest-runner-eslint one.

Lint reports the same results as before: 124 lint suites and 321 tests pass.

Co-Authored-By: Claude Opus 5 <[email protected]>
@netlify

netlify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for mdts-unhappychoice ready!

Name Link
🔨 Latest commit 6834d9c
🔍 Latest deploy log https://app.netlify.com/projects/mdts-unhappychoice/deploys/6aa4d03cbdfc8c0008850a7c
😎 Deploy Preview https://deploy-preview-940--mdts-unhappychoice.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 11501cc1-6a2a-4388-8d07-35fee8c8130f

📥 Commits

Reviewing files that changed from the base of the PR and between 797295a and 6834d9c.

⛔ Files ignored due to path filters (1)
  • packages/frontend/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • packages/frontend/package.json

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The frontend upgrades ESLint to version 10. The configuration wraps the React configuration for compatibility, removes two plugin registrations, and aligns related dependency overrides.

Changes

ESLint 10 compatibility

Layer / File(s) Summary
Configuration and dependency alignment
packages/frontend/eslint.config.js, packages/frontend/package.json
The frontend upgrades ESLint and related packages, updates Jest and React plugin overrides, removes eslint-plugin-import and eslint-plugin-jsx-a11y, and applies fixupConfigRules to the React configuration.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: ⚪ Minimal · up to 6834d

The ESLint 10 upgrade is supported by passing lint and test verification and is ready to merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the primary change: updating ESLint from 9.39.2 to 10.10.0 in the frontend package. It is concise and specific.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/eslint-10-frontend

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.

packages/frontend/package.json

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.


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.

@codecov

codecov Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.21%. Comparing base (a289ffd) to head (6834d9c).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #940   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files          71       71           
  Lines        1661     1661           
  Branches      406      407    +1     
=======================================
  Hits         1648     1648           
  Misses         12       12           
  Partials        1        1           
Flag Coverage Δ
frontend 99.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Resolves the packages/frontend dependency conflicts with main, which has
since bumped eslint-plugin-jest to 29.16.6 and typescript-eslint to
8.70.0. Also promotes globals and @eslint/js to explicit devDependencies:
eslint.config.js requires both directly, but they only reached
node_modules through ESLint 9's dependency tree, so regenerating the
lockfile against ESLint 10 dropped them and every lint run failed with
Cannot find module.
@unhappychoice
unhappychoice merged commit a1a5cf1 into main Sep 12, 2026
11 checks passed
@unhappychoice
unhappychoice deleted the chore/eslint-10-frontend branch September 12, 2026 04:12
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.

1 participant