From 4585f11da3e34c74351efdd0e07839914ffa3193 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 11 Mar 2023 22:17:47 +0800 Subject: [PATCH] chore(linter): enable the correctness rules that I want for alpha release --- crates/oxc_linter/src/rules/no_array_constructor.rs | 2 +- crates/oxc_linter/src/rules/no_constant_binary_expression.rs | 2 +- crates/oxc_linter/src/rules/no_empty.rs | 2 +- crates/oxc_linter/src/rules/no_empty_pattern.rs | 2 +- crates/oxc_linter/src/rules/no_mixed_operators.rs | 2 +- crates/oxc_linter/src/rules/use_isnan.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/oxc_linter/src/rules/no_array_constructor.rs b/crates/oxc_linter/src/rules/no_array_constructor.rs index 99c7b1e91..a758fcdc6 100644 --- a/crates/oxc_linter/src/rules/no_array_constructor.rs +++ b/crates/oxc_linter/src/rules/no_array_constructor.rs @@ -28,7 +28,7 @@ declare_oxc_lint!( /// let arr = new Array(); /// ``` NoArrayConstructor, - correctness + nursery ); impl Rule for NoArrayConstructor { diff --git a/crates/oxc_linter/src/rules/no_constant_binary_expression.rs b/crates/oxc_linter/src/rules/no_constant_binary_expression.rs index 43eb5056d..f04fb36d6 100644 --- a/crates/oxc_linter/src/rules/no_constant_binary_expression.rs +++ b/crates/oxc_linter/src/rules/no_constant_binary_expression.rs @@ -47,7 +47,7 @@ declare_oxc_lint!( /// // However, this will always result in `isEmpty` being `false`. /// ``` NoConstantBinaryExpression, - nursery + correctness ); #[derive(Debug, Error, Diagnostic)] diff --git a/crates/oxc_linter/src/rules/no_empty.rs b/crates/oxc_linter/src/rules/no_empty.rs index a6fc6b164..c2dd838db 100644 --- a/crates/oxc_linter/src/rules/no_empty.rs +++ b/crates/oxc_linter/src/rules/no_empty.rs @@ -32,7 +32,7 @@ declare_oxc_lint!( /// } /// ``` NoEmpty, - correctness + nursery, ); impl Rule for NoEmpty { diff --git a/crates/oxc_linter/src/rules/no_empty_pattern.rs b/crates/oxc_linter/src/rules/no_empty_pattern.rs index 16d3f40b2..acff64f63 100644 --- a/crates/oxc_linter/src/rules/no_empty_pattern.rs +++ b/crates/oxc_linter/src/rules/no_empty_pattern.rs @@ -70,7 +70,7 @@ declare_oxc_lint!( /// ``` /// NoEmptyPattern, - correctness + nursery, ); impl Rule for NoEmptyPattern { diff --git a/crates/oxc_linter/src/rules/no_mixed_operators.rs b/crates/oxc_linter/src/rules/no_mixed_operators.rs index a4857999c..3b8c55a87 100644 --- a/crates/oxc_linter/src/rules/no_mixed_operators.rs +++ b/crates/oxc_linter/src/rules/no_mixed_operators.rs @@ -51,7 +51,7 @@ declare_oxc_lint! { /// var foo = a && (b || c || d); /*GOOD*/ /// ``` NoMixedOperators, - correctness + nursery, } impl Rule for NoMixedOperators { diff --git a/crates/oxc_linter/src/rules/use_isnan.rs b/crates/oxc_linter/src/rules/use_isnan.rs index 5d109c9eb..2cd958843 100644 --- a/crates/oxc_linter/src/rules/use_isnan.rs +++ b/crates/oxc_linter/src/rules/use_isnan.rs @@ -73,7 +73,7 @@ declare_oxc_lint!( /// foo > NaN; /// ``` UseIsnan, - correctness + nursery, ); impl Rule for UseIsnan {