Skip to content

Fix ESLint v10 RuleContext API removal (follow-up to #3972)#3979

Open
ledsun wants to merge 2 commits into
jsx-eslint:masterfrom
ledsun:update-deprecated-calls-v8
Open

Fix ESLint v10 RuleContext API removal (follow-up to #3972)#3979
ledsun wants to merge 2 commits into
jsx-eslint:masterfrom
ledsun:update-deprecated-calls-v8

Conversation

@ledsun

@ledsun ledsun commented Feb 9, 2026

Copy link
Copy Markdown

This PR follows up on the feedback in the comments of #3972 and incorporates the requested changes.

I think this PR will fix #3977.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we'll need regression tests - it might be as simple as adding eslint 10 to the GHA matrix.

@codecov

codecov Bot commented Feb 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 49.49495% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.26%. Comparing base (9af8845) to head (ea44283).

Files with missing lines Patch % Lines
lib/util/eslint.js 21.87% 50 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3979      +/-   ##
==========================================
+ Coverage   94.76%   97.26%   +2.50%     
==========================================
  Files         134      137       +3     
  Lines       10165    10252      +87     
  Branches     3794     3833      +39     
==========================================
+ Hits         9633     9972     +339     
+ Misses        532      280     -252     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ledsun ledsun marked this pull request as ready for review February 11, 2026 12:08
Comment thread lib/util/eslint.js Outdated
Comment thread lib/util/version.js Outdated
Comment thread lib/util/makeNoMethodSetStateRule.js Outdated
Comment thread .github/workflows/node-18+.yml Outdated
Comment thread lib/util/version.js Outdated
Comment thread package.json Outdated
Comment thread .github/workflows/eslint-9+.yml Outdated
Comment thread .github/workflows/eslint-8-.yml
Comment thread .github/workflows/eslint-9+.yml Outdated
@karlnorling

Copy link
Copy Markdown

@ledsun do you have time to address the failing checks. I'm looking at updating to eslint 10 and we're using the eslint-plugin-react

@dan2kx

This comment was marked as resolved.

@ljharb

This comment was marked as resolved.

@lorand-horvath

Copy link
Copy Markdown

Would it be an option to move to an eslint 10 compatible plugin like eslint-plugin-import-x?

No.

@ljharb Why not? It's not like this one is compatible with eslint 10 or something. When will it be fixed?

@captaindonald

Copy link
Copy Markdown
Contributor

Yes, it needs to be rebased and the test failures fixed. Please do NOT open a redundant PR; if you have changes you want added, comment with a branch or commit link, and I'll pull them in.

@ljharb I pulled the ESLint 10 RuleTester schema fix out into #4006 — strips ~400 type: references from test files (ESLint 10 dropped type from the error schema) and pins a transitive that's been crashing npm install on node 4/5. Once it merges, rebasing here should leave only a small number of red cells, all of which look like the matrix flakiness tracked in #4007.

@danielhjacobs

Copy link
Copy Markdown

rebasing here should leave only a small number of red cells, all of which look like the matrix flakiness tracked in #4007

Since that PR was merged and so was a PR that closed #4007, can this be rebased? Will that allow this to be merged, or is it also waiting on import-js/eslint-plugin-import#3230 (which needs a new review following rasmi addressing its feedback)?

@captaindonald

Copy link
Copy Markdown
Contributor

rebasing here should leave only a small number of red cells, all of which look like the matrix flakiness tracked in #4007

Since that PR was merged and so was a PR that closed #4007, can this be rebased? Will that allow this to be merged, or is it also waiting on import-js/eslint-plugin-import#3230 (which needs a new review following rasmi addressing its feedback)?

I rebased and ran some local tests on a fork. I think we are just waiting to get unblocked on [import-js/eslint-plugin-import#3230]. Any remaining cleanup after that should be pretty straight forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to ESLint v10 ESLint v10 compatibility