File tree Expand file tree Collapse file tree 4 files changed +1408
-0
lines changed Expand file tree Collapse file tree 4 files changed +1408
-0
lines changed Original file line number Diff line number Diff line change @@ -2609,6 +2609,14 @@ impl RuleRunner for crate::rules::unicorn::prefer_array_some::PreferArraySome {
26092609 Some ( & AstTypesBitset :: from_types ( & [ AstType :: BinaryExpression , AstType :: CallExpression ] ) ) ;
26102610}
26112611
2612+ impl RuleRunner for crate :: rules:: unicorn:: prefer_at:: PreferAt {
2613+ const NODE_TYPES : Option < & AstTypesBitset > = Some ( & AstTypesBitset :: from_types ( & [
2614+ AstType :: CallExpression ,
2615+ AstType :: ChainExpression ,
2616+ AstType :: ComputedMemberExpression ,
2617+ ] ) ) ;
2618+ }
2619+
26122620impl RuleRunner for crate :: rules:: unicorn:: prefer_blob_reading_methods:: PreferBlobReadingMethods {
26132621 const NODE_TYPES : Option < & AstTypesBitset > =
26142622 Some ( & AstTypesBitset :: from_types ( & [ AstType :: CallExpression ] ) ) ;
Original file line number Diff line number Diff line change @@ -451,6 +451,7 @@ pub(crate) mod unicorn {
451451 pub mod prefer_array_flat_map;
452452 pub mod prefer_array_index_of;
453453 pub mod prefer_array_some;
454+ pub mod prefer_at;
454455 pub mod prefer_blob_reading_methods;
455456 pub mod prefer_code_point;
456457 pub mod prefer_date_now;
@@ -1174,6 +1175,7 @@ oxc_macros::declare_all_lint_rules! {
11741175 unicorn:: no_zero_fractions,
11751176 unicorn:: number_literal_case,
11761177 unicorn:: numeric_separators_style,
1178+ unicorn:: prefer_at,
11771179 unicorn:: prefer_global_this,
11781180 unicorn:: prefer_object_from_entries,
11791181 unicorn:: prefer_array_find,
You can’t perform that action at this time.
0 commit comments