You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(oxlintrc): resolve relative plugin specifiers before merging extended configs (#14562)
- Fixes#14478
## What's going wrong
- Relative specifiers need to joined with their config's directory path.
- When extended configs are merged. we drop the "other" config's path.
- In this "extends" case, the plugins from the "other" config are
resolved relative to the "self" config's path. That shouldn't happen.
## Fix
- All relative specifiers are resolved _before_ the merge.
- Since full platform-specific (correct) paths to the plugin are logged
when loading fails, this won't work well with the snapshot tests.
<img width="898" height="249" alt="image"
src="https://github.com/user-attachments/assets/7e4d0fa1-c0c1-4dc5-8135-dbf663900902"
/>
I am vacillating on this solution. Maybe external_plugin should be an
enum.
---------
Co-authored-by: Cameron Clark <cameron.clark@hey.com>
Copy file name to clipboardExpand all lines: apps/oxlint/src/snapshots/_-c fixtures__print_config__ban_rules__eslintrc.json -A all -D eqeqeq --print-config@oxlint.snap
0 commit comments