ci: ensure ESLint works with at least 9.15.0 and pre-releases#365
Merged
SwetaTanwar merged 3 commits intomainfrom Jan 22, 2026
Merged
ci: ensure ESLint works with at least 9.15.0 and pre-releases#365SwetaTanwar merged 3 commits intomainfrom
9.15.0 and pre-releases#365SwetaTanwar merged 3 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xlatest 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.0Although
9.15.0is the minimum required ESLint version, tests didn't verify it, so I added a test to confirm compatibility with9.15.0:css/README.md
Line 7 in 03cd8bd
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.css/package.json
Line 82 in 03cd8bd
^10.0.0-rc.0We'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.0includes the stable10.0.0release, so tests will automatically run against10.0.0once it is released. (We can also update the range to10.xlater 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.xlatest version, and in pre-releases.Related Issues
N/A
Is there anything you'd like reviewers to focus on?
N/A