diff --git a/crates/oxc_linter/src/rules/jest/expect_expect.rs b/crates/oxc_linter/src/rules/jest/expect_expect.rs index 1ac574e09..46d195fa9 100644 --- a/crates/oxc_linter/src/rules/jest/expect_expect.rs +++ b/crates/oxc_linter/src/rules/jest/expect_expect.rs @@ -56,7 +56,7 @@ declare_oxc_lint!( /// test('should assert something', () => {}); /// ``` ExpectExpect, - suspicious + restriction ); impl Rule for ExpectExpect { diff --git a/crates/oxc_linter/src/rules/jest/no_alias_methods.rs b/crates/oxc_linter/src/rules/jest/no_alias_methods.rs index 2070ec5f2..d9f2c6880 100644 --- a/crates/oxc_linter/src/rules/jest/no_alias_methods.rs +++ b/crates/oxc_linter/src/rules/jest/no_alias_methods.rs @@ -43,7 +43,7 @@ declare_oxc_lint!( /// expect(a).toThrowError(); /// ``` NoAliasMethods, - style + restriction ); impl Rule for NoAliasMethods { diff --git a/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs b/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs index 7bf88a350..4ca5046a9 100644 --- a/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs +++ b/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs @@ -39,7 +39,7 @@ declare_oxc_lint!( /// // test.skip('foo', () => {}); /// ``` NoCommentedOutTests, - suspicious + restriction ); impl Rule for NoCommentedOutTests { diff --git a/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs b/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs index 22b2c8fa2..5dfca73b9 100644 --- a/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs +++ b/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs @@ -49,7 +49,7 @@ declare_oxc_lint!( // }); /// ``` NoConditionalExpect, - correctness + restriction ); impl Rule for NoConditionalExpect { diff --git a/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs b/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs index 9d54fa20f..c924a0152 100644 --- a/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs +++ b/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs @@ -52,7 +52,7 @@ declare_oxc_lint!( /// }); /// ``` NoDisabledTests, - correctness + restriction ); #[derive(Debug, Error, Diagnostic)] diff --git a/crates/oxc_linter/src/rules/jest/no_focused_tests.rs b/crates/oxc_linter/src/rules/jest/no_focused_tests.rs index d4872fe1e..20e5c8299 100644 --- a/crates/oxc_linter/src/rules/jest/no_focused_tests.rs +++ b/crates/oxc_linter/src/rules/jest/no_focused_tests.rs @@ -54,7 +54,7 @@ declare_oxc_lint!( /// `(); /// ``` NoFocusedTests, - suspicious + restriction ); impl Rule for NoFocusedTests { diff --git a/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs b/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs index 4bc2f5e72..abab16d7c 100644 --- a/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs +++ b/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs @@ -48,7 +48,7 @@ declare_oxc_lint!( /// xdescribe('foo'); // invalid /// ``` NoTestPrefixes, - correctness + restriction ); fn get_preferred_node_names(jest_fn_call: &ParsedGeneralJestFnCall) -> Atom { diff --git a/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs b/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs index 1076aebbb..b2a39f4e5 100644 --- a/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs +++ b/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs @@ -60,7 +60,7 @@ declare_oxc_lint!( /// ``` ValidDescribeCallback, // Because this rule has one test case not passed, will set to correctness when finished. - correctness + restriction ); impl Rule for ValidDescribeCallback {