refactor(linter): extract shared config setting logic#18856
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
Refactors linter configuration handling by extracting the repeated “set external plugin config directory” logic into a shared helper on Oxlintrc, and updates callers to use it.
Changes:
- Extracted
Oxlintrc::set_config_dirto centralize external pluginconfig_dirassignment for base config and overrides. - Updated
Oxlintrc::from_fileto use the extracted helper. - Updated JS config parsing to compute
config_dirand callset_config_dirinstead of duplicating the mapping logic.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| crates/oxc_linter/src/config/oxlintrc.rs | Adds set_config_dir helper and uses it during config loading to standardize external plugin config_dir propagation. |
| apps/oxlint/src/js_config.rs | Replaces duplicated external plugin config_dir assignment with a call to Oxlintrc::set_config_dir. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
dab21a8 to
b98a11a
Compare
1b46e68 to
ff97e1c
Compare
ff97e1c to
c980716
Compare
c980716 to
73395a0
Compare
73395a0 to
1e4f683
Compare

No description provided.