Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/external_linter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct ExternalLinter {
}

impl ExternalLinter {
pub fn new(run: ExternalLinterCb, load_plugin: ExternalLinterLoadPluginCb) -> Self {
pub fn new(load_plugin: ExternalLinterLoadPluginCb, run: ExternalLinterCb) -> Self {
Self { load_plugin, run }
}
}
Expand Down
2 changes: 1 addition & 1 deletion napi/oxlint2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ pub async fn lint(load_plugin: JsLoadPluginCb, run: JsRunCb) -> bool {
let rust_load_plugin = wrap_load_plugin(load_plugin);
let rust_run = wrap_run(run);

oxlint_lint(Some(ExternalLinter::new(rust_run, rust_load_plugin))).report() == ExitCode::SUCCESS
oxlint_lint(Some(ExternalLinter::new(rust_load_plugin, rust_run))).report() == ExitCode::SUCCESS
}
Loading