Skip to content

Conversation

@ledsun
Copy link

@ledsun ledsun commented Feb 9, 2026

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

I think this PR will fix #3977.

Copy link
Member

@ljharb ljharb left a comment

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.

@ledsun ledsun force-pushed the update-deprecated-calls-v8 branch from f987ffa to a7b967b Compare February 11, 2026 08:06
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.69%. Comparing base (25249f3) to head (d143827).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3979      +/-   ##
==========================================
- Coverage   97.85%   97.69%   -0.17%     
==========================================
  Files         136      133       -3     
  Lines       10008    10000       -8     
  Branches     3717     3718       +1     
==========================================
- Hits         9793     9769      -24     
- Misses        215      231      +16     

☔ 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.

Run published type checks against both ESLint 7 and 10.
Use per-matrix dependency setup and exclude unsupported TS combinations for ESLint 10.
- route filename/sourceCode access through util helpers for ESLint 7/10 compatibility
- remove deprecated meta.docs.category to satisfy current RuleModule typings
- augment @eslint/core SettingsConfig with react settings shape
@socket-security
Copy link

socket-security bot commented Feb 11, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedeslint@​10.0.08910010097100

View full report

@ledsun ledsun marked this pull request as ready for review February 11, 2026 12:08
}

function getFilename(context) {
return context.filename || context.getFilename();

Choose a reason for hiding this comment

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

It may be better to follow the pattern above, to only call the method if it exists

Suggested change
return context.filename || context.getFilename();
return context.getFilename ? context.getFilename : filename;

function resolveBasedir(contextOrFilename) {
if (contextOrFilename) {
const filename = typeof contextOrFilename === 'string' ? contextOrFilename : contextOrFilename.getFilename();
const filename = typeof contextOrFilename === 'string' ? contextOrFilename : contextOrFilename.filename || contextOrFilename.getFilename();

Choose a reason for hiding this comment

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

Suggested change
const filename = typeof contextOrFilename === 'string' ? contextOrFilename : contextOrFilename.filename || contextOrFilename.getFilename();
const filename = typeof contextOrFilename === 'string' ? contextOrFilename : getFilename(contextOrFilename);

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.

ESLint v10 compatibility

4 participants