mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
chore(linter): move all jest rules to restriction (#854)
This commit is contained in:
parent
4ada0ecbb8
commit
f7232ed9e7
8 changed files with 8 additions and 8 deletions
|
|
@ -56,7 +56,7 @@ declare_oxc_lint!(
|
|||
/// test('should assert something', () => {});
|
||||
/// ```
|
||||
ExpectExpect,
|
||||
suspicious
|
||||
restriction
|
||||
);
|
||||
|
||||
impl Rule for ExpectExpect {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ declare_oxc_lint!(
|
|||
/// expect(a).toThrowError();
|
||||
/// ```
|
||||
NoAliasMethods,
|
||||
style
|
||||
restriction
|
||||
);
|
||||
|
||||
impl Rule for NoAliasMethods {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ declare_oxc_lint!(
|
|||
/// // test.skip('foo', () => {});
|
||||
/// ```
|
||||
NoCommentedOutTests,
|
||||
suspicious
|
||||
restriction
|
||||
);
|
||||
|
||||
impl Rule for NoCommentedOutTests {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ declare_oxc_lint!(
|
|||
// });
|
||||
/// ```
|
||||
NoConditionalExpect,
|
||||
correctness
|
||||
restriction
|
||||
);
|
||||
|
||||
impl Rule for NoConditionalExpect {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ declare_oxc_lint!(
|
|||
/// });
|
||||
/// ```
|
||||
NoDisabledTests,
|
||||
correctness
|
||||
restriction
|
||||
);
|
||||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ declare_oxc_lint!(
|
|||
/// `();
|
||||
/// ```
|
||||
NoFocusedTests,
|
||||
suspicious
|
||||
restriction
|
||||
);
|
||||
|
||||
impl Rule for NoFocusedTests {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ declare_oxc_lint!(
|
|||
/// xdescribe('foo'); // invalid
|
||||
/// ```
|
||||
NoTestPrefixes,
|
||||
correctness
|
||||
restriction
|
||||
);
|
||||
|
||||
fn get_preferred_node_names(jest_fn_call: &ParsedGeneralJestFnCall) -> Atom {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue