chore(linter): enable the correctness rules that I want for alpha release

This commit is contained in:
Boshen 2023-03-11 22:17:47 +08:00
parent 00f4962669
commit 4585f11da3
No known key found for this signature in database
GPG key ID: 6AC90C77AAAA6ABC
6 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ declare_oxc_lint!(
/// let arr = new Array();
/// ```
NoArrayConstructor,
correctness
nursery
);
impl Rule for NoArrayConstructor {

View file

@ -47,7 +47,7 @@ declare_oxc_lint!(
/// // However, this will always result in `isEmpty` being `false`.
/// ```
NoConstantBinaryExpression,
nursery
correctness
);
#[derive(Debug, Error, Diagnostic)]

View file

@ -32,7 +32,7 @@ declare_oxc_lint!(
/// }
/// ```
NoEmpty,
correctness
nursery,
);
impl Rule for NoEmpty {

View file

@ -70,7 +70,7 @@ declare_oxc_lint!(
/// ```
///
NoEmptyPattern,
correctness
nursery,
);
impl Rule for NoEmptyPattern {

View file

@ -51,7 +51,7 @@ declare_oxc_lint! {
/// var foo = a && (b || c || d); /*GOOD*/
/// ```
NoMixedOperators,
correctness
nursery,
}
impl Rule for NoMixedOperators {

View file

@ -73,7 +73,7 @@ declare_oxc_lint!(
/// foo > NaN;
/// ```
UseIsnan,
correctness
nursery,
);
impl Rule for UseIsnan {