Skip to content
Merged
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
6 changes: 3 additions & 3 deletions crates/oxc_linter/src/external_linter.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{fmt::Debug, sync::Arc};

use serde::{Deserialize, Serialize};
use serde::Deserialize;

use oxc_allocator::Allocator;

Expand All @@ -13,7 +13,7 @@ pub type ExternalLinterLoadPluginCb = Arc<
pub type ExternalLinterLintFileCb =
Arc<dyn Fn(String, Vec<u32>, &Allocator) -> Result<Vec<LintFileResult>, String> + Sync + Send>;

#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize)]
pub enum PluginLoadResult {
#[serde(rename_all = "camelCase")]
Success {
Expand All @@ -24,7 +24,7 @@ pub enum PluginLoadResult {
Failure(String),
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct LintFileResult {
pub rule_index: u32,
Expand Down
Loading