Skip to content

Upgrade eslint to v10, migrate from eslint-plugin-react to @eslint-react/eslint-plugin#2045

Merged
cert-manager-prow[bot] merged 1 commit intocert-manager:masterfrom
erikgb:eslint-10
Apr 7, 2026
Merged

Upgrade eslint to v10, migrate from eslint-plugin-react to @eslint-react/eslint-plugin#2045
cert-manager-prow[bot] merged 1 commit intocert-manager:masterfrom
erikgb:eslint-10

Conversation

@erikgb
Copy link
Copy Markdown
Member

@erikgb erikgb commented Apr 7, 2026

This is a new PR fixing DCO based on the Copilot PR raised in #2044. The migration was inspired by the last comments on jsx-eslint/eslint-plugin-react#3977.

Closes #2044 #1959

…act/eslint-plugin

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@cert-manager-prow cert-manager-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 7, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2026

Deploy Preview for cert-manager ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5c2f8e3
🔍 Latest deploy log https://app.netlify.com/projects/cert-manager/deploys/69d4aa60c2e3440008692699
😎 Deploy Preview https://deploy-preview-2045--cert-manager.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.

@erikgb erikgb changed the title WIP: Upgrade eslint to v10, migrate from eslint-plugin-react to @eslint-react/eslint-plugin Upgrade eslint to v10, migrate from eslint-plugin-react to @eslint-react/eslint-plugin Apr 7, 2026
@cert-manager-prow cert-manager-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 7, 2026
@erikgb erikgb requested a review from Copilot April 7, 2026 07:04
@erikgb
Copy link
Copy Markdown
Member Author

erikgb commented Apr 7, 2026

/cc @inteon

Copy link
Copy Markdown
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

Updates the website’s linting toolchain to support ESLint v10 by migrating off eslint-plugin-react (which blocks ESLint v10) and adopting @eslint-react/eslint-plugin, with corresponding flat-config updates.

Changes:

  • Bump eslint / @eslint/js to v10 and add @eslint-react/eslint-plugin; remove eslint-plugin-react and eslint-config-next.
  • Update eslint.config.mjs to use @eslint-react’s recommended flat config alongside Next.js rules.
  • Regenerate package-lock.json to reflect the updated dependency graph.

Reviewed changes

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

File Description
package.json Updates devDependencies to ESLint v10 and switches React lint plugin package.
eslint.config.mjs Migrates flat ESLint config from eslint-plugin-react to @eslint-react recommended config.
package-lock.json Regenerates lockfile to align with updated ESLint/react lint dependencies.

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

},
"devDependencies": {
"@eslint/js": "9.39.4",
"@eslint-react/eslint-plugin": "4.2.3",
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

@eslint-react/eslint-plugin@4.2.3 declares engines.node >=22.0.0 (and pulls in other @eslint-react/* packages with the same constraint). This conflicts with this repo’s current engines.node >=20.19.0 and can break installs for Node 20 users (or any CI with engine-strict). Either bump the repo’s Node engine to >=22 or choose a @eslint-react/eslint-plugin version that supports Node 20.19.

Suggested change
"@eslint-react/eslint-plugin": "4.2.3",
"@eslint-react/eslint-plugin": "3.0.0",

Copilot uses AI. Check for mistakes.
@inteon
Copy link
Copy Markdown
Member

inteon commented Apr 7, 2026

/approve
/lgtm

@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 7, 2026
@cert-manager-prow cert-manager-prow bot merged commit 21793bc into cert-manager:master Apr 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants