diff --git a/apps/oxlint/src/js_plugins/mod.rs b/apps/oxlint/src/js_plugins/mod.rs new file mode 100644 index 0000000000000..191a7601bc587 --- /dev/null +++ b/apps/oxlint/src/js_plugins/mod.rs @@ -0,0 +1,3 @@ +mod raw_fs; + +pub use raw_fs::RawTransferFileSystem; diff --git a/apps/oxlint/src/raw_fs.rs b/apps/oxlint/src/js_plugins/raw_fs.rs similarity index 100% rename from apps/oxlint/src/raw_fs.rs rename to apps/oxlint/src/js_plugins/raw_fs.rs diff --git a/apps/oxlint/src/lib.rs b/apps/oxlint/src/lib.rs index 72764f82cb320..b334e317951db 100644 --- a/apps/oxlint/src/lib.rs +++ b/apps/oxlint/src/lib.rs @@ -6,9 +6,9 @@ pub use oxc_linter::{ }; mod command; +mod js_plugins; mod lint; mod output_formatter; -mod raw_fs; mod result; mod tester; mod walk; diff --git a/apps/oxlint/src/lint.rs b/apps/oxlint/src/lint.rs index 4e51838c43f50..07243e32b98db 100644 --- a/apps/oxlint/src/lint.rs +++ b/apps/oxlint/src/lint.rs @@ -22,6 +22,7 @@ use oxc_linter::{ use crate::{ cli::{CliRunResult, LintCommand, MiscOptions, ReportUnusedDirectives, WarningOptions}, + js_plugins::RawTransferFileSystem, output_formatter::{LintCommandInfo, OutputFormatter}, walk::Walk, }; @@ -367,7 +368,6 @@ impl LintRunner { // Use `RawTransferFileSystem` if `ExternalLinter` exists. // This reads the source text into start of allocator, instead of the end. if has_external_linter { - use crate::raw_fs::RawTransferFileSystem; lint_service.with_file_system(Box::new(RawTransferFileSystem)); }