Skip to content

Conversation

@lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Jan 17, 2026

Prerequisites checklist

What is the purpose of this pull request?

This PR follows up on eslint/json#202.

In this PR, I've ensured ESLint works with at least 9.15.0, 9.x latest version, and in pre-releases.

I've mostly followed the same CI matrix convention used in the Markdown repository: https://github.com/eslint/markdown/blob/main/.github/workflows/ci.yml#L46-L75

9.15.0

Although 9.15.0 is the minimum required ESLint version, tests didn't verify it, so I added a test to confirm compatibility with 9.15.0:

**Important:** This plugin requires ESLint v9.15.0 or higher and you must be using the [new configuration system](https://eslint.org/docs/latest/use/configure/configuration-files).

9.x:

Previously the version wasn't specified, so ^9.39.2 (the latest v9 release) was always installed. I added a test to confirm compatibility with the latest v9.

"eslint": "^9.39.2",

^10.0.0-rc.0

We've gone through the breaking changes mentioned in #322, and as far as I know the primary focus was compatibility with ESLint v10. However, it wasn't tested against ESLint v10 locally since the local ESLint version was v9, so I've added it to ensure compatibility.

Just for reference, eslint@^10.0.0-rc.0 includes the stable 10.0.0 release, so tests will automatically run against 10.0.0 once it is released. (We can also update the range to 10.x later if desired.)

What changes did you make? (Give an overview)

In this PR, I've ensured ESLint works with at least 9.15.0, 9.x latest version, and in pre-releases.

Related Issues

N/A

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

N/A

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jan 17, 2026
@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Jan 17, 2026
@lumirlumir lumirlumir marked this pull request as ready for review January 21, 2026 12:14
Copilot AI review requested due to automatic review settings January 21, 2026 12:14
@lumirlumir lumirlumir moved this from Implementing to Needs Triage in Triage Jan 21, 2026
@lumirlumir lumirlumir requested a review from nzakas January 21, 2026 12:15
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 enhances the CI workflow to explicitly test compatibility with multiple ESLint versions, including the documented minimum version (9.15.0), the latest v9 release (9.x), and v10 pre-releases (^10.0.0-rc.0). This ensures the plugin works correctly across the supported ESLint version range.

Changes:

  • Added ESLint version matrix to CI testing strategy
  • Configured ubuntu-latest to test against ESLint 9.15.0, 9.x, and ^10.0.0-rc.0
  • Added ESLint installation step to install the specific version for each test run

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

Copy link
Contributor

@SwetaTanwar SwetaTanwar left a comment

Choose a reason for hiding this comment

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

LGTM

@SwetaTanwar SwetaTanwar merged commit 0b30845 into main Jan 22, 2026
39 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Jan 22, 2026
@SwetaTanwar SwetaTanwar deleted the ci/ensure-eslint-works-with-at-least-9.15.0 branch January 22, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants