Skip to content

Commit

Permalink
feat(linter/import): change all recommend rules category to suspicious
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing authored and Boshen committed May 4, 2024
1 parent 5e8c015 commit c3d5a17
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/default.rs
Expand Up @@ -32,7 +32,7 @@ declare_oxc_lint!(
/// import bar from './bar' // no default export found in ./bar
/// ```
Default,
nursery
correctness
);

impl Rule for Default {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/named.rs
Expand Up @@ -26,7 +26,7 @@ declare_oxc_lint!(
/// ```javascript
/// ```
Named,
nursery
correctness
);

impl Rule for Named {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/namespace.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/no_duplicates.rs
Expand Up @@ -16,7 +16,7 @@ declare_oxc_lint!(
///
/// Reports if a resolved path is imported more than once.
NoDuplicates,
nursery
suspicious
);

impl Rule for NoDuplicates {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/no_named_as_default.rs
Expand Up @@ -39,7 +39,7 @@ declare_oxc_lint!(
/// import bar from './foo.js';
/// ```
NoNamedAsDefault,
nursery
suspicious
);

impl Rule for NoNamedAsDefault {
Expand Down
Expand Up @@ -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<'_>,
Expand Down

0 comments on commit c3d5a17

Please sign in to comment.