Repository navigation
chore(deps-dev): bump eslint from 9.39.2 to 10.10.0 in /packages/frontend - #940
Conversation
…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]>
✅ Deploy Preview for mdts-unhappychoice ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe frontend upgrades ESLint to version 10. The configuration wraps the React configuration for compatibility, removes two plugin registrations, and aligns related dependency overrides. ChangesESLint 10 compatibility
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to 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)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
packages/frontend/package.jsonESLint 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
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, sonpm cifailed withERESOLVEbefore any lint or test ran.Changes
eslint-plugin-importandeslint-plugin-jsx-a11yremoved. Both were registered inpluginsbut enabled no rules — noimport/*orjsx-a11y/*entry in the config, and no inlineeslint-disablereferencing either. Dropping them is preferable to pinning dependencies that lint nothing.eslint-plugin-reactkept, wrapped withfixupConfigRules. This one is genuinely used (its recommended config plusreact/jsx-no-bind) and has no ESLint 10 release.@eslint/compat— already indevDependencies— restores the removed context methods. Its peer range is relaxed through anoverridesentry alongside the existingjest-runner-eslintone, which is bumped to match.Verification
Ran locally against the regenerated lockfile:
npm ci— resolves cleanly, noERESOLVEnpm run lint— 124/124 suites passnpm test— 321/321 tests, 42/42 snapshots passWithout the
fixupConfigRuleswrapper all 124 lint suites fail withTypeError: contextOrFilename.getFilename is not a function, so the shim is doing real work rather than papering over a version range.Follow-up
eslint-plugin-reactandjest-runner-eslintare 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