Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 1, 2024
1 parent 11a6ea8 commit 957e41b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub use crate::{
env::{EnvOptions, Targets},
es2015::{ArrowFunctionsOptions, ES2015Options},
options::{BabelOptions, TransformOptions},
react::{JsxRuntime, JsxOptions, ReactRefreshOptions},
react::{JsxOptions, JsxRuntime, ReactRefreshOptions},
typescript::{RewriteExtensionsMode, TypeScriptOptions},
};
use crate::{context::TransformCtx, es2015::ES2015, react::React, typescript::TypeScript};
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/react/comments.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use oxc_ast::{Comment, CommentKind};
use oxc_syntax::identifier::is_irregular_whitespace;

use crate::{JsxRuntime, JsxOptions, TransformCtx};
use crate::{JsxOptions, JsxRuntime, TransformCtx};

/// Scan through all comments and find the following pragmas:
///
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/react/jsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ use super::diagnostics;
pub use super::{
jsx_self::ReactJsxSelf,
jsx_source::ReactJsxSource,
options::{JsxRuntime, JsxOptions},
options::{JsxOptions, JsxRuntime},
};
use crate::{
helpers::{bindings::BoundIdentifier, module_imports::NamedImport},
Expand Down
8 changes: 2 additions & 6 deletions crates/oxc_transformer/src/react/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use refresh::ReactRefresh;
pub use self::{
display_name::ReactDisplayName,
jsx::ReactJsx,
options::{JsxRuntime, JsxOptions, ReactRefreshOptions},
options::{JsxOptions, JsxRuntime, ReactRefreshOptions},
};
use crate::TransformCtx;

Expand Down Expand Up @@ -49,11 +49,7 @@ impl<'a, 'ctx> React<'a, 'ctx> {
options.conform();
}
let JsxOptions {
jsx_plugin,
display_name_plugin,
jsx_self_plugin,
jsx_source_plugin,
..
jsx_plugin, display_name_plugin, jsx_self_plugin, jsx_source_plugin, ..
} = options;
let refresh = options.refresh.clone();
Self {
Expand Down
4 changes: 1 addition & 3 deletions tasks/coverage/src/tools/semantic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use std::path::{Path, PathBuf};

use oxc::{
span::SourceType,
transformer::{
ES2015Options, JsxRuntime, JsxOptions, TransformOptions, TypeScriptOptions,
},
transformer::{ES2015Options, JsxOptions, JsxRuntime, TransformOptions, TypeScriptOptions},
};

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion tasks/coverage/src/tools/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
use oxc::{
span::SourceType,
transformer::{
ArrowFunctionsOptions, ES2015Options, JsxRuntime, JsxOptions, TransformOptions,
ArrowFunctionsOptions, ES2015Options, JsxOptions, JsxRuntime, TransformOptions,
TypeScriptOptions,
},
};
Expand Down

0 comments on commit 957e41b

Please sign in to comment.