test(linter/plugins): add test for options in overrides#16357
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR adds test coverage for setting rule options in the overrides section of oxlint configuration files, following up on PR #16215. The test verifies that when a file matches an override pattern, it receives the overridden options rather than the base configuration options.
Key Changes
- Adds a new test file in a nested directory to trigger the overrides configuration
- Extends the oxlint configuration with an overrides section that applies different options to files matching a specific pattern
- Updates the snapshot to verify that the overridden options are correctly applied
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/oxlint/test/fixtures/options/.oxlintrc.json | Adds overrides section targeting files/nested/** with custom options for options-plugin/options rule |
| apps/oxlint/test/fixtures/options/files/nested/index.js | New test file that matches the override pattern |
| apps/oxlint/test/fixtures/options/output.snap.md | Updates snapshot to include expected output for the nested file showing overridden options, increasing error count from 3 to 6 and file count from 1 to 2 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
Follow-on after #16215. Test that options can be set in overrides.
afb9fed to
8bbf2eb
Compare
…16357) Follow-on after oxc-project#16215. Test that options can be set in overrides.

Follow-on after #16215. Test that options can be set in overrides.