mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
chore(linter): enable the correctness rules that I want for alpha release
This commit is contained in:
parent
00f4962669
commit
4585f11da3
6 changed files with 6 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ declare_oxc_lint!(
|
|||
/// let arr = new Array();
|
||||
/// ```
|
||||
NoArrayConstructor,
|
||||
correctness
|
||||
nursery
|
||||
);
|
||||
|
||||
impl Rule for NoArrayConstructor {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ declare_oxc_lint!(
|
|||
/// // However, this will always result in `isEmpty` being `false`.
|
||||
/// ```
|
||||
NoConstantBinaryExpression,
|
||||
nursery
|
||||
correctness
|
||||
);
|
||||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ declare_oxc_lint!(
|
|||
/// }
|
||||
/// ```
|
||||
NoEmpty,
|
||||
correctness
|
||||
nursery,
|
||||
);
|
||||
|
||||
impl Rule for NoEmpty {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ declare_oxc_lint!(
|
|||
/// ```
|
||||
///
|
||||
NoEmptyPattern,
|
||||
correctness
|
||||
nursery,
|
||||
);
|
||||
|
||||
impl Rule for NoEmptyPattern {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ declare_oxc_lint! {
|
|||
/// var foo = a && (b || c || d); /*GOOD*/
|
||||
/// ```
|
||||
NoMixedOperators,
|
||||
correctness
|
||||
nursery,
|
||||
}
|
||||
|
||||
impl Rule for NoMixedOperators {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ declare_oxc_lint!(
|
|||
/// foo > NaN;
|
||||
/// ```
|
||||
UseIsnan,
|
||||
correctness
|
||||
nursery,
|
||||
);
|
||||
|
||||
impl Rule for UseIsnan {
|
||||
|
|
|
|||
Loading…
Reference in a new issue