Skip to content
Prev Previous commit
Next Next commit
fix: ci error
  • Loading branch information
eryue0220 committed Jul 6, 2024
commit 26e198305d5e8759d3fb0fa47e1da2bfae915e7f
3 changes: 2 additions & 1 deletion crates/oxc_linter/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ pub use self::{
/// Many Vitest rule are essentially ports of Jest plugin rules with minor modifications.
/// For these rules, we use the corresponding jest rules with some adjustments for compatibility.
pub fn is_jest_rule_adapted_to_vitest(rule_name: &str) -> bool {
let jest_rules: [&str; 3] = ["consistent_test_it", "no-disabled-tests", "prefer-hooks-in-order"];
let jest_rules: [&str; 3] =
["consistent_test_it", "no-disabled-tests", "prefer-hooks-in-order"];

jest_rules.contains(&rule_name)
}
Expand Down