chore(linter): move all jest rules to restriction (#854)

This commit is contained in:
Wenzhe Wang 2023-09-04 22:03:24 +08:00 committed by GitHub
parent 4ada0ecbb8
commit f7232ed9e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View file

@ -56,7 +56,7 @@ declare_oxc_lint!(
/// test('should assert something', () => {});
/// ```
ExpectExpect,
suspicious
restriction
);
impl Rule for ExpectExpect {

View file

@ -43,7 +43,7 @@ declare_oxc_lint!(
/// expect(a).toThrowError();
/// ```
NoAliasMethods,
style
restriction
);
impl Rule for NoAliasMethods {

View file

@ -39,7 +39,7 @@ declare_oxc_lint!(
/// // test.skip('foo', () => {});
/// ```
NoCommentedOutTests,
suspicious
restriction
);
impl Rule for NoCommentedOutTests {

View file

@ -49,7 +49,7 @@ declare_oxc_lint!(
// });
/// ```
NoConditionalExpect,
correctness
restriction
);
impl Rule for NoConditionalExpect {

View file

@ -52,7 +52,7 @@ declare_oxc_lint!(
/// });
/// ```
NoDisabledTests,
correctness
restriction
);
#[derive(Debug, Error, Diagnostic)]

View file

@ -54,7 +54,7 @@ declare_oxc_lint!(
/// `();
/// ```
NoFocusedTests,
suspicious
restriction
);
impl Rule for NoFocusedTests {

View file

@ -48,7 +48,7 @@ declare_oxc_lint!(
/// xdescribe('foo'); // invalid
/// ```
NoTestPrefixes,
correctness
restriction
);
fn get_preferred_node_names(jest_fn_call: &ParsedGeneralJestFnCall) -> Atom {

View file

@ -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 {