From 503ba155a3615d48603e85b61617a6c8636afd1e 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 1de95ddc3c09..6ad4830f5443 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 f7886628f719..f7f7286c15da 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 a821a31695b1..efd1b3708cb7 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 d3c01b8de2ce..8381d8e2c5e4 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 370c9cdcd387..06bcf5e6b191 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 d8426733f794..d453318514a9 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 c971933660b6..45edaf96dad9 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 a995c141c77b..fc50e31e29e6 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 + correctness ); impl Rule for NoUnresolved {