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 @@ -2621,6 +2621,11 @@ impl RuleRunner for crate::rules::unicorn::prefer_blob_reading_methods::PreferBl
Some(&AstTypesBitset::from_types(&[AstType::CallExpression]));
}

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

impl RuleRunner for crate::rules::unicorn::prefer_code_point::PreferCodePoint {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::CallExpression]));
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 @@ -453,6 +453,7 @@ pub(crate) mod unicorn {
pub mod prefer_array_some;
pub mod prefer_at;
pub mod prefer_blob_reading_methods;
pub mod prefer_class_fields;
pub mod prefer_code_point;
pub mod prefer_date_now;
pub mod prefer_dom_node_append;
Expand Down Expand Up @@ -1175,6 +1176,7 @@ oxc_macros::declare_all_lint_rules! {
unicorn::no_zero_fractions,
unicorn::number_literal_case,
unicorn::numeric_separators_style,
unicorn::prefer_class_fields,
unicorn::prefer_at,
unicorn::prefer_global_this,
unicorn::prefer_object_from_entries,
Expand Down
Loading
Loading