Skip to content

Upgrade to ESLint 9#6284

Merged
ckifer merged 6 commits intorecharts:mainfrom
NishargShah:eslint-9-upgrade
Sep 7, 2025
Merged

Upgrade to ESLint 9#6284
ckifer merged 6 commits intorecharts:mainfrom
NishargShah:eslint-9-upgrade

Conversation

@NishargShah
Copy link
Contributor

Description

Upgraded to ESLint 9 using old .eslintrc

Related Issue

Issue: #5949

Motivation and Context

It upgrade ESLint to the latest version.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a storybook story or VR test, or extended an existing story or VR test to show my changes

Additional Context

During the migration, I don't why but 3 files get affected of react-hooks/exhaustive-deps rule. I request maintainer to check and take appropriate action. Affected files are

  1. src/cartesian/YAxis.tsx
  2. src/util/useElementOffset.ts
  3. test/helper/useEffectDebug.ts

Copilot AI review requested due to automatic review settings September 6, 2025 22:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades ESLint from version 8 to version 9, migrating from the legacy .eslintrc configuration to the new flat config format (eslint.config.mjs). The upgrade includes updating related dependencies and addressing new linting requirements.

  • Migrated from legacy ESLint 8 configuration to ESLint 9 flat config
  • Updated ESLint plugins and dependencies to compatible versions
  • Added ESLint disable comments for react-hooks/exhaustive-deps rule violations

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Updated ESLint and related dependencies to version 9 compatible packages
eslint.config.mjs New flat config format replacing the legacy .eslintrc configuration
.eslintrc Removed legacy ESLint configuration file
prettier.config.mjs New Prettier configuration in ES module format
.prettierrc Removed legacy Prettier configuration file
stryker.config.mjs Removed ESLint disable comment for import/no-default-export
src/cartesian/YAxis.tsx Added ESLint disable comment for react-hooks/exhaustive-deps
src/util/useElementOffset.ts Added ESLint disable comment for react-hooks/exhaustive-deps
test/helper/useEffectDebug.ts Added ESLint disable comment for react-hooks/exhaustive-deps

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.63%. Comparing base (01bb65f) to head (915ed5b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6284   +/-   ##
=======================================
  Coverage   96.63%   96.63%           
=======================================
  Files         221      221           
  Lines       20178    20178           
  Branches     4139     4139           
=======================================
  Hits        19499    19499           
  Misses        672      672           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Member

@ckifer ckifer left a comment

Choose a reason for hiding this comment

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

Thank you!!

@ckifer ckifer merged commit 1e25111 into recharts:main Sep 7, 2025
20 checks passed
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.

4 participants