refactor(linter): decouple module resolution from import plugin #5815
Labels
A-linter
Area - Linter
C-cleanup
Category - technical debt or refactoring. Solution not expected to change behavior
good first issue
Experience Level - Good for newcomers
The linter's
Runtime
currently checks if import plugin is enabled before resolving imported modules. We want this feature to be controlled via its own new setting. This will let us change if/when/why module resolution happens in the future.Examples
Here are some, but not all, of the parts of
Runtime
that need refactoring:oxc/crates/oxc_linter/src/service.rs
Line 168 in 7799c06
oxc/crates/oxc_linter/src/service.rs
Line 313 in 7799c06
Tasks
cross_module
flag toLintServiceOptions
and haveRuntime
consume it.plugins.has_import()
fromRuntime
Acceptance Criteria
cross_module
should default tofalse
unless import plugin is enabled.Runtime
andLintService
's APIs should not change.plugin.has_import()
remain inRuntime
.The text was updated successfully, but these errors were encountered: