diff --git a/crates/oxc_linter/data/vitest_compatible_jest_rules.json b/crates/oxc_linter/data/vitest_compatible_jest_rules.json index 04597999a5b4e..223818bfae03d 100644 --- a/crates/oxc_linter/data/vitest_compatible_jest_rules.json +++ b/crates/oxc_linter/data/vitest_compatible_jest_rules.json @@ -42,5 +42,6 @@ "require-to-throw-message", "require-top-level-describe", "valid-describe-callback", - "valid-expect" + "valid-expect", + "valid-title" ] diff --git a/crates/oxc_linter/src/utils/mod.rs b/crates/oxc_linter/src/utils/mod.rs index d4af39c137673..42d515df87d39 100644 --- a/crates/oxc_linter/src/utils/mod.rs +++ b/crates/oxc_linter/src/utils/mod.rs @@ -37,7 +37,7 @@ pub use self::{ // the crates/oxc_linter/data/vitest_compatible_jest_rules.json // file is also updated. The JSON file is used by the oxlint-migrate // and eslint-plugin-oxlint repos to keep everything synced. -const VITEST_COMPATIBLE_JEST_RULES: [&str; 44] = [ +const VITEST_COMPATIBLE_JEST_RULES: [&str; 45] = [ "consistent-test-it", "expect-expect", "max-expects", @@ -82,6 +82,7 @@ const VITEST_COMPATIBLE_JEST_RULES: [&str; 44] = [ "require-top-level-describe", "valid-describe-callback", "valid-expect", + "valid-title", ]; /// List of Eslint rules that have TypeScript equivalents.