From b45e4fb707db363b07dd1a49fad96569cd31f255 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Thu, 28 Mar 2024 12:03:09 +0800 Subject: [PATCH] feat(linter/import): change all recommend rules category to suspicious --- crates/oxc_linter/src/rules/import/default.rs | 2 +- crates/oxc_linter/src/rules/import/export.rs | 2 +- crates/oxc_linter/src/rules/import/named.rs | 2 +- crates/oxc_linter/src/rules/import/namespace.rs | 2 +- crates/oxc_linter/src/rules/import/no_duplicates.rs | 2 +- crates/oxc_linter/src/rules/import/no_named_as_default.rs | 2 +- .../oxc_linter/src/rules/import/no_named_as_default_member.rs | 2 +- crates/oxc_linter/src/rules/import/no_unresolved.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/oxc_linter/src/rules/import/default.rs b/crates/oxc_linter/src/rules/import/default.rs index 1de95ddc3c09e3..6ad4830f544375 100644 --- a/crates/oxc_linter/src/rules/import/default.rs +++ b/crates/oxc_linter/src/rules/import/default.rs @@ -32,7 +32,7 @@ declare_oxc_lint!( /// import bar from './bar' // no default export found in ./bar /// ``` Default, - nursery + correctness ); impl Rule for Default { diff --git a/crates/oxc_linter/src/rules/import/export.rs b/crates/oxc_linter/src/rules/import/export.rs index f7886628f7190a..f7f7286c15da05 100644 --- a/crates/oxc_linter/src/rules/import/export.rs +++ b/crates/oxc_linter/src/rules/import/export.rs @@ -36,7 +36,7 @@ declare_oxc_lint!( /// export * from "./export-all" // export-all.js also export foo /// ``` Export, - nursery + correctness ); impl Rule for Export { diff --git a/crates/oxc_linter/src/rules/import/named.rs b/crates/oxc_linter/src/rules/import/named.rs index a821a31695b1af..efd1b3708cb7fc 100644 --- a/crates/oxc_linter/src/rules/import/named.rs +++ b/crates/oxc_linter/src/rules/import/named.rs @@ -26,7 +26,7 @@ declare_oxc_lint!( /// ```javascript /// ``` Named, - nursery + correctness ); impl Rule for Named { diff --git a/crates/oxc_linter/src/rules/import/namespace.rs b/crates/oxc_linter/src/rules/import/namespace.rs index d3c01b8de2ced7..8381d8e2c5e4ea 100644 --- a/crates/oxc_linter/src/rules/import/namespace.rs +++ b/crates/oxc_linter/src/rules/import/namespace.rs @@ -47,7 +47,7 @@ declare_oxc_lint!( /// Also, will report for computed references (i.e. foo["bar"]()). /// Reports on assignment to a member of an imported namespace. Namespace, - nursery + correctness ); impl Rule for Namespace { diff --git a/crates/oxc_linter/src/rules/import/no_duplicates.rs b/crates/oxc_linter/src/rules/import/no_duplicates.rs index 370c9cdcd387fb..06bcf5e6b191e2 100644 --- a/crates/oxc_linter/src/rules/import/no_duplicates.rs +++ b/crates/oxc_linter/src/rules/import/no_duplicates.rs @@ -16,7 +16,7 @@ declare_oxc_lint!( /// /// Reports if a resolved path is imported more than once. NoDuplicates, - nursery + suspicious ); impl Rule for NoDuplicates { diff --git a/crates/oxc_linter/src/rules/import/no_named_as_default.rs b/crates/oxc_linter/src/rules/import/no_named_as_default.rs index d8426733f794cd..d453318514a9de 100644 --- a/crates/oxc_linter/src/rules/import/no_named_as_default.rs +++ b/crates/oxc_linter/src/rules/import/no_named_as_default.rs @@ -39,7 +39,7 @@ declare_oxc_lint!( /// import bar from './foo.js'; /// ``` NoNamedAsDefault, - nursery + suspicious ); impl Rule for NoNamedAsDefault { diff --git a/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs b/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs index c971933660b61f..45edaf96dad915 100644 --- a/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs +++ b/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs @@ -43,7 +43,7 @@ declare_oxc_lint!( /// const bar = foo.bar // trying to access named export via default /// ``` NoNamedAsDefaultMember, - nursery + suspicious ); fn get_symbol_id_from_ident( ctx: &LintContext<'_>, diff --git a/crates/oxc_linter/src/rules/import/no_unresolved.rs b/crates/oxc_linter/src/rules/import/no_unresolved.rs index a995c141c77bf4..55c79d2ff09c20 100644 --- a/crates/oxc_linter/src/rules/import/no_unresolved.rs +++ b/crates/oxc_linter/src/rules/import/no_unresolved.rs @@ -25,7 +25,7 @@ declare_oxc_lint!( /// /// Ensures an imported module can be resolved to a module on the local filesystem. NoUnresolved, - nursery + suspicious ); impl Rule for NoUnresolved {