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
5 changes: 5 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2800,6 +2800,11 @@ impl RuleRunner for crate::rules::unicorn::prefer_structured_clone::PreferStruct
Some(&AstTypesBitset::from_types(&[AstType::CallExpression]));
}

impl RuleRunner for crate::rules::unicorn::prefer_top_level_await::PreferTopLevelAwait {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::CallExpression]));
}

impl RuleRunner for crate::rules::unicorn::prefer_type_error::PreferTypeError {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::ThrowStatement]));
Expand Down
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ pub(crate) mod unicorn {
pub mod prefer_string_starts_ends_with;
pub mod prefer_string_trim_start_end;
pub mod prefer_structured_clone;
pub mod prefer_top_level_await;
pub mod prefer_type_error;
pub mod require_array_join_separator;
pub mod require_number_to_fixed_digits_argument;
Expand Down Expand Up @@ -1177,6 +1178,7 @@ oxc_macros::declare_all_lint_rules! {
unicorn::number_literal_case,
unicorn::numeric_separators_style,
unicorn::prefer_class_fields,
unicorn::prefer_top_level_await,
unicorn::prefer_at,
unicorn::prefer_global_this,
unicorn::prefer_object_from_entries,
Expand Down
Loading
Loading