test(linter/dynamic-config): test case for jsPlugins in overrides#18855
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
Adds a new oxlint CLI fixture to validate that jsPlugins can be declared inside overrides in oxlint.config.ts and still be applied to matching files.
Changes:
- Introduces a minimal custom JS plugin fixture rule (
no-debugger) used only via overrides. - Adds an
oxlint.config.tsthat loads the plugin viaoverrides[].jsPluginsand enables the plugin rule. - Adds a snapshot and a sample
files/test.jsthat triggers the plugin rule.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/oxlint/test/fixtures/js_config_js_plugins_overrides/plugin.ts | Adds a basic custom plugin defining a no-debugger rule used by the fixture. |
| apps/oxlint/test/fixtures/js_config_js_plugins_overrides/oxlint.config.ts | Defines config using overrides[].jsPlugins to load the plugin only for matched files. |
| apps/oxlint/test/fixtures/js_config_js_plugins_overrides/output.snap.md | Snapshot asserting CLI output for the override-loaded plugin rule. |
| apps/oxlint/test/fixtures/js_config_js_plugins_overrides/files/test.js | Test input containing debugger; to trigger the custom rule. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
73392da to
ecf11e5
Compare
dab21a8 to
b98a11a
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

No description provided.