Skip to content

Commit 4eb3bb9

Browse files
committed
refactor(linter/plugins): directory for JS plugins-related code
1 parent dafff0f commit 4eb3bb9

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

apps/oxlint/src/js_plugins/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mod raw_fs;
2+
3+
pub use raw_fs::RawTransferFileSystem;
File renamed without changes.

apps/oxlint/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ pub use oxc_linter::{
66
};
77

88
mod command;
9+
mod js_plugins;
910
mod lint;
1011
mod output_formatter;
11-
mod raw_fs;
1212
mod result;
1313
mod tester;
1414
mod walk;

apps/oxlint/src/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use oxc_linter::{
2222

2323
use crate::{
2424
cli::{CliRunResult, LintCommand, MiscOptions, ReportUnusedDirectives, WarningOptions},
25+
js_plugins::RawTransferFileSystem,
2526
output_formatter::{LintCommandInfo, OutputFormatter},
2627
walk::Walk,
2728
};
@@ -367,7 +368,6 @@ impl LintRunner {
367368
// Use `RawTransferFileSystem` if `ExternalLinter` exists.
368369
// This reads the source text into start of allocator, instead of the end.
369370
if has_external_linter {
370-
use crate::raw_fs::RawTransferFileSystem;
371371
lint_service.with_file_system(Box::new(RawTransferFileSystem));
372372
}
373373

0 commit comments

Comments
 (0)