Skip to content

chore: update dependencies under @eslint scope#374

Open
lumirlumir wants to merge 1 commit intomainfrom
chore/update-eslint-dependencies
Open

chore: update dependencies under @eslint scope#374
lumirlumir wants to merge 1 commit intomainfrom
chore/update-eslint-dependencies

Conversation

@lumirlumir
Copy link
Copy Markdown
Member

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

While working on #299, I found that some packages under the @eslint scope were not using their latest versions, so I updated them all.

Renovate could have handled this, but its update included changes for espree and eslint-scope, which are currently in a draft PR, so I separated those updates.

FYI, eslint can't be updated to v10 right now because eslint-plugin-react-hooks doesn't yet support eslint v10 as a peer dependency.

What changes did you make? (Give an overview)

This PR updates @eslint dependencies to its latest.

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

Copilot AI review requested due to automatic review settings April 6, 2026 08:55
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 6, 2026

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit d17df76
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/69d3750cf3158c00082ad732
😎 Deploy Preview https://deploy-preview-374--eslint-code-explorer.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.

@eslintbot eslintbot added this to Triage Apr 6, 2026
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Apr 6, 2026
Copy link
Copy Markdown

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

Updates @eslint/* scoped dependencies to their latest versions (separating out espree / eslint-scope updates per the PR description), likely to support newer language parsing capabilities (notably Markdown v8).

Changes:

  • Bump @eslint/css, @eslint/json, and @eslint/markdown to their latest major versions.
  • Bump @eslint/core devDependency to ^1.2.0.
  • Regenerate package-lock.json to reflect the updated dependency graph (including new transitive deps like math-related Markdown packages).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates @eslint/* dependency versions.
package-lock.json Lockfile updates for new @eslint/* versions and their transitive dependencies/engines.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +41 to +44
"@eslint/css": "^1.1.0",
"@eslint/js": "^9.39.4",
"@eslint/json": "^0.14.0",
"@eslint/markdown": "^7.5.1",
"@eslint/json": "^1.2.0",
"@eslint/markdown": "^8.0.1",
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

These @eslint package updates now require Node.js ^20.19.0 || ^22.13.0 || >=24 (per their published engines). The repo currently declares "engines.node": ">= 20" and uses an unpinned ".nvmrc" of "20", which implies support for Node 20.0–20.18 even though installs will fail there. Please align the project's declared/CI Node version with the new minimum (e.g., bump engines.node and pin .nvmrc accordingly).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

@lumirlumir lumirlumir Apr 6, 2026

Choose a reason for hiding this comment

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

It appears Netlify automatically installs the latest Node.js 20 during the build, so this seems safe:

image

Would it be better to specify Node.js 20 version more explicitly to ensure future compatibility?

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.

Yes we can surely specify the a node js version explicitly. This PR also raises a warning about the Node.js version compatibility:

One option is: ^20.19.0 || ^22.13.0 || >=24

However, since Node 20 reached end-of-life in April 2026, we could drop support for it entirely and move to a more forward-looking range: ^22.12.0 || >=24

This aligns with the requirements of @rolldown/plugin-babel@0.2.2, which officially supports: >=22.12.0 || ^24.0.0 (Node 20 is excluded)
Although the plugin still works on Node 20.19+, it shows warnings, so support is only partial.

For a cleaner and future-proof setup, it’s better to:
Use ^22.12.0 || >=24 in engines
Set .nvmrc to Node 22

Or if want to go practically we can have: ^20.19.0 || ^22.13.0 || >=24

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have the same Node.js support issue with the eslint-scope update in #285 and the espree update in #284 as well. I filed #378 so we can discuss the project's Node.js version support.

@amareshsm amareshsm moved this from Needs Triage to Triaging in Triage Apr 7, 2026
@amareshsm amareshsm added the accepted There is consensus among the team that this change meets the criteria for inclusion label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion chore

Projects

Status: Triaging

Development

Successfully merging this pull request may close these issues.

5 participants